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

Reply via email to