[OpenSIPS-Users] ANIs check for source number

Newlin, Ben Ben.Newlin at inin.com
Thu Apr 30 22:38:03 CEST 2015


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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20150430/9ee5ed5a/attachment.htm>


More information about the Users mailing list