Skip to content

Add support to select 'type' of gateway during route_to_carrier#3810

Open
osgjps wants to merge 1 commit intoOpenSIPS:masterfrom
osgjps:drouting_select_gateway_type
Open

Add support to select 'type' of gateway during route_to_carrier#3810
osgjps wants to merge 1 commit intoOpenSIPS:masterfrom
osgjps:drouting_select_gateway_type

Conversation

@osgjps
Copy link
Contributor

@osgjps osgjps commented Feb 2, 2026

Summary

This adds the optional "type" parameter to route_to_carrier()

Details

A solution to #3809

Solution

This adds the optional "type" parameter to route_to_carrier()

Compatibility

Should not break backwards compatibility. The new parameter was added to the end of the parameter list so existing dialplans should continue to work without issues. If the option is omitted, all gateways are considered.

Closing issues

@bogdan-iancu
Copy link
Member

Based on the discussion in #3809 , the extension makes sense (as time as it is optional), but it has to be consistent across all the routing function (do_routing, route_to_carrier, route_to_gw) . It does not make sense for route_to_gw, so the do_routing is the only one left

@bogdan-iancu bogdan-iancu self-assigned this Feb 6, 2026
@osgjps
Copy link
Contributor Author

osgjps commented Feb 6, 2026

@bogdan-iancu I can add it to do_routing() and update my PR if you'd like or do you want to add it yourself? Either way works for me.

@bogdan-iancu
Copy link
Member

It will be really helpful for me if you can do this, thank you 🙏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants