One more piece of info, I found out that cr_next_domain is failing when i reach the last carrier failure route.<br><br>I'm loading this on carrierroute and carrierfailureroute:<br>CR<br>5544 2 0 105411609187 0 0 120 4 192.168.200.23 900210540 J10<br>
5545 2 1 105411609187 0 0 30 4 192.168.200.14 900210540 J10<br>CFR<br>9240 2 0 105411609187 192.168.200.23 ... 0 0 1 J10<br>9241 2 1 105411609187 192.168.200.14 ... 0 0 J10<br>
<br>This is what I get on syslog:<br><br>Mar 26 10:16:23 cc1pri /usr/local/sbin/kamailio[25163]: Carrier encontrado; ruteando <a href="mailto:sip%3A9002105401160918752@192.168.200.23">sip:9002105401160918752@192.168.200.23</a> <br>
Mar 26 10:16:23 cc1pri /usr/local/sbin/kamailio[25163]: Carrier fallo ruteando <a href="mailto:sip%3A9002105401160918752@192.168.200.23">sip:9002105401160918752@192.168.200.23</a> <br>Mar 26 10:16:23 cc1pri /usr/local/sbin/kamailio[25163]: Se encontre otro carrier para rutear 9002105401160918752 <br>
Mar 26 10:16:23 cc1pri /usr/local/sbin/kamailio[25163]: Carrier fallo ruteando <a href="mailto:sip%3A9002105401160918752@192.168.200.14">sip:9002105401160918752@192.168.200.14</a> <br>Mar 26 10:16:23 cc1pri /usr/local/sbin/kamailio[25163]: ERROR:carrierroute:cr_load_next_domain: during set_next_domain_recursor, prefix '10541160918752', carrier 2, domain 1 <br>
<br>Using this peace of code:<br><br>route[2] {<br><br> t_on_failure("2");<br> t_relay();<br> exit;<br>}<br><br>route[20] {<br><br> # ----- Rutear menasje con CR -----<br><br> $avp(s:rutaindice) := 0;<br>
if(!cr_route("$avp(s:routeTree)", "$avp(s:rutaindice)", "$oU", "$oU", "call_id", "$avp(s:cr_host)"))<br> {<br> sl_send_reply("480", "Temporarily unavailable");<br>
}<br> else<br> {<br> xlog("L_ERR", "Carrier encontrado; ruteando $ru\n");<br> route(2);<br> };<br>}<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>}<br><br><br><div class="gmail_quote">On Wed, Mar 25, 2009 at 10:53 AM, Uriel Rozenbaum <span dir="ltr"><<a href="mailto:uriel.rozenbaum@gmail.com">uriel.rozenbaum@gmail.com</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;">
Guys,<br><br>I'm getting this error on the logs for failure route but just for some of the calls I pass. If I call afterwards to that number it rings OK, so it is a random event:<br><br>ERROR:carrierroute:cr_load_next_domain: during set_next_domain_recursor, prefix '1054111547533610', carrier 2, domain 1<br>
<br>I'm filling carrierfailureroute with an empty string when I want taht route to be the final one; is it OK to do that?<br><br>Thanks in advance,<br><font color="#888888">Uriel<br>
</font></blockquote></div><br>