Add ability to import enabled attribute from the dialplan xml.
This commit is contained in:
parent
515603db3b
commit
d10634d4b3
|
|
@ -347,6 +347,12 @@
|
|||
$array['dialplans'][$x]['dialplan_details'][$y]['dialplan_detail_inline'] = null;
|
||||
}
|
||||
$array['dialplans'][$x]['dialplan_details'][$y]['dialplan_detail_group'] = $group;
|
||||
if (isset($row2['@attributes']['enabled'])) {
|
||||
$array['dialplans'][$x]['dialplan_details'][$y]['dialplan_detail_enabled'] = $row2['@attributes']['enabled'];
|
||||
}
|
||||
else {
|
||||
$array['dialplans'][$x]['dialplan_details'][$y]['dialplan_detail_enabled'] = 'true';
|
||||
}
|
||||
$y++;
|
||||
|
||||
//increase the order number
|
||||
|
|
@ -368,6 +374,12 @@
|
|||
$array['dialplans'][$x]['dialplan_details'][$y]['dialplan_detail_inline'] = null;
|
||||
}
|
||||
$array['dialplans'][$x]['dialplan_details'][$y]['dialplan_detail_group'] = $group;
|
||||
if (isset($row2['@attributes']['enabled'])) {
|
||||
$array['dialplans'][$x]['dialplan_details'][$y]['dialplan_detail_enabled'] = $row2['@attributes']['enabled'];
|
||||
}
|
||||
else {
|
||||
$array['dialplans'][$x]['dialplan_details'][$y]['dialplan_detail_enabled'] = 'true';
|
||||
}
|
||||
$y++;
|
||||
|
||||
//increase the order number
|
||||
|
|
|
|||
Loading…
Reference in New Issue