From 0a6da97adc910e6b38e5c183b68de805a3d3a58e Mon Sep 17 00:00:00 2001 From: Mark Crane Date: Wed, 9 Jul 2014 05:56:01 +0000 Subject: [PATCH] Add inline to the anti-action xml dialplan files --- resources/switch.php | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/resources/switch.php b/resources/switch.php index d1f976448d..488cb6068b 100644 --- a/resources/switch.php +++ b/resources/switch.php @@ -2423,11 +2423,16 @@ function save_dialplan_xml() { } //anti-actions if ($ent['dialplan_detail_tag'] == "anti-action") { + //get the action inline attribute + $anti_action_inline = ''; + if (strlen($ent['dialplan_detail_inline']) > 0) { + $anti_action_inline = "inline=\"".$ent['dialplan_detail_inline']."\""; + } if (strlen($ent['dialplan_detail_data']) > 0) { - $tmp .= " \n"; + $tmp .= " \n"; } else { - $tmp .= " \n"; + $tmp .= " \n"; } } //set the previous dialplan_detail_tag