[OpenSIPS-Devel] [opensips] is_uri_user_e164 (#762)

2016-01-18 Thread ferrored
I migrate from opensips 1115-tls to opensips 1116-tls, and I notice that the function "is_uri_user_e164" no longer work In version 1115-tls I used this code : if (is_uri_user_e164("$ru")) { # $rU begins with the character + if ( !enum_query("nrenumnet") && !enum_query("e164a

Re: [OpenSIPS-Devel] [opensips] is_uri_user_e164 (#762)

2016-01-18 Thread Răzvan Crainea
Can you elaborate a bit "no longer work"? Is it always failing, or it always return true? You're not seeing any of the logs? --- Reply to this email directly or view it on GitHub: https://github.com/OpenSIPS/opensips/issues/762#issuecomment-172504585___

Re: [OpenSIPS-Devel] [opensips] is_uri_user_e164 (#762)

2016-01-18 Thread ferrored
I don't see anything in the logs about is_uri_user_e164 function, also with debug=8. --- Reply to this email directly or view it on GitHub: https://github.com/OpenSIPS/opensips/issues/762#issuecomment-172548924___ Devel mailing list Devel@lists.opens

Re: [OpenSIPS-Devel] [opensips] is_uri_user_e164 (#762)

2016-01-18 Thread ferrored
It seems that the function always fails --- Reply to this email directly or view it on GitHub: https://github.com/OpenSIPS/opensips/issues/762#issuecomment-172558593___ Devel mailing list Devel@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman

Re: [OpenSIPS-Devel] [opensips] is_uri_user_e164 (#762)

2016-01-18 Thread Bogdan Andrei IANCU
what is the $ru you are testing ? --- Reply to this email directly or view it on GitHub: https://github.com/OpenSIPS/opensips/issues/762#issuecomment-172567815___ Devel mailing list Devel@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listi

Re: [OpenSIPS-Devel] [opensips] is_uri_user_e164 (#762)

2016-01-18 Thread ferrored
for examples +390249459310 --- Reply to this email directly or view it on GitHub: https://github.com/OpenSIPS/opensips/issues/762#issuecomment-172570270___ Devel mailing list Devel@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/dev

Re: [OpenSIPS-Devel] [opensips] is_uri_user_e164 (#762)

2016-01-18 Thread ferrored
diff opensips-1.11.6-tls/modules/uri/checks.c opensips-1.11.5-tls/modules/uri/checks.c 356,c356 < if (c < '0' || c > '9') return -1; --- > if (c < '0' && c > '9') return -1; replacing (c < '0' || c > '9') with (c < '0' && c > '9') it seems to work --- Reply to this email di

Re: [OpenSIPS-Devel] [opensips] is_uri_user_e164 (#762)

2016-01-18 Thread Bogdan Andrei IANCU
I don't think is correct what you did - while iterating through all the chars of the username, it exits with error if any char is not digit -> if it is before OR after the set of digits (in the ascii array). So it is an "OR" and not an "AND" . A digit cannot be before 0 AND after 9 in the same

Re: [OpenSIPS-Devel] [opensips] is_uri_user_e164 (#762)

2016-01-18 Thread ferrored
This is the output you ask: Jan 18 17:54:32 proxysiptest /sbin/opensips[24766]: DBG:uri:e164_check: c=3 Jan 18 17:54:32 proxysiptest /sbin/opensips[24766]: DBG:uri:e164_check: c=9 Jan 18 17:54:32 proxysiptest /sbin/opensips[24766]: DBG:uri:e164_check: c=0 Jan 18 17:54:32 proxysiptest /sbin/opensi

Re: [OpenSIPS-Devel] [opensips] is_uri_user_e164 (#762)

2016-01-18 Thread Răzvan Crainea
Closed #762 via 70e5a656c3cd4aa14757245dd710d3869575d3ca. --- Reply to this email directly or view it on GitHub: https://github.com/OpenSIPS/opensips/issues/762#event-518182875___ Devel mailing list Devel@lists.opensips.org http://lists.opensips.org/cgi-