<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<tt>Hi Jeff,<br>
<br>
See append_to_reply() function:<br>
<a class="moz-txt-link-freetext" href="http://www.opensips.org/html/docs/modules/2.2.x/sipmsgops.html#id249643">http://www.opensips.org/html/docs/modules/2.2.x/sipmsgops.html#id249643</a><br>
<br>
Regards,<br>
</tt>
<pre class="moz-signature" cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a class="moz-txt-link-freetext" href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a></pre>
<div class="moz-cite-prefix">On 01.07.2016 05:15, Jeff Pyle wrote:<br>
</div>
<blockquote
cite="mid:CACYJG3+U4czpLV6c+aiuLg39nw3QuDFpqSZbj4Td6YSpOd90TQ@mail.gmail.com"
type="cite">
<div dir="ltr">Hello,<br>
<div><br>
</div>
<div>How can I add a header to a stateless reply? Or, if that's
not possible, to a transactional reply?</div>
<div><br>
</div>
<div>I'm trying to do something like this:</div>
<div><br>
</div>
<div>route {</div>
<div> ...</div>
<div> append_hf("P-Custom-Header: $avp(value)\r\n");</div>
<div> sl_send_reply("123", "Custom Response");</div>
<div> exit;</div>
<div>}</div>
<div><br>
</div>
<div>where P-Custom-Header appears in the 123 Custom Response
reply. The above snippet would work only for a relayed
request I believe, and since I haven't received a network
reply, I'm not sure how I could use an onreply_route. I'm
stuck.</div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
<div>- Jeff</div>
<div><br>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
<br>
</body>
</html>