[Serusers] get uri in module

Libor Chocholaty libor_ml1 at mts.cz
Tue Dec 30 12:02:26 CET 2008


Hi,
Did you check that To HF is parsed already?
See get_to_uid() function in id.c, how it works.
In general, header fields are parsed on demand, so that if you are not
sure, you have to check if your HF is parsed already.

BR,
Libor


Netadmin Bensoft wrote:
> Hello,
> I made a module and i want to get the uri from sip msg. How can i do
> this?
>
> What i need is the phone from uri or the uri (sip:1234 at sip.sip.com)
> I've tried get_to(msg)->uri.s but it doesn't return the uri..
>
>
> Thanks. 




More information about the sr-users mailing list