i tried to using is_uri_user_e164 () but it will allow anything with '+' sign, like if i set +1001 its allowing...
I want to match E.164 or ANI string match logic so it should be something like 16463272823 44635364894 like those number.. i don't want send random string to my SIP provide so they can block me.. On Thu, Apr 30, 2015 at 4:38 PM, Newlin, Ben <[email protected]> wrote: > 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 > [email protected] > http://lists.opensips.org/cgi-bin/mailman/listinfo/users > >
_______________________________________________ Users mailing list [email protected] http://lists.opensips.org/cgi-bin/mailman/listinfo/users
