[OpenSIPS-Users] HELP: Opensips 1.6 - IP prioritisation

Nick Cameo symack at gmail.com
Tue Mar 18 13:20:37 CET 2014


My name is not Bogdan, and there are others on here that are just as
helpful when
he is swamped with work, as you would imagine a project leader to be
at times. Could
kindly post the snippets related to r_relay in your default route, and
also the related
snippet in your failure route. It should looks something like this:

route[1] {
        if (is_method("INVITE")) {
                xlog("L_INFO","Start Call Route: From=$fu, To=$tu,
RU=$ru, CI=$ci at IP=$si\n");
                t_on_reply("1");
                t_on_branch("1");
                t_on_failure("1");


        }
        else if (is_method("BYE|CANCEL")) {
                xlog("L_INFO","Unforing RTP Proxy From: $fu To: $tu IP: $si\n");
                unforce_rtp_proxy();
        }

        if (!t_relay()) {
                sl_reply_error();
        }

        exit;
}


failure_route[1] {
        if (t_was_cancelled()) {
                exit;
        }

                if (use_next_gw()) {
                        xlog("L_INFO","Next Gateway: From=$fu, To=$tu,
RU=$ru, CI=$ci IP=$si\n");
                        t_on_failure("1");
                        route(1);
                        exit;
                }
                else {
                        t_reply("503", "Service not available, no more gws");
                        exit;
                }




Nick from Toronto.



More information about the Users mailing list