[OpenSIPS-Users] How to append header to stateless reply
    Jeff Pyle 
    jeff.pyle at fidelityvoice.com
       
    Fri Jul  1 04:15:22 CEST 2016
    
    
  
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20160630/c32b87c3/attachment.htm>
    
    
More information about the Users
mailing list