[OpenSIPS-Users] How to append header to stateless reply
Bogdan-Andrei Iancu
bogdan at opensips.org
Fri Jul 1 12:51:40 CEST 2016
Hi Jeff,
See append_to_reply() function:
http://www.opensips.org/html/docs/modules/2.2.x/sipmsgops.html#id249643
Regards,
Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com
On 01.07.2016 05:15, Jeff Pyle wrote:
> Hello,
>
> How can I add a header to a stateless reply? Or, if that's not
> possible, to a transactional reply?
>
> I'm trying to do something like this:
>
> route {
> ...
> append_hf("P-Custom-Header: $avp(value)\r\n");
> sl_send_reply("123", "Custom Response");
> exit;
> }
>
> 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.
>
>
>
> - Jeff
>
>
>
> _______________________________________________
> Users mailing list
> 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/20160701/16ccb761/attachment.htm>
More information about the Users
mailing list