[Kamailio-Devel] How to check URI protocol ("sip", "sips", "tel") ? How to deal with a TEL URI ?
Juha Heinanen
jh at tutpro.com
Fri Mar 13 20:19:56 CET 2009
Iñaki Baz Castillo writes:
> Hi, perhaps I miss something but I don't find how to retrieve the RURI
> protocol (I don't mean the transport protocol but the URI protocol => sip,
> sips, tel...).
>
> I don't want to do:
> if ($ru =~ "^tel:")
inaki,
if there is no pv for uri scheme, it would need to be written.
> BTW I've realized that in case of receiving a TEL URI ("tel:+1234"),
> $rU shows
> the TEL number ("+1234") but doing:
> $rU = "+22222";
> gives an error:
>
> ERROR:core:parse_uri: bad host in uri (error at char
> ERROR:core:parse_sip_msg_uri: bad uri <tel:+22222@>
> ERROR:domain:is_uri_host_local: Error while parsing R-URI
>
> It seems that using "$rU=" inmediatelly converts the URI into a SIP URI. How
> to handle with a TEL URI number?
if i remember correctly, tel: uri parsing (including all params) has not
really been implemented in kamailio.
-- juha
More information about the Devel
mailing list