Browse Source

move EXTERNAL_FAULT near EXTERNAL_REPLY

master
lazedo 6 years ago
parent
commit
477c9f4d3c
1 changed files with 17 additions and 19 deletions
  1. +17
    -19
      kamailio/default.cfg

+ 17
- 19
kamailio/default.cfg View File

@ -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] onreply_route[INTERNAL_REPLY]
{ {
# this route handles replies that are comming from our media server # 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] route[INTERNAL_REDIRECT]
{ {
$var(ds_group) = 1; $var(ds_group) = 1;


Loading…
Cancel
Save