<div dir="ltr">Hello,<div>i have found the solution in the docs:</div><div><div><br></div><div>                append_hf(&quot;Route: &lt;<a href="mailto:sip%3Axyz@test.com">sip:xyz@test.com</a>&gt;\r\n&quot;);</div><div>                t_newtran();</div><div>                t_add_hdrs(&quot;Route: &lt;<a href="mailto:sip%3Azyz@test.com">sip:zyz@test.com</a>&gt;\r\n&quot;);</div><div><br></div><div class="gmail_extra">Regards,</div><div class="gmail_extra">Takeshi</div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Oct 10, 2015 at 9:03 AM, mayamatakeshi <span dir="ltr">&lt;<a href="mailto:mayamatakeshi@gmail.com" target="_blank">mayamatakeshi@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div>Hi, i have opensips behind another SIP proxy. <br></div><div>When I need to t_relay an INVITE from an uac to the proxy, my opensips.cfg uses append_hf to add a Route header with a username required by the proxy (some sort of validation).</div><div>This works fine. However, if the uac cancels the INVITE, the transaction-controlled CANCEL generated by opensips goes out without this Route header.</div><div>I was expecting opensips to add this Route header because opensips is also used as a registrar and the proxy in front of it adds Path header to the REGISTER requests and then when I relay an INVITE to the registered entity (after doing lookup() ), the INVITE goes out with the contents of the Path header in a Route header and the same Route header is added by opensips to the CANCEL it generates.</div><div><br></div><div>So, is there a way to force opensips to add this header to CANCEL? (I cannot change the proxy in front of opensips. I need to conform with it). </div><div>I am using opensips 1.11 commit 719f298d5ad3300b790f64cfed40e797eeb23225.</div><div>Regards,</div><div>Takeshi</div></div>
</blockquote></div><br></div></div></div>