Registrar module save() function stores "received" field in wrong format like
sip:2601:3:8805:107:41E6:C7A1:7724:CF01:5062
When lookup() config function is executed for ipv6 client, kamailio log shows error
Feb 3 12:07:34 east /usr/local/sbin/kamailio[16069]: ERROR: tm [ut.h:254]: uri2dst2(): ERROR: uri2dst: bad_uri: sip:2601:3:8 805:107:41E6:C7A1:7724:CF01:5062 Feb 3 12:07:34 east /usr/local/sbin/kamailio[16069]: ERROR: tm [t_fwd.c:1709]: t_forward_nonack(): ERROR: t_forward_nonack: failure to add branches
Is it kamailio bug or a problem with my config?
Nevermind, that was a problem with kamailio.cfg.
On Tuesday 03 February 2015 12:17:07 Sergey Okhapkin wrote:
Registrar module save() function stores "received" field in wrong format like
sip:2601:3:8805:107:41E6:C7A1:7724:CF01:5062
When lookup() config function is executed for ipv6 client, kamailio log shows error
Feb 3 12:07:34 east /usr/local/sbin/kamailio[16069]: ERROR: tm [ut.h:254]: uri2dst2(): ERROR: uri2dst: bad_uri: sip:2601:3:8 805:107:41E6:C7A1:7724:CF01:5062 Feb 3 12:07:34 east /usr/local/sbin/kamailio[16069]: ERROR: tm [t_fwd.c:1709]: t_forward_nonack(): ERROR: t_forward_nonack: failure to add branches
Is it kamailio bug or a problem with my config?
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
Has anybody seen a similar log error before?
Many thanks!
Feb 2 09:05:43 localhost /usr/local/sbin/kamailio[11093]: ERROR: <core> [dtrie.c:130]: dtrie_insert(): cannot insert non-numerical character Feb 2 09:05:43 localhost /usr/local/sbin/kamailio[11093]: ERROR: carrierroute [cr_domain.c:168]: add_route_to_tree(): cannot insert route flags into d-trie Feb 2 09:05:43 localhost /usr/local/sbin/kamailio[11093]: ERROR: carrierroute [cr_data.c:181]: reload_route_data(): could not load routing data Feb 2 09:05:53 localhost /usr/local/sbin/kamailio[12792]: ERROR: <core> [dtrie.c:130]: dtrie_insert(): cannot insert non-numerical character Feb 2 09:05:53 localhost /usr/local/sbin/kamailio[12792]: ERROR: carrierroute [cr_domain.c:168]: add_route_to_tree(): cannot insert route flags into d-trie Feb 2 09:05:53 localhost /usr/local/sbin/kamailio[12792]: ERROR: carrierroute [cr_data.c:181]: reload_route_data(): could not load routing data Feb 2 09:05:53 localhost /usr/local/sbin/kamailio[12792]: ERROR: carrierroute [carrierroute.c:248]: mod_init(): could not prepare route data Feb 2 09:05:53 localhost /usr/local/sbin/kamailio[12792]: ERROR: <core> [sr_module.c:970]: init_mod(): init_mod(): Error while initializing module carrierroute (/usr/local/lib64/kamailio/modules/carrierroute.so)
Cheers, Gary
Nevermind I tracked down the issue myself...data validation bug.
After waiting to no avail for valuable info from dOpenXXXX. I looked at the kamailio source code, and based on the log info Jxxx provided was able to track down the issue. I fixed the input data validation bug in my code like so...
kamailio agent sips.c commit message:
unxsVZ kamailio agent corrected provisioning bug allowing non numerical or empty string data to be loaded into carrierroute.scan_prefix.
Here is the source code ProvisionDR() is the only relevant section:
http://openisp.net/openisp/unxsVZ/browser/trunk/agents/kamailio/sips.c
On 2/3/2015 19:30, Gary Wallis wrote:
Has anybody seen a similar log error before?
Many thanks!
Feb 2 09:05:43 localhost /usr/local/sbin/kamailio[11093]: ERROR: <core> [dtrie.c:130]: dtrie_insert(): cannot insert non-numerical character Feb 2 09:05:43 localhost /usr/local/sbin/kamailio[11093]: ERROR: carrierroute [cr_domain.c:168]: add_route_to_tree(): cannot insert route flags into d-trie Feb 2 09:05:43 localhost /usr/local/sbin/kamailio[11093]: ERROR: carrierroute [cr_data.c:181]: reload_route_data(): could not load routing data Feb 2 09:05:53 localhost /usr/local/sbin/kamailio[12792]: ERROR: <core> [dtrie.c:130]: dtrie_insert(): cannot insert non-numerical character Feb 2 09:05:53 localhost /usr/local/sbin/kamailio[12792]: ERROR: carrierroute [cr_domain.c:168]: add_route_to_tree(): cannot insert route flags into d-trie Feb 2 09:05:53 localhost /usr/local/sbin/kamailio[12792]: ERROR: carrierroute [cr_data.c:181]: reload_route_data(): could not load routing data Feb 2 09:05:53 localhost /usr/local/sbin/kamailio[12792]: ERROR: carrierroute [carrierroute.c:248]: mod_init(): could not prepare route data Feb 2 09:05:53 localhost /usr/local/sbin/kamailio[12792]: ERROR: <core> [sr_module.c:970]: init_mod(): init_mod(): Error while initializing module carrierroute (/usr/local/lib64/kamailio/modules/carrierroute.so)
Cheers, Gary
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 03 Feb 2015, at 18:17, Sergey Okhapkin sos@sokhapkin.dyndns.org wrote:
Registrar module save() function stores "received" field in wrong format like
sip:2601:3:8805:107:41E6:C7A1:7724:CF01:5062
This is an invalid URI. The URI needs to have [ and ] surrounding the IPv6 address.
Please open a bug report.
/O
When lookup() config function is executed for ipv6 client, kamailio log shows error
Feb 3 12:07:34 east /usr/local/sbin/kamailio[16069]: ERROR: tm [ut.h:254]: uri2dst2(): ERROR: uri2dst: bad_uri: sip:2601:3:8 805:107:41E6:C7A1:7724:CF01:5062 Feb 3 12:07:34 east /usr/local/sbin/kamailio[16069]: ERROR: tm [t_fwd.c:1709]: t_forward_nonack(): ERROR: t_forward_nonack: failure to add branches
Is it kamailio bug or a problem with my config?
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 03/02/15 18:58, Olle E. Johansson wrote:
On 03 Feb 2015, at 18:17, Sergey Okhapkin sos@sokhapkin.dyndns.org wrote:
Registrar module save() function stores "received" field in wrong format like
sip:2601:3:8805:107:41E6:C7A1:7724:CF01:5062
This is an invalid URI. The URI needs to have [ and ] surrounding the IPv6 address.
fix_nated_register() which sets the receivied field is adding [ ] around ipv6 addresses, as I could spot from the code.
Cheers, Daniel
Please open a bug report.
/O
When lookup() config function is executed for ipv6 client, kamailio log shows error
Feb 3 12:07:34 east /usr/local/sbin/kamailio[16069]: ERROR: tm [ut.h:254]: uri2dst2(): ERROR: uri2dst: bad_uri: sip:2601:3:8 805:107:41E6:C7A1:7724:CF01:5062 Feb 3 12:07:34 east /usr/local/sbin/kamailio[16069]: ERROR: tm [t_fwd.c:1709]: t_forward_nonack(): ERROR: t_forward_nonack: failure to add branches
Is it kamailio bug or a problem with my config?
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
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