From 98e7eb725f820bb383aa823cdfc694056078d37a Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Fri, 20 Sep 2024 16:20:02 -0600 Subject: [PATCH] Add ignore early media for external calls --- .../resources/scripts/app/ring_groups/index.lua | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/app/switch/resources/scripts/app/ring_groups/index.lua b/app/switch/resources/scripts/app/ring_groups/index.lua index c5d9696842..42324450a7 100644 --- a/app/switch/resources/scripts/app/ring_groups/index.lua +++ b/app/switch/resources/scripts/app/ring_groups/index.lua @@ -629,11 +629,15 @@ log = require "resources.functions.log".ring_group end); --freeswitch.consoleLog("NOTICE", "[ring_group] external "..external.."\n"); - --get the dialplan data and save it to a table + --run this if there are any external destinations if (external == "true") then - dialplans = route_to_bridge.preload_dialplan( - dbh, domain_uuid, {hostname = hostname, context = context} - ) + -- set ignore early media + session:execute("set", "ignore_early_media=true"); + + --get the dialplan data and save it to a table + --dialplans = route_to_bridge.preload_dialplan( + -- dbh, domain_uuid, {hostname = hostname, context = context} + --) end ---add follow me destinations