From ebe536c66dce42c21ba8dd769fa9354c0d07095c Mon Sep 17 00:00:00 2001 From: markjcrane Date: Fri, 7 Aug 2015 15:24:24 -0500 Subject: [PATCH] Change call_center_contact to user_contact. --- app/call_centers/call_center_agent_edit.php | 2 +- app/extensions/app_config.php | 2 +- app/gateways/app_config.php | 11 ++++------- 3 files changed, 6 insertions(+), 9 deletions(-) diff --git a/app/call_centers/call_center_agent_edit.php b/app/call_centers/call_center_agent_edit.php index d36c3807ba..5ff7915723 100644 --- a/app/call_centers/call_center_agent_edit.php +++ b/app/call_centers/call_center_agent_edit.php @@ -478,7 +478,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) { echo " ".$text['label-contact']."\n"; echo "\n"; echo "\n"; - echo $destination->select('call_center_contact', 'agent_contact', $agent_contact); + echo $destination->select('user_contact', 'agent_contact', $agent_contact); echo "
\n"; echo $text['description-contact']."\n"; echo "\n"; diff --git a/app/extensions/app_config.php b/app/extensions/app_config.php index 15553d64d3..8a703c9c5c 100644 --- a/app/extensions/app_config.php +++ b/app/extensions/app_config.php @@ -30,7 +30,7 @@ $apps[$x]['destinations'][$y]['field']['context'] = "user_context"; $apps[$x]['destinations'][$y]['field']['destination'] = "extension"; $apps[$x]['destinations'][$y]['field']['description'] = "description"; - $apps[$x]['destinations'][$y]['select_value']['call_center_contact'] = "user/\${destination}@\${domain_name}"; + $apps[$x]['destinations'][$y]['select_value']['user_contact'] = "user/\${destination}@\${domain_name}"; $apps[$x]['destinations'][$y]['select_value']['dialplan'] = "transfer:\${destination} XML \${context}"; $apps[$x]['destinations'][$y]['select_value']['ivr'] = "menu-exec-app:transfer \${destination} XML \${context}"; $apps[$x]['destinations'][$y]['select_label'] = "\${destination} \${description}"; diff --git a/app/gateways/app_config.php b/app/gateways/app_config.php index f193de9caa..22ac0ea4a6 100644 --- a/app/gateways/app_config.php +++ b/app/gateways/app_config.php @@ -21,7 +21,6 @@ $apps[$x]['description']['pt-br'] = ""; //destination details - /* $y = 0; $apps[$x]['destinations'][$y]['type'] = "sql"; $apps[$x]['destinations'][$y]['label'] = "gateways"; @@ -30,16 +29,14 @@ $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]['order_by'] = "gateway asc"; - $apps[$x]['destinations'][$y]['field']['uuid'] = "gateway_uuid"; $apps[$x]['destinations'][$y]['field']['name'] = "gateway"; $apps[$x]['destinations'][$y]['field']['destination'] = "gateway_uuid"; $apps[$x]['destinations'][$y]['field']['description'] = "description"; - $apps[$x]['destinations'][$y]['select_value']['call_center_contact'] = "sofia/gateway/\${destination}/"; - $apps[$x]['destinations'][$y]['select_value']['bridge'] = "sofia/gateway/\${destination}/"; - $apps[$x]['destinations'][$y]['select_value']['dialplan'] = "bridge:sofia/gateway/\${destination}/"; - $apps[$x]['destinations'][$y]['select_value']['ivr'] = "menu-exec-app:bridge sofia/gateway/\${destination}/"; + $apps[$x]['destinations'][$y]['select_value']['user_contact'] = "sofia/gateway/\${destination}/"; + //$apps[$x]['destinations'][$y]['select_value']['bridge'] = "sofia/gateway/\${destination}/"; + //$apps[$x]['destinations'][$y]['select_value']['dialplan'] = "bridge:sofia/gateway/\${destination}/"; + //$apps[$x]['destinations'][$y]['select_value']['ivr'] = "menu-exec-app:bridge sofia/gateway/\${destination}/"; $apps[$x]['destinations'][$y]['select_label'] = "\${name}@\${domain_name} \${description}"; - */ //permission details $y = 0;