Only set variables with values not variables.

This commit is contained in:
Mark Crane
2014-02-25 09:37:59 +00:00
parent dc46d7fa8d
commit ad94001af4

View File

@@ -448,7 +448,10 @@ include "root.php";
if ($regex_match) { if ($regex_match) {
//get the variables //get the variables
if ($field[dialplan_detail_type] == "set" && $field[dialplan_detail_tag] == "action") { if ($field[dialplan_detail_type] == "set" && $field[dialplan_detail_tag] == "action") {
$this->variables .= $field[dialplan_detail_data].","; //only set variables with values not variables
if (strpos($field[dialplan_detail_data], '$') === false) {
$this->variables .= $field[dialplan_detail_data].",";
}
} }
//process the $x detail data variables //process the $x detail data variables
if ($field['dialplan_detail_tag'] == "action" && $field['dialplan_detail_type'] == "bridge" && $dialplan_detail_data != "\${enum_auto_route}") { if ($field['dialplan_detail_tag'] == "action" && $field['dialplan_detail_type'] == "bridge" && $dialplan_detail_data != "\${enum_auto_route}") {