[OpenSIPS-Users] number validation
Răzvan Crainea
razvan at opensips.org
Thu Jan 26 04:28:03 EST 2017
You can use regular expressions:
if ($var(number) =~ "^[0-9]*$")
xlog("Number");
else
xlog("Not a number");
Best regards,
Răzvan Crainea
OpenSIPS Solutions
www.opensips-solutions.com
On 01/26/2017 10:52 AM, Dragomir Haralambiev wrote:
> Hello,
>
> How Opensips 2.2 can validate number ?
>
> "491234567" is valid number , but
> "49a12b34567" is not valid
>
> Best regards,
> Dragomir
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20170126/6d52cae6/attachment.html>
More information about the Users
mailing list