From a718d0349e3a5676c011a5860065d96cc1bf01cb Mon Sep 17 00:00:00 2001 From: lazedo Date: Tue, 21 Jul 2020 18:14:34 +0000 Subject: [PATCH] handle_ruri_alias for internal in-dialog * a in-dialog from internal where loose_route() fails can still be routed if we have the alias for the contact --- kamailio/default.cfg | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/kamailio/default.cfg b/kamailio/default.cfg index e3643b4..05c0769 100644 --- a/kamailio/default.cfg +++ b/kamailio/default.cfg @@ -466,6 +466,11 @@ route[HANDLE_IN_DIALOG_REQUESTS] route(RELAY); } else if (isflagset(FLAG_INTERNALLY_SOURCED)) { xlog("L_INFO", "$ci|log|relay internally sourced in-dialog message without loose_route\n"); + #!ifdef NAT_TRAVERSAL_ROLE + if(!isdsturiset()) { + handle_ruri_alias(); + } + #!endif route(RELAY); } else if (t_check_trans()) { xlog("L_INFO", "$ci|log|allow message for a known transaction\n");