What would constitute "better", in your eyes? This is the appropriate way to catch a negative final reply from upstream and create another branch, opaquely to the caller.
On 02/26/2015 08:39 PM, ron.kamailio@mcleodnet.com wrote:
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