From aa58233f9d02468837bc04bf5b5218122b642289 Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Wed, 9 May 2018 13:50:35 -0600 Subject: [PATCH] Update destination_edit.php --- app/destinations/destination_edit.php | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/app/destinations/destination_edit.php b/app/destinations/destination_edit.php index 1b113019bb..be5e2ef04e 100644 --- a/app/destinations/destination_edit.php +++ b/app/destinations/destination_edit.php @@ -319,6 +319,28 @@ //increment the dialplan detail order $dialplan_detail_order = $dialplan_detail_order + 10; + //add hangup_after_bridge + $dialplan["dialplan_details"][$y]["domain_uuid"] = $domain_uuid; + $dialplan["dialplan_details"][$y]["dialplan_detail_tag"] = "action"; + $dialplan["dialplan_details"][$y]["dialplan_detail_type"] = "set"; + $dialplan["dialplan_details"][$y]["dialplan_detail_data"] = "hangup_after_bridge=true"; + $dialplan["dialplan_details"][$y]["dialplan_detail_order"] = $dialplan_detail_order; + $y++; + + //increment the dialplan detail order + $dialplan_detail_order = $dialplan_detail_order + 10; + + //add continue_on_fail + $dialplan["dialplan_details"][$y]["domain_uuid"] = $domain_uuid; + $dialplan["dialplan_details"][$y]["dialplan_detail_tag"] = "action"; + $dialplan["dialplan_details"][$y]["dialplan_detail_type"] = "set"; + $dialplan["dialplan_details"][$y]["dialplan_detail_data"] = "continue_on_fail=true"; + $dialplan["dialplan_details"][$y]["dialplan_detail_order"] = $dialplan_detail_order; + $y++; + + //increment the dialplan detail order + $dialplan_detail_order = $dialplan_detail_order + 10; + //set the caller id name prefix if (strlen($destination_cid_name_prefix) > 0) { $dialplan["dialplan_details"][$y]["domain_uuid"] = $domain_uuid;