Hello there, I'm using carrierroute module to route calls based on prefix, everything was working until i tried use prefixes that start with +, kamailio core doesn't allow me use the + on carrierroute prefix, i get the following message from kamailio logs:
INFO: carrierroute [cr_carrier.c:100]: add_domain_data(): adding domain 1 'main' to carrier 1 'carriers'35(17196) DEBUG: carrierroute [cr_carrier.c:101]: add_domain_data(): domain position 0 (domain_num=1, first_empty_domain=0)35(17196) INFO: carrierroute [cr_data.c:414]: get_domain_data_or_add(): added domain 1 'main' to carrier 1 'carriers'35(17196) INFO: carrierroute [cr_data.c:470]: add_route(): found carrier and domain, now adding route 35(17196) ERROR: <core> [dtrie.c:130]: dtrie_insert(): cannot insert non-numerical character 35(17196) ERROR: carrierroute [cr_domain.c:168]: add_route_to_tree(): cannot insert route flags into d-trie
anyone can help in order allow use + in carrierroute prefix.
Best regards José Seabra
Hello Jose; You can replace "+" to "00" . i use like that. scan_prefix at Carrierroute only uses Numbers have a nice day.
-- View this message in context: http://sip-router.1086192.n5.nabble.com/carrierroute-module-cannot-use-prefi... Sent from the Users mailing list archive at Nabble.com.
On Monday 21 September 2015 08:02:46 ycaner wrote:
You can replace "+" to "00" . i use like that. scan_prefix at Carrierroute only uses Numbers
Very non untuitive for countries that don't use 00 as international prefix.
Hello Daniel,
Seems that carrieroute module won't work for all countrycodes, there is countrycodes that must have +.
Thank you for your reply Best Regards José Seabra
2015-09-21 16:12 GMT+01:00 Daniel Tryba d.tryba@pocos.nl:
On Monday 21 September 2015 08:02:46 ycaner wrote:
You can replace "+" to "00" . i use like that. scan_prefix at
Carrierroute
only uses Numbers
Very non untuitive for countries that don't use 00 as international prefix.
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
On Monday 21 September 2015 16:28:21 José Seabra wrote:
Seems that carrieroute module won't work for all countrycodes, there is countrycodes that must have +.
That is something that depends on your upstream carriers. Rewriting + to 00 is a solution (for carrierroute), but if you have an upstream that demands 00 (or 010 or whatever) instead of + you will have to rewrite it before sending yourself.