I'm using this piece of code as failure route:<br><br>failure_route[2] {<br><br> # ----- Re-Rutear menasje con CR -----<br><br> xlog("L_ERR", "Carrier fallo ruteando $ru\n");<br> if (t_check_status("408|404|5[0-9][0-9]|6[0-9][0-9]"))<br>
{<br> if (!cr_next_domain("$avp(s:routeTree)", "$avp(s:rutaindice)", "$oU",<br> "$avp(s:cr_host)", "$T_reply_code", "$avp(s:cfr_domain)"))<br>
{<br> t_reply("404", "Not found");<br> exit;<br> };<br><br> $avp(s:rutaindice) = $avp(s:cfr_domain);<br><br> if(!cr_route("$avp(s:routeTree)", "$avp(s:rutaindice)", "$oU", "$oU", "call_id")){<br>
xlog("L_ERR", "No se encontraron mas carrier para rutear $rU\n");<br> t_reply("404", "Not found");<br> }<br> else<br>
{<br> xlog("L_ERR", "Se encontre otro carrier para rutear $rU\n");<br> append_branch();<br> route(2);<br> };<br>
}<br> else<br> {<br> t_reply("404", "Not found");<br> exit;<br> };<br>}<br><br>And right in the main route i have:<br><br>if (is_method("INVITE|BYE|CANCEL"))<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"><<a href="mailto:henning.westerholt@1und1.de">henning.westerholt@1und1.de</a>></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">> The issue I'm facing is that, when this happens I get no record on the<br>
> missed_calls table, but only for this attempt; all other attempts are<br>
> recorded.<br>
><br>
> This will impact on teh ASR calculation script we developed and the routing<br>
> logic that uses those values.<br>
><br>
> 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'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>