<div dir="ltr">i tried to using is_uri_user_e164 ()  but it will allow anything with &#39;+&#39; sign, like if i set +1001  its allowing... <div><br></div><div>I want to match E.164 or ANI string match logic so it should be something like 16463272823  44635364894  like those number.. </div><div><br></div><div>i don&#39;t want send random string to my SIP provide so they can block me..</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Apr 30, 2015 at 4:38 PM, Newlin, Ben <span dir="ltr">&lt;<a href="mailto:Ben.Newlin@inin.com" target="_blank">Ben.Newlin@inin.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">



<div style="word-wrap:break-word;color:rgb(0,0,0);font-size:14px;font-family:Calibri,sans-serif">
<div>
<div>
<div>There is also a function in the URI module for checking if the user portion of a URI is an E.164 number.</div>
<div><br>
</div>
<div><a href="http://www.opensips.org/html/docs/modules/1.11.x/uri.html#id294513" target="_blank">http://www.opensips.org/html/docs/modules/1.11.x/uri.html#id294513</a></div>
<div>
<div></div>
</div>
</div>
</div>
<div><br>
</div>
<span>
<div style="font-family:Calibri;font-size:12pt;text-align:left;color:black;BORDER-BOTTOM:medium none;BORDER-LEFT:medium none;PADDING-BOTTOM:0in;PADDING-LEFT:0in;PADDING-RIGHT:0in;BORDER-TOP:#b5c4df 1pt solid;BORDER-RIGHT:medium none;PADDING-TOP:3pt">
<span style="font-weight:bold">From: </span>&lt;Podrigal&gt;, Aron<br>
<span style="font-weight:bold">Reply-To: </span>OpenSIPS users mailling list<br>
<span style="font-weight:bold">Date: </span>Thursday, April 30, 2015 at 1:20 PM<br>
<span style="font-weight:bold">To: </span>OpenSIPS users mailling list<br>
<span style="font-weight:bold">Subject: </span>Re: [OpenSIPS-Users] ANIs check for source number<br>
</div><span class="">
<div><br>
</div>
<div>
<div>
<div dir="ltr">yes of course you can use just a regex. That would need to match any standard <span style="font-family:Consolas,Menlo,Monaco,&#39;Lucida Console&#39;,&#39;Liberation Mono&#39;,&#39;DejaVu Sans Mono&#39;,&#39;Bitstream Vera Sans Mono&#39;,&#39;Courier New&#39;,monospace,sans-serif;font-size:13px;line-height:16.8999996185303px;white-space:pre-wrap;background-color:rgb(238,238,238)">^\+?[1-9]\d{1,14}$</span> 
 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.
<div class="gmail_extra"></div>
</div>
</div>
</div>
</span></span>
</div>

<br>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
<br></blockquote></div><br></div>