Hello,
On 06.08.2009 10:31 Uhr, Iñaki Baz Castillo wrote:
2009/8/6 Alex Balashov abalashov@evaristesys.com:
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?
Yes Alex, the above is a hack ;)
The current "support" of TEL uri is also a "hack", since after parsing a TEL URI what we have is:
- $rU = null
- $rd = the TEL number
(note: parhaps is the opposite)
I'd realy would like to have something as:
- $rtU = RURI TEL number
- $rtparams = RURI TEL parameters
sip-router core has support for tel uri, but there are no PVs associated with. The username should be the tel number and the host is empty. Try and see if all works ok.
Cheers, Daniel