- Broadworks OCI-P Interface version: 2.1.2
- Python version: 3.11.7
- Operating System: RHEL 8.9
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
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