From 3263cd2e9339f928f3b9ec2e7b262315da3f86dc Mon Sep 17 00:00:00 2001 From: StratoSwitch <44079107+StratoSwitch@users.noreply.github.com> Date: Thu, 4 Apr 2019 11:20:34 -0500 Subject: [PATCH] Update call_center.php (#4046) Add pause before greeting if greeting assigned --- app/call_centers/resources/classes/call_center.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/app/call_centers/resources/classes/call_center.php b/app/call_centers/resources/classes/call_center.php index d067dbcdaf..fab7260315 100644 --- a/app/call_centers/resources/classes/call_center.php +++ b/app/call_centers/resources/classes/call_center.php @@ -145,6 +145,17 @@ $y++; } + + if (strlen($this->queue_greeting) > 0) { + $dialplan["dialplan_details"][$y]["domain_uuid"] = $this->domain_uuid; + $dialplan["dialplan_details"][$y]["dialplan_detail_tag"] = "action"; + $dialplan["dialplan_details"][$y]["dialplan_detail_type"] = "pause"; + $dialplan["dialplan_details"][$y]["dialplan_detail_data"] = "1000"; + $dialplan["dialplan_details"][$y]["dialplan_detail_group"] = "2"; + $dialplan["dialplan_details"][$y]["dialplan_detail_order"] = $y * 10; + $y++; + } + if (strlen($this->queue_greeting) > 0) { $dialplan["dialplan_details"][$y]["domain_uuid"] = $this->domain_uuid; $dialplan["dialplan_details"][$y]["dialplan_detail_tag"] = "action";