[OpenSIPS-Users] Adding P-Preferred-Service header

Jeff Pyle jpyle at fidelityvoice.com
Fri Oct 1 17:51:17 CEST 2010


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 <jpyle at fidelityvoice.com<mailto:jpyle at 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 at lists.opensips.org<mailto:Users at lists.opensips.org>
http://lists.opensips.org/cgi-bin/mailman/listinfo/users



-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.opensips.org/pipermail/users/attachments/20101001/68094af1/attachment.htm 


More information about the Users mailing list