From f2d30402a668b16f9e70aa924932aeead17c044c Mon Sep 17 00:00:00 2001 From: lazedo Date: Wed, 28 Oct 2015 18:52:22 +0000 Subject: [PATCH] associate user --- kamailio/default.cfg | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/kamailio/default.cfg b/kamailio/default.cfg index ec18f8f..0739e3e 100644 --- a/kamailio/default.cfg +++ b/kamailio/default.cfg @@ -497,10 +497,9 @@ route[HANDLE_IN_DIALOG_REQUESTS] # If the request in an Invite for on hold from external to internal, # associate the contact with the media server # if Invite for on hold, we need to associate the contact URI with the next hop -## if (is_method("INVITE") && !isflagset(FLAG_INTERNALLY_SOURCED) && is_audio_on_hold()) { -## setflag(FLAG_ASSOCIATE_USER); -## } - + if (is_method("INVITE") && !isflagset(FLAG_INTERNALLY_SOURCED) && is_audio_on_hold()) { + setflag(FLAG_ASSOCIATE_USER); + } route(RELAY); } else if (isflagset(FLAG_INTERNALLY_SOURCED)) { xlog("L_INFO", "$ci|log|relay internally sourced in-dialog message without loose_route");