There is also a function in the URI module for checking if the user portion of 
a URI is an E.164 number.

http://www.opensips.org/html/docs/modules/1.11.x/uri.html#id294513

From: <Podrigal>, Aron
Reply-To: OpenSIPS users mailling list
Date: Thursday, April 30, 2015 at 1:20 PM
To: OpenSIPS users mailling list
Subject: Re: [OpenSIPS-Users] ANIs check for source number

yes of course you can use just a regex. That would need to match any standard 
^\+?[1-9]\d{1,14}$  BTW, 011 (as countrycode plus number) I think is invalid 
form, the stranded allows ANI to be up to 15 digit and does not have a min 
length.
_______________________________________________
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

Reply via email to