[OpenSIPS-Devel] Getting header field values as single

Bogdan-Andrei Iancu bogdan at voice-system.ro
Tue Sep 23 10:05:06 CEST 2008


Hi Gürkan,

Use the :

struct sip_uri *parse_from_uri(struct sip_msg *msg);

function from parser/parse_from.h and

struct sip_uri *parse_to_uri(struct sip_msg *msg);

from parser/parse_to.h .

Regards,
bogdan

Gürkan Aslan wrote:
> Hi Bogdan,
>
> Yes, i only need the username. Is there any function to do this or
> should i code my own parser? (actually i solved this manually but i
> still wonder the answer).
>
> Thanks for your help.
> Best regards
> Gurkan
>
> Pzt, 2008-09-22 tarihinde 12:22 +0300 saatinde, Bogdan-Andrei Iancu
> yazdı:
>   
>> Hi Gürkan,
>>
>> You mean only the username part of the FROM or TO headers?
>>
>> Regards,
>> Bogdan
>>     
>
>
>
>   




More information about the Devel mailing list