<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">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.<div><br></div><div>And in my example I forgot the \r\n. Oops.</div><div><br></div><div>Glad it's working for you.</div><div><br></div><div><br></div><div><br></div><div>- Jeff</div><div><br></div><div><br><div><div>On Oct 1, 2010, at 11:33 AM, David Santiago wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">Thx Jeff,<br><br>In the meantime I have tried with<br><br>append_hf("P-Preferred-Service: header value\r\n");<br><br>and it seems to also work fine.<br><br><br>Regards,<br>David<br><br><div class="gmail_quote">On Fri, Oct 1, 2010 at 5:21 PM, Jeff Pyle <span dir="ltr"><<a href="mailto:jpyle@fidelityvoice.com">jpyle@fidelityvoice.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div style="word-wrap: break-word;">David,<div><br></div><div><a href="http://www.opensips.org/html/docs/modules/1.4.x/textops.html#id271351" target="_blank">http://www.opensips.org/html/docs/modules/1.4.x/textops.html#id271351</a></div>
<div><br></div><div><a href="http://www.opensips.org/html/docs/modules/1.4.x/textops.html#id271351" target="_blank"></a>Something like this:</div><div> insert_hf("P-Preferred-Service: header value", "Contact");</div>
<div><br></div><div><br></div><div>- Jeff</div><div><br></div><div><div><div><div></div><div class="h5"><div>On Oct 1, 2010, at 11:09 AM, David Santiago wrote:</div><br></div></div><blockquote type="cite"><div><div></div>
<div class="h5">Hi,<br><br>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.<br><br>What is the recommended way to do this?<br><br>
<br>
Thanks in advance,<br>
David<br></div></div>
_______________________________________________<br>Users mailing list<br><a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br><a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
</blockquote></div><br></div></div></blockquote></div><br>
</blockquote></div><br></div></body></html>