Escape the $ in the domain_uuid variable.

This commit is contained in:
markjcrane 2015-08-05 18:17:39 -05:00
parent 51169dd358
commit 15ca076e09
13 changed files with 13 additions and 13 deletions

View File

@ -25,7 +25,7 @@
$apps[$x]['destinations'][$y]['label'] = "call_centers";
$apps[$x]['destinations'][$y]['name'] = "call_centers";
$apps[$x]['destinations'][$y]['sql'] = "select queue_extension as destination, queue_description as description from v_call_center_queues";
$apps[$x]['destinations'][$y]['where'] = "where domain_uuid = '${domain_uuid}' ";
$apps[$x]['destinations'][$y]['where'] = "where domain_uuid = '\${domain_uuid}' ";
$apps[$x]['destinations'][$y]['order_by'] = "queue_name asc";
$apps[$x]['destinations'][$y]['field']['name'] = "queue_name";
$apps[$x]['destinations'][$y]['field']['destination'] = "queue_extension";

View File

@ -24,7 +24,7 @@
$apps[$x]['destinations'][$y]['type'] = "sql";
$apps[$x]['destinations'][$y]['label'] = "call_flows";
$apps[$x]['destinations'][$y]['name'] = "call_flows";
$apps[$x]['destinations'][$y]['where'] = "where domain_uuid = '${domain_uuid}' ";
$apps[$x]['destinations'][$y]['where'] = "where domain_uuid = '\${domain_uuid}' ";
$apps[$x]['destinations'][$y]['order_by'] = "call_flow_name asc";
$apps[$x]['destinations'][$y]['field']['context'] = "call_flow_context";
$apps[$x]['destinations'][$y]['field']['name'] = "call_flow_name";

View File

@ -24,7 +24,7 @@
$apps[$x]['destinations'][$y]['type'] = "sql";
$apps[$x]['destinations'][$y]['label'] = "conferences";
$apps[$x]['destinations'][$y]['name'] = "conferences";
$apps[$x]['destinations'][$y]['where'] = "where domain_uuid = '${domain_uuid}' and conference_enabled = 'true' ";
$apps[$x]['destinations'][$y]['where'] = "where domain_uuid = '\${domain_uuid}' and conference_enabled = 'true' ";
$apps[$x]['destinations'][$y]['order_by'] = "conference_name asc";
$apps[$x]['destinations'][$y]['field']['name'] = "conference_name";
$apps[$x]['destinations'][$y]['field']['destination'] = "conference_extension";

View File

@ -26,7 +26,7 @@
$apps[$x]['destinations'][$y]['label'] = "destinations";
$apps[$x]['destinations'][$y]['name'] = "destinations";
$apps[$x]['destinations'][$y]['sql'] = "select destination_number as destination, destination_description as description from v_destinations ";
$apps[$x]['destinations'][$y]['where'] = "where domain_uuid = '${domain_uuid}' and destination_type = 'outbound' destination_enabled = 'true' ";
$apps[$x]['destinations'][$y]['where'] = "where domain_uuid = '\${domain_uuid}' and destination_type = 'outbound' destination_enabled = 'true' ";
$apps[$x]['destinations'][$y]['order_by'] = "destination_number asc";
$apps[$x]['destinations'][$y]['field']['uuid'] = "destination_uuid";
$apps[$x]['destinations'][$y]['field']['context'] = "destination_context";

View File

@ -25,7 +25,7 @@
$apps[$x]['destinations'][$y]['type'] = "sql";
$apps[$x]['destinations'][$y]['label'] = "extensions";
$apps[$x]['destinations'][$y]['name'] = "extensions";
$apps[$x]['destinations'][$y]['where'] = "where domain_uuid = '${domain_uuid}' and enabled = 'true' ";
$apps[$x]['destinations'][$y]['where'] = "where domain_uuid = '\${domain_uuid}' and enabled = 'true' ";
$apps[$x]['destinations'][$y]['order_by'] = "extension asc";
$apps[$x]['destinations'][$y]['field']['context'] = "user_context";
$apps[$x]['destinations'][$y]['field']['destination'] = "extension";

View File

@ -25,7 +25,7 @@
$apps[$x]['destinations'][$y]['type'] = "sql";
$apps[$x]['destinations'][$y]['label'] = "fax";
$apps[$x]['destinations'][$y]['name'] = "fax";
$apps[$x]['destinations'][$y]['where'] = "where domain_uuid = '${domain_uuid}' ";
$apps[$x]['destinations'][$y]['where'] = "where domain_uuid = '\${domain_uuid}' ";
$apps[$x]['destinations'][$y]['order_by'] = "fax_extension asc";
$apps[$x]['destinations'][$y]['field']['name'] = "fax_name";
$apps[$x]['destinations'][$y]['field']['destination'] = "fax_extension";

View File

@ -27,7 +27,7 @@
$apps[$x]['destinations'][$y]['name'] = "gateways";
$apps[$x]['destinations'][$y]['sql'] = "select g.gateway_uuid as uuid, g.gateway as name, d.domain_name from v_gateways as g ";
$apps[$x]['destinations'][$y]['sql'] .= "inner join v_domains as d on g.domain_uuid = d.domain_uuid ";
$apps[$x]['destinations'][$y]['where'] = "where g.domain_uuid = '${domain_uuid}' and g.enabled = 'true' ";
$apps[$x]['destinations'][$y]['where'] = "where g.domain_uuid = '\${domain_uuid}' and g.enabled = 'true' ";
$apps[$x]['destinations'][$y]['order_by'] = "gateway asc";
$apps[$x]['destinations'][$y]['field']['uuid'] = "gateway_uuid";
$apps[$x]['destinations'][$y]['field']['name'] = "gateway";

