Yes Juha

Im using SIPOUT that is using RELAY route.. after LCR_OUT route i posted.. with next_gw()

Its when the 503 failure is detected when i have the issue mentioned.

As its not easy to catch, i have put some xlogs to see if i get where is the 407 inbound routed..

Provider 1 -> not using auth

Provider 2 -> Requesting auth

Thanks

2016-05-30 20:17 GMT+02:00 Juha Heinanen <jh@tutpro.com>:
Alberto Sagredo writes:

> Actually im using
...
>   if(!next_gw()) {
>
>     xlog("No hay GW de Backup");
>
>     sl_send_reply("503", "Service not available - No gateway");
>
>     exit;
>
>   } else {
>
>         xlog("Enviado por primer GW\n");
>
>         xlog("ruri_user_avp: '$avp(i:500)'\n");
>
>         xlog("To URI after next_gw: $tu\n");
>
>         xlog("Request URI: $rU\n");
>
>
>         t_on_failure("FAILBACK");
>
>   }

you should call t_relay() if next_gw() succeeds.

-- juha

_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users