I meant the reason specified in the reply as : Reason: Q.850;cause=17 , that is not the SIP response code in fact. T_reply_code relates to the SIP response code.<br><br><div class="gmail_quote">On Fri, Dec 23, 2011 at 12:35 PM, Daniel-Constantin Mierla <span dir="ltr">&lt;<a href="mailto:miconda@gmail.com">miconda@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello,<div class="im"><br>
<br>
On 12/23/11 11:44 AM, Mino Haluz wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi,<br>
<br>
how can I get the reason code from reply in failure_route ? $hdr(reason) points to the INVITE request..<br>
</blockquote></div>
you can test it with a regular expression via t_check_status(...) from tm module or get it in a config variable:<br>
<br>
<a href="http://www.kamailio.org/wiki/cookbooks/3.2.x/pseudovariables#t_reply_code" target="_blank">http://www.kamailio.org/wiki/<u></u>cookbooks/3.2.x/<u></u>pseudovariables#t_reply_code</a><br>
<br>
Cheers,<br>
Daniel<br><font color="#888888">
<br>
-- <br>
Daniel-Constantin Mierla -- <a href="http://www.asipto.com" target="_blank">http://www.asipto.com</a><br>
<a href="http://linkedin.com/in/miconda" target="_blank">http://linkedin.com/in/miconda</a> -- <a href="http://twitter.com/miconda" target="_blank">http://twitter.com/miconda</a><br>
<br>
</font></blockquote></div><br>