|
|
|
@ -671,6 +671,23 @@ onreply_route[EXTERNAL_REPLY] |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
failure_route[EXTERNAL_FAULT] |
|
|
|
{ |
|
|
|
# this branch handles failures (>=300) to external |
|
|
|
|
|
|
|
route_if_exists("CUSTOM_EXTERNAL_FAULT"); |
|
|
|
|
|
|
|
# if the failure cause was due to the transaction being |
|
|
|
# cancelled then we are complete |
|
|
|
if (t_is_canceled()) { |
|
|
|
xlog("L_INFO", "$ci|log|transaction was cancelled\n"); |
|
|
|
exit; |
|
|
|
} |
|
|
|
|
|
|
|
xlog("L_INFO", "$ci|failure|external reply $T_reply_code $T_reply_reason\n"); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
onreply_route[INTERNAL_REPLY] |
|
|
|
{ |
|
|
|
# this route handles replies that are comming from our media server |
|
|
|
@ -790,25 +807,6 @@ failure_route[INTERNAL_FAULT] |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
failure_route[EXTERNAL_FAULT] |
|
|
|
{ |
|
|
|
# this branch handles failures (>=300) to external |
|
|
|
|
|
|
|
route_if_exists("CUSTOM_EXTERNAL_FAULT"); |
|
|
|
|
|
|
|
# if the failure cause was due to the transaction being |
|
|
|
# cancelled then we are complete |
|
|
|
if (t_is_canceled()) { |
|
|
|
xlog("L_INFO", "$ci|log|transaction was cancelled\n"); |
|
|
|
exit; |
|
|
|
} |
|
|
|
|
|
|
|
xlog("L_INFO", "$ci|failure|external reply $T_reply_code $T_reply_reason\n"); |
|
|
|
send_reply("$T_reply_code", "$T_reply_reason"); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
route[INTERNAL_REDIRECT] |
|
|
|
{ |
|
|
|
$var(ds_group) = 1; |
|
|
|
|