I&#39;m using this piece of code as failure route:<br><br>failure_route[2] {<br><br>        # ----- Re-Rutear menasje con CR -----<br><br>        xlog(&quot;L_ERR&quot;, &quot;Carrier fallo ruteando $ru\n&quot;);<br>        if (t_check_status(&quot;408|404|5[0-9][0-9]|6[0-9][0-9]&quot;))<br>
        {<br>                if (!cr_next_domain(&quot;$avp(s:routeTree)&quot;, &quot;$avp(s:rutaindice)&quot;, &quot;$oU&quot;,<br>                        &quot;$avp(s:cr_host)&quot;, &quot;$T_reply_code&quot;, &quot;$avp(s:cfr_domain)&quot;))<br>
                {<br>                        t_reply(&quot;404&quot;, &quot;Not found&quot;);<br>                        exit;<br>                };<br><br>                $avp(s:rutaindice) = $avp(s:cfr_domain);<br><br>                if(!cr_route(&quot;$avp(s:routeTree)&quot;, &quot;$avp(s:rutaindice)&quot;, &quot;$oU&quot;, &quot;$oU&quot;, &quot;call_id&quot;)){<br>
                        xlog(&quot;L_ERR&quot;, &quot;No se encontraron mas carrier para rutear $rU\n&quot;);<br>                        t_reply(&quot;404&quot;, &quot;Not found&quot;);<br>                }<br>                else<br>
                {<br>                        xlog(&quot;L_ERR&quot;, &quot;Se encontre otro carrier para rutear $rU\n&quot;);<br>                        append_branch();<br>                        route(2);<br>                };<br>
        }<br>        else<br>        {<br>                t_reply(&quot;404&quot;, &quot;Not found&quot;);<br>                exit;<br>        };<br>}<br><br>And right in the main route i have:<br><br>if (is_method(&quot;INVITE|BYE|CANCEL&quot;))<br>
        {<br>                setflag(1);<br>                setflag(2);<br>        }<br><br>In order to bill all messages.<br><br>Is there any error in the failure logic?<br><br><div class="gmail_quote">On Mon, Mar 30, 2009 at 1:02 PM, Henning Westerholt <span dir="ltr">&lt;<a href="mailto:henning.westerholt@1und1.de">henning.westerholt@1und1.de</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="im">On Monday 30 March 2009, Uriel Rozenbaum wrote:<br>
</div><div class="im">&gt; The issue I&#39;m facing is that, when this happens I get no record on the<br>
&gt; missed_calls table, but only for this attempt; all other attempts are<br>
&gt; recorded.<br>
&gt;<br>
&gt; This will impact on teh ASR calculation script we developed and the routing<br>
&gt; logic that uses those values.<br>
&gt;<br>
&gt; Do you think it was fixed on 1.5?<br>
<br>
</div>Hi Uriel,<br>
<br>
you should get an error in your script in this case, cr_next_domain return -1.<br>
So in your cfg kamailio will return 404 and exit the script. So i don&#39;t think<br>
its an error in cr, its probably related to the usage of the acc module in<br>
your cfg.<br>
<br>
Cheers,<br>
<font color="#888888"><br>
Henning<br>
</font></blockquote></div><br>