mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-06 11:43:50 +00:00
Additional changes to allow hangup action which has no data.
This commit is contained in:
@@ -497,7 +497,7 @@
|
|||||||
//add the actions to the dialplan_xml
|
//add the actions to the dialplan_xml
|
||||||
foreach($destination_actions as $action) {
|
foreach($destination_actions as $action) {
|
||||||
$action_array = explode(":", $action, 2);
|
$action_array = explode(":", $action, 2);
|
||||||
if (isset($action_array[1]) && $action_array[1] != '') {
|
if (isset($action_array[0]) && $action_array[0] != '') {
|
||||||
if ($destination->valid($action_array[0].':'.$action_array[1])) {
|
if ($destination->valid($action_array[0].':'.$action_array[1])) {
|
||||||
$dialplan["dialplan_xml"] .= " <action application=\"".$action_array[0]."\" data=\"".$action_array[1]."\"/>\n";
|
$dialplan["dialplan_xml"] .= " <action application=\"".$action_array[0]."\" data=\"".$action_array[1]."\"/>\n";
|
||||||
}
|
}
|
||||||
@@ -791,7 +791,7 @@
|
|||||||
$action_array = explode(":", $field, 2);
|
$action_array = explode(":", $field, 2);
|
||||||
$action_app = $action_array[0];
|
$action_app = $action_array[0];
|
||||||
$action_data = $action_array[1];
|
$action_data = $action_array[1];
|
||||||
if (isset($action_array[1]) && $action_array[1] != '') {
|
if (isset($action_array[0]) && $action_array[0] != '') {
|
||||||
if ($destination->valid($action_app.':'.$action_data)) {
|
if ($destination->valid($action_app.':'.$action_data)) {
|
||||||
//add to the dialplan_details array
|
//add to the dialplan_details array
|
||||||
$dialplan["dialplan_details"][$y]["domain_uuid"] = $domain_uuid;
|
$dialplan["dialplan_details"][$y]["domain_uuid"] = $domain_uuid;
|
||||||
@@ -889,7 +889,7 @@
|
|||||||
$action_array = explode(":", $action, 2);
|
$action_array = explode(":", $action, 2);
|
||||||
$action_app = $action_array[0];
|
$action_app = $action_array[0];
|
||||||
$action_data = $action_array[1];
|
$action_data = $action_array[1];
|
||||||
if (isset($action_array[1]) && $action_array[1] != '') {
|
if (isset($action_array[0]) && $action_array[0] != '') {
|
||||||
if ($destination->valid($action_app.':'.$action_data)) {
|
if ($destination->valid($action_app.':'.$action_data)) {
|
||||||
$actions[$y]['destination_app'] = $action_app;
|
$actions[$y]['destination_app'] = $action_app;
|
||||||
$actions[$y]['destination_data'] = $action_data;
|
$actions[$y]['destination_data'] = $action_data;
|
||||||
|
|||||||
Reference in New Issue
Block a user