[SR-Users] is_e164 logic to detect valid number

Patrick Wakano pwakano at gmail.com
Mon Dec 3 06:08:27 CET 2018

Hello list,
Hope you are all doing fine!

I am using the is_e164() function to validate the number we receive, and I
come to see that the number +555 was accepted....
After some googling it looks like(it is not very clear though) that 7
digits are the minimum we could have for e164 numbers but after checking
the source code, I saw it accepts anything starting with + and having
between 2 and 16 numbers. So is it really valid to have a number with just
2 digits? What is the case?

Thank you,
Kind regards,
Patrick Wakano
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20181203/99ca25ac/attachment.html>

More information about the sr-users mailing list