<div dir="ltr"><div><span style="white-space:nowrap">Andrew, I use smth like this for adding header to any response</span></div><div><span style="white-space:nowrap"><br></span></div><div>request_route{</div><div><br></div><div>if (is_method("INVITE")){<br></div><div>        t_check_trans();</div><div>        t_on_failure("INV_FAIL");</div><div>        t_relay("mysip", "5060");</div><div>}</div><div><br></div><div>}</div><div><br></div><div><br></div><div>failure_route[INV_FAIL] {</div><div>        xlog("L_INFO", "failure_route code: $T_reply_code; reason: $T_reply_reason;");</div><div>        append_to_reply("MyField: my_field_content\r\n");</div><div>        send_reply("$T_reply_code","$T_reply_reason");</div><div>        exit;</div><div><br></div><div>}</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">2015-12-22 18:33 GMT+03:00 Andrew Pogrebennyk <span dir="ltr"><<a href="mailto:apogrebennyk@sipwise.com" target="_blank">apogrebennyk@sipwise.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello Efelin,<br>
I stumbled upon the issue you described here. Have you been able to find<br>
a solution? I've tried to play with t_reply(), but no luck so far.<br>
<br>
Regards,<br>
Andrew<br>
<br>
On 11/18/2013 10:00 AM, Efelin Novak wrote:<br>
> Hi,<br>
><br>
> I would like to append a header to a 'winning' negative reply in<br>
> failure_route and let the Kamailio do the default action (state fully<br>
> forward the winning reply).<br>
><br>
> When I use append_to_reply("Foo: bar\r\n"); and then call exit; in<br>
> failure_route nothing is appended.<br>
> When I use same append_to_reply then t_relay("505","Error"); and exit;<br>
> the header is appended.<br>
> When I use append and t_reply with dialog modul turned on I got a bug<br>
> I'm solving here '[SR-Users] t_reply in failure route with dialog module'.<br>
><br>
> So my question is how to put a header into a reply when I don't want to<br>
> alter its code or text?<br>
><br>
> I'm using Kamilio 4.0.4 on Debian 7.1<br>
><br>
> Thanks for an answer<br>
><br>
> Efelin<br>
<br>
<br>
_______________________________________________<br>
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
<a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div>Savolainen Dmitri</div></div></div></div></div>
</div>