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
- make an AVP with avp_printf and the current contact header
- remove the Contact header
- 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@openser.org http://openser.org/cgi-bin/mailman/listinfo/users
Users mailing list Users@openser.org http://openser.org/cgi-bin/mailman/listinfo/users