Is your feature request related to a problem? Please describe.
If you have different types of gateways such as inbound, outbound, or inbound/outbound defined on a single carrier, there is no way of telling route_to_carrier() to not select inappropriate types of gateways (i.e. sending an outbound call to an inbound only gateway).
Describe the solution you'd like
To be able to pass a type selector to route_to_carrier() that allows inclusion of only the specified types of gateways.
Implementation
- Component: drouting
- Type: additional optional parameter on route_to_carrier()
Describe alternatives you've considered
No other viable alternative exists. This course of action was recommended by Vlad.
Additional context