Browse Source

add extension point for internal to external relay

master
lazedo 6 years ago
parent
commit
96637b9d42
1 changed files with 4 additions and 2 deletions
  1. +4
    -2
      kamailio/default.cfg

+ 4
- 2
kamailio/default.cfg View File

@ -581,6 +581,8 @@ route[INTERNAL_TO_EXTERNAL_RELAY]
}
#!endif
route_if_exists("CUSTOM_INTERNAL_TO_EXTERNAL_RELAY");
t_on_reply("EXTERNAL_REPLY");
t_on_failure("EXTERNAL_FAULT");
@ -814,7 +816,7 @@ route[ROUTE_TO_AOR]
} else {
xlog("L_INFO", "$ci|end|lookup for AOR $hdr(X-KAZOO-AOR) failed\n");
append_to_reply("$def(AOR_NOT_SUBSCRIBED_REASON)\r\n");
sl_send_reply("480", "Not registered");
send_reply("480", "Not registered");
exit;
}
} else if (reg_fetch_contacts("location", "$hdr(X-KAZOO-AOR)", "callee")) {
@ -826,7 +828,7 @@ route[ROUTE_TO_AOR]
} else {
xlog("L_INFO", "$ci|end|user is not registered\n");
append_to_reply("$def(AOR_NOT_SUBSCRIBED_REASON)\r\n");
sl_send_reply("410", "Not registered");
send_reply("410", "Not registered");
exit;
}
}


Loading…
Cancel
Save