[Spce-user] user=phone and 181 forward missing
Andrew Pogrebennyk
apogrebennyk at sipwise.com
Wed Oct 21 05:16:33 EDT 2015
On 10/19/2015 11:03 AM, Andreas Granig wrote:
> The only remark here is that user=phone should only be added if the
> ruri-user is actually a phone number. Of course that's always a bit hard
> to tell in a generic SIP environment, but you might want to check for
> chars in $rU and only set the parameter if it at least looks like a
> phone number, and/or if you know by other means that it's really a phone
> number.
>
> Andreas
Agreed. One of those functions may come in handy:
is_e164()
is_tel_number()
http://kamailio.org/docs/modules/stable/modules/siputils.html#siputils.f.is_e164
2 Julian - thx for the link, I will have a look at it.
Regards,
Andrew
More information about the Spce-user
mailing list