Hola a tod@s,<br><br>llevo un tiempo intentando activar la redirección en Kamailio cuando el destinatario tiene activadas dichas redirecciones "callbusy". Este es el último código que tengo en pruebas y no funciona. <br>
<br>La redirección directa funciona sin problemas, pero esta no. Al parecer entra dentro de la ruta, detecta el 486 pero no vuelve a llamar a la uri de la redirección. <br><br>failure_route[FAIL_ONE] {<br>xlog("L_INFO", "entering failure_route for reply code $T_reply_code\n");<br>
if (is_method("INVITE") && (isbflagset(FLB_NATB) || isflagset(FLT_NATS))) {<br> unforce_rtp_proxy();<br> }<br> if (t_is_canceled()) {<br> exit;<br> }<br>
if (t_check_status("486|408"))<br> {<br> xlog("L_NOTICE", "r[FAIL] / &ru TimeOut or Busy\n");<br> if(avp_db_load("$ru","$avp(s:callbusy)"))<br>
{<br> xlog("L_NOTICE", "Callbusy activado!\n");<br> avp_pushto ("$ru","$avp(s:callbusy)");<br> xlog("L_NOTICE","$ru\n");<br>
append_branch();<br> route(BUSY);<br> }<br> }<br>}<br><br>route[BUSY]<br>{<br> route(NAT);<br> route(RELAY);<br>}<br><br><br>Este es el error que puedo ver<br>
<br> 3(14163) NOTICE: <script>: KAM-INFO: r[ALIAS] - Checking ALIAS -> 171<br> 3(14163) NOTICE: <script>: ALIAS FOUND: <a href="mailto:sip%3A171@xxx.net">sip:171@xxx.net</a>;user=phone -> <a href="mailto:xxxx.xxx@xxx.net">xxxx.xxx@xxx.net</a><br>
3(14163) INFO: <script>: RTPPROXY -> M=INVITE RURI=sip:xxxx.xxx@XX.XX.36.116:1548 F=<a href="mailto:sip%3Axxx@xxx.net">sip:xxx@xxx.net</a> T=<a href="mailto:sip%3A171@xxx.net">sip:171@xxx.net</a>;user=phone IP=XX.XX.32.48 ID=1291401699@XX_XX_32_48<br>
3(14163) ERROR: nathelper [nhelpr_funcs.c:341]: failed to parse Contact URI []<br> 4(14164) INFO: <script>: entering failure_route for reply code 302<br> 1(14161) INFO: <core> [forward.c:774]: broken reply to forward - no 2nd via<br>
2(14162) INFO: <core> [forward.c:774]: broken reply to forward - no 2nd via<br><br>Cualquier ayuda será bienvenida<br><br>Gracias de antemano<br><br>Saludos<br><br><br>Pepe<br><br>