[Users] Is there some functions which can append parameters for specific header field?

Daniel-Constantin Mierla daniel at voice-system.ro
Mon May 14 22:58:47 CEST 2007


Hello,

actually you can skip avp_printf() to an avp and do directly

append_hf("Contact: $hdr(contact);foo=bar\r\n");

Cheers,
Daniel


On 05/14/07 09:38, Klaus Darilion wrote:
> Hi 杨冬!
>
> If the Contact header is relayed, you can simply
> 1. make an AVP with avp_printf and the current contact header
> 2. remove the Contact header
> 3. add a new Contact header with the new AVP
>
> e.g.
> avp_printf("$avp(s:newcontact)", "Contact: $hdr(contact);foo=bar");
> remove_hf("Contact");
> append_hf("$avp(s:newcontact)");
>
> regards
> klaus
>
> 杨冬 wrote:
>> hi, all:
>>    I've got such a problem recently. For our SIP client test, I must
>> simulate a specific 180 message. There is a user-defined parameter in
>> the Contact header field. I want to construct this message in openser
>> server when it forwards the message to the caller. So I wonder there
>> is some functions which can append a string parameter to the Contact
>> header field. If it does, I can just add a process script into the
>> configuration file of openser.cfg.
>>    Can anyone give some suggestions?  Thanks.
>>
>>
>> andy
>>
>> _______________________________________________
>> Users mailing list
>> Users at openser.org
>> http://openser.org/cgi-bin/mailman/listinfo/users
>
> _______________________________________________
> Users mailing list
> Users at openser.org
> http://openser.org/cgi-bin/mailman/listinfo/users
>




More information about the Users mailing list