diff --git a/kamailio/default.cfg b/kamailio/default.cfg index b05cf65..d9fb9e6 100644 --- a/kamailio/default.cfg +++ b/kamailio/default.cfg @@ -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; } }