On Wed, Mar 15, 2017 at 11:02:22AM +0100, Daniel-Constantin Mierla wrote:
I haven't followed closely the entire discussion, but for proper clarification, if one needs to add a header to a received SIP response that is forwarded, then it has to use append_hf(...) inside on/reply_route.
The append_to_reply() should be used for SIP responses to be generated by Kamailio.
This is absolutely true, and entirely the result of poor memory on my part. For some reason I misremembered that the OP was trying to generate a synthetic reply internally with attributes of the received reply.