Right... I usually put the second option in there so I have some control of 
where it goes in the list of headers.  I think by default it puts the new ones 
at the top.  Nothing wrong with that, just a bit weird looking.

And in my example I forgot the \r\n.  Oops.

Glad it's working for you.



- Jeff


On Oct 1, 2010, at 11:33 AM, David Santiago wrote:

Thx Jeff,

In the meantime I have tried with

append_hf("P-Preferred-Service: header value\r\n");

and it seems to also work fine.


Regards,
David

On Fri, Oct 1, 2010 at 5:21 PM, Jeff Pyle 
<jp...@fidelityvoice.com<mailto:jp...@fidelityvoice.com>> wrote:
David,

http://www.opensips.org/html/docs/modules/1.4.x/textops.html#id271351

<http://www.opensips.org/html/docs/modules/1.4.x/textops.html#id271351>Something
 like this:
  insert_hf("P-Preferred-Service: header value", "Contact");


- Jeff

On Oct 1, 2010, at 11:09 AM, David Santiago wrote:

Hi,

I need to add a P-Preferred-Service header to the SIP messages that are sent 
from my OpenSIPS installation to the destination slee server.

What is the recommended way to do this?


Thanks in advance,
David
_______________________________________________
Users mailing list
Users@lists.opensips.org<mailto:Users@lists.opensips.org>
http://lists.opensips.org/cgi-bin/mailman/listinfo/users



_______________________________________________
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

Reply via email to