I have an instance of Kamailio configured as an outbound proxy and I want to
be able to hide the fact the a 3XX redirection result may have been
encountered while attempting to route the call.  I am using the fragment
below and it does appear to work, but I am wondering if there is a better
way.

 

failure_route[MANAGE_FAILURE] {

    if (t_is_canceled()) {

        exit;

    }

    if (t_check_status("3[0-9][0-9]")) {

        append_branch($(T_rpl($ct){nameaddr.uri}));

        route(RELAY);

        exit;

    }

}

 

Thanks.

_______________________________________________
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

Reply via email to