[sr-dev] About SIP and TEL uri in SR
Alex Balashov
abalashov at evaristesys.com
Thu Aug 6 02:05:21 CEST 2009
Iñaki Baz Castillo wrote:
> Hi, does/will SR implement TEL URI properly? This is: OpenSer/Kamailio doesn't
> support it (just a very basic support).
>
> Also, some useful funtions would be:
>
> - "is_sip?": returns true if RURI has SIP URI.
if($ru =~ "^sip:")
> - "is_sips?": returns true if RURI has SIPS URI.
if($ru =~ "^sips:")
> - "is_sip_ips?": returns true if RURI has SIP or SIPS URI.
if($ru =~ "^sip([s]*):)
> - "is_tel?": returns true if RURI has TEL URI.
if($ru =~ "^tel:")
?
Or are you looking for something more involved than that, i.e.
validation of the actual contents of the values and not just the alleged
URI scheme?
-- Alex
--
Alex Balashov
Evariste Systems
Web : http://www.evaristesys.com/
Tel : (+1) (678) 954-0670
Direct : (+1) (678) 954-0671
Mobile : (+1) (678) 237-1775
More information about the sr-dev
mailing list