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(a)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(a)lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
--
Alex Balashov - Principal
Evariste Systems LLC
235 E Ponce de Leon Ave
Suite 106
Decatur, GA 30030
United States
Tel: +1-678-954-0670
Web:
http://www.evaristesys.com/,
http://www.alexbalashov.com/