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
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users