[Kamailio-Devel] How to check URI protocol ("sip", "sips", "tel") ? How to deal with a TEL URI ?
Iñaki Baz Castillo
ibc at aliax.net
Fri Mar 13 20:56:41 CET 2009
El Viernes, 13 de Marzo de 2009, Juha Heinanen escribió:
> 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.
Ok, I will take a look to it.
Regards.
--
Iñaki Baz Castillo
More information about the Devel
mailing list