Jan,<br><br>I&#39;m assuming you actually meant $tU which is the user portion of the To URI.<br>If all you are trying to do is test if they are numeric then regex is the best way to test it.<br>Something like:<br>if ( ! $tU =~ &quot;^[0-9]*$&quot; ) {<br>

   ... deal with non numeric user ...<br>}<br><br>Dave<br><br><div class="gmail_quote">On Wed, May 4, 2011 at 2:07 AM, Denis Putyato <span dir="ltr">&lt;<a href="mailto:denis7979@mail.ru">denis7979@mail.ru</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hello<br>
<br>
Try to use dialplan module<br>
<a href="http://www.opensips.org/html/docs/modules/devel/dialplan.html#id249075" target="_blank">http://www.opensips.org/html/docs/modules/devel/dialplan.html#id249075</a><br>
<div><div></div><div class="h5"><br>
-----Original Message-----<br>
From: <a href="mailto:users-bounces@lists.opensips.org">users-bounces@lists.opensips.org</a> [mailto:<a href="mailto:users-bounces@lists.opensips.org">users-bounces@lists.opensips.org</a>] On Behalf Of Jan D.<br>
Sent: Wednesday, May 04, 2011 1:00 PM<br>
To: <a href="mailto:users@lists.opensips.org">users@lists.opensips.org</a><br>
Subject: [OpenSIPS-Users] Validate To Uri<br>
<br>
In an INVITE I want to validate the To Uri ($Tu). This should be a numeric<br>
value (ie. 31201234567).<br>
<br>
Is there a function I can use or should I validate against a regexp (if so,<br>
do you have an example).<br>
<br>
Regards,<br>
<br>
Jan<br>
<br>
--<br>
View this message in context: <a href="http://opensips-open-sip-server.1449251.n2.nabble.com/Validate-To-Uri-tp6330114p6330114.html" target="_blank">http://opensips-open-sip-server.1449251.n2.nabble.com/Validate-To-Uri-tp6330114p6330114.html</a><br>


Sent from the OpenSIPS - Users mailing list archive at Nabble.com.<br>
<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>
<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>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>David Singer<br>