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

Bogdan Andrei IANCU notifications at github.com
Mon Jan 18 17:27:04 CET 2016


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 time :) .
Can you print "c" in the "if" here:
   https://github.com/OpenSIPS/opensips/blob/2.1/modules/uri/checks.c#L354
(before the return -1).

---
Reply to this email directly or view it on GitHub:
https://github.com/OpenSIPS/opensips/issues/762#issuecomment-172577012
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/devel/attachments/20160118/fcf51e31/attachment.htm>


More information about the Devel mailing list