nigelm / broadworks_ocip

Broadworks OCI-P API
Other
16 stars 12 forks source link

GroupEnterpriseTrunkAddRequest21 command issue #24

Open tyy966 opened 4 months ago

tyy966 commented 4 months ago

Description

Try to call GroupEnterpriseTrunkAddRequest21 with ordered_routing, the trunk_group should be a list, but it throw error

What I Did

api.command( "GroupEnterpriseTrunkAddRequest21", service_provider_id="AAAA", group_id="AAA000002", enterprise_trunk_name="ENTEST2", maximum_reroute_attempts=1, route_exhaustion_action="None", ordered_routing={ "trunk_group": ["BBB", "AAAA"], "ordering_algorithm": "Ordered Load Balancing", }, enable_capacity_management=True, max_active_calls=3, capacity_exceeded_trap_initial_calls=3, capacity_exceeded_trap_offset_calls=3, )

Get the following error: Error: Argument must be bytes or unicode, got 'list' The trunk group only accept str as the type