Update app_defaults.php

This commit is contained in:
FusionPBX 2019-03-14 23:53:15 -06:00 committed by GitHub
parent 9cebeb75b7
commit 4924676825
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 12 additions and 0 deletions

View File

@ -98,6 +98,18 @@
$sql = "update v_device_lines set outbound_proxy_secondary = null where outbound_proxy_secondary = '';\n";
$db->query($sql);
unset($sql);
//change recording_slots to recording_id
$sql = "update v_dialplan_details set dialplan_detail_data = 'recording_id=true' ";
$sql .= "where dialplan_uuid in (select dialplan_uuid from v_dialplans where app_uuid = '430737df-5385-42d1-b933-22600d3fb79e') ";
$sql .= "and dialplan_detail_data = 'recording_slots=true'; \n";
$db->query($sql);
unset($sql);
$sql = "update v_dialplan_details set dialplan_detail_data = 'recording_id=false' ";
$sql .= "where dialplan_uuid in (select dialplan_uuid from v_dialplans where app_uuid = '430737df-5385-42d1-b933-22600d3fb79e') ";
$sql .= "and dialplan_detail_data = 'recording_slots=false'; \n";
$db->query($sql);
unset($sql);
}
//add xml for each dialplan where the dialplan xml is empty