View File

@ -25,7 +25,7 @@
$apps[$x]['destinations'][$y]['type'] = "sql";
$apps[$x]['destinations'][$y]['label'] = "ivr_menus";
$apps[$x]['destinations'][$y]['name'] = "ivr_menus";
$apps[$x]['destinations'][$y]['where'] = "where domain_uuid = '${domain_uuid}' and ivr_menu_enabled = 'true' ";
$apps[$x]['destinations'][$y]['where'] = "where domain_uuid = '\${domain_uuid}' and ivr_menu_enabled = 'true' ";
$apps[$x]['destinations'][$y]['order_by'] = "ivr_menu_extension asc";
$apps[$x]['destinations'][$y]['field']['name'] = "ivr_menu_name";
$apps[$x]['destinations'][$y]['field']['destination'] = "ivr_menu_extension";

View File

@ -26,7 +26,7 @@
$apps[$x]['destinations'][$y]['type'] = "sql";
$apps[$x]['destinations'][$y]['label'] = "phrases";
$apps[$x]['destinations'][$y]['name'] = "phrases";
$apps[$x]['destinations'][$y]['where'] = "where domain_uuid = '${domain_uuid}' and phrase_enabled = 'true' ";
$apps[$x]['destinations'][$y]['where'] = "where domain_uuid = '\${domain_uuid}' and phrase_enabled = 'true' ";
$apps[$x]['destinations'][$y]['order_by'] = "phrase_name asc";
$apps[$x]['destinations'][$y]['field']['name'] = "phrase_name";
$apps[$x]['destinations'][$y]['field']['destination'] = "phrase_name";

View File

@ -26,7 +26,7 @@
$apps[$x]['destinations'][$y]['label'] = "recordings";
$apps[$x]['destinations'][$y]['name'] = "recordings";
$apps[$x]['destinations'][$y]['sql'] = "select recording_uuid as uuid, recording_name as name, recording_filename as destination, recording_description as description from v_recordings";
$apps[$x]['destinations'][$y]['where'] = "where domain_uuid = '${domain_uuid}' ";
$apps[$x]['destinations'][$y]['where'] = "where domain_uuid = '\${domain_uuid}' ";
$apps[$x]['destinations'][$y]['order_by'] = "recording_name asc";
$apps[$x]['destinations'][$y]['field']['uuid'] = "recording_uuid";
$apps[$x]['destinations'][$y]['field']['name'] = "recording_name";

View File

@ -25,7 +25,7 @@
$apps[$x]['destinations'][$y]['type'] = "sql";
$apps[$x]['destinations'][$y]['label'] = "ring_groups";
$apps[$x]['destinations'][$y]['name'] = "ring_groups";
$apps[$x]['destinations'][$y]['where'] = "where domain_uuid = '${domain_uuid}' and ring_group_enabled = 'true' ";
$apps[$x]['destinations'][$y]['where'] = "where domain_uuid = '\${domain_uuid}' and ring_group_enabled = 'true' ";
$apps[$x]['destinations'][$y]['order_by'] = "ring_group_extension asc";
$apps[$x]['destinations'][$y]['field']['name'] = "ring_group_name";
$apps[$x]['destinations'][$y]['field']['destination'] = "ring_group_extension";

View File

@ -26,7 +26,7 @@
$apps[$x]['destinations'][$y]['label'] = "time_conditions";
$apps[$x]['destinations'][$y]['name'] = "time_conditions";
$apps[$x]['destinations'][$y]['sql'] = "select dialplan_name as name, dialplan_number as destination, dialplan_description as description from v_dialplans ";
$apps[$x]['destinations'][$y]['where'] = "where domain_uuid = '${domain_uuid}' and app_uuid = '4b821450-926b-175a-af93-a03c441818b1' and dialplan_enabled = 'true' ";
$apps[$x]['destinations'][$y]['where'] = "where domain_uuid = '\${domain_uuid}' and app_uuid = '4b821450-926b-175a-af93-a03c441818b1' and dialplan_enabled = 'true' ";
$apps[$x]['destinations'][$y]['order_by'] = "dialplan_number asc";
$apps[$x]['destinations'][$y]['field']['context'] = "dialplan_context";
$apps[$x]['destinations'][$y]['field']['name'] = "dialplan_name";

View File

@ -16,7 +16,7 @@
$apps[$x]['destinations'][$y]['type'] = "sql";
$apps[$x]['destinations'][$y]['label'] = "voicemails";
$apps[$x]['destinations'][$y]['name'] = "voicemails";
$apps[$x]['destinations'][$y]['where'] = "where domain_uuid = '${domain_uuid}' and voicemail_enabled = 'true' ";
$apps[$x]['destinations'][$y]['where'] = "where domain_uuid = '\${domain_uuid}' and voicemail_enabled = 'true' ";
$apps[$x]['destinations'][$y]['order_by'] = "voicemail_id asc ";
$apps[$x]['destinations'][$y]['field']['destination'] = "voicemail_id";
$apps[$x]['destinations'][$y]['field']['description'] = "voicemail_description";