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

杨冬 wintersun1981 at gmail.com
Tue May 15 04:04:17 CEST 2007


hi,
    Thanks both of two very much!

2007/5/15, Daniel-Constantin Mierla <daniel at voice-system.ro>:
> 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