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");