当前位置: 首页>>代码示例>>PHP>>正文


PHP save_call_center_xml函数代码示例

本文整理汇总了PHP中save_call_center_xml函数的典型用法代码示例。如果您正苦于以下问题:PHP save_call_center_xml函数的具体用法?PHP save_call_center_xml怎么用?PHP save_call_center_xml使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了save_call_center_xml函数的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: unset

 if (!permission_exists('user_domain')) {
     $sql .= "domain_uuid = '" . $domain_uuid . "' and ";
 }
 $sql .= "user_uuid = '" . $user_uuid . "' ";
 $db->exec(check_sql($sql));
 // if call center installed
 if (file_exists($_SERVER["PROJECT_ROOT"] . "/app/call_center/app_config.php")) {
     // update agent and tiers tables
     $sql = "update v_call_center_agents set agent_name = '" . $username . "' where domain_uuid = '" . $domain_uuid . "' and agent_name = '" . $username_old . "' ";
     $db->exec(check_sql($sql));
     unset($sql);
     $sql = "update v_call_center_tiers set agent_name = '" . $username . "' where domain_uuid = '" . $domain_uuid . "' and agent_name = '" . $username_old . "' ";
     $db->exec(check_sql($sql));
     unset($sql);
     //syncrhonize the configuration
     save_call_center_xml();
     //update the user_status
     $fp = event_socket_create($_SESSION['event_socket_ip_address'], $_SESSION['event_socket_port'], $_SESSION['event_socket_password']);
     $switch_cmd .= "callcenter_config agent set status " . $username . "@" . $_SESSION['domains'][$domain_uuid]['domain_name'] . " '" . $user_status . "'";
     $switch_result = event_socket_request($fp, 'api ' . $switch_cmd);
     //update the user state
     $cmd = "api callcenter_config agent set state " . $username . "@" . $_SESSION['domains'][$domain_uuid]['domain_name'] . " Waiting";
     $response = event_socket_request($fp, $cmd);
 }
 //redirect the browser
 $_SESSION["message"] = $text['message-update'];
 if ($_REQUEST['action'] == $text['button-add']) {
     header("Location: usersupdate.php?id=" . $user_uuid);
 } else {
     header("Location: index.php");
 }
开发者ID:powerpbx,项目名称:fusionpbx,代码行数:31,代码来源:usersupdate.php

示例2: save_switch_xml

 function save_switch_xml()
 {
     if (is_readable($_SESSION['switch']['dialplan']['dir'])) {
         save_dialplan_xml();
     }
     if (is_readable($_SESSION['switch']['extensions']['dir'])) {
         if (file_exists($_SERVER["DOCUMENT_ROOT"] . PROJECT_PATH . "/app/extensions/resources/classes/extension.php")) {
             require_once $_SERVER["DOCUMENT_ROOT"] . PROJECT_PATH . "app/extensions/resources/classes/extension.php";
             $extension = new extension();
             $extension->xml();
         }
     }
     if (is_readable($_SESSION['switch']['conf']['dir'])) {
         if (file_exists($_SERVER['DOCUMENT_ROOT'] . PROJECT_PATH . "/app/settings/app_config.php")) {
             save_setting_xml();
         }
         if (file_exists($_SERVER['DOCUMENT_ROOT'] . PROJECT_PATH . "/app/modules/app_config.php")) {
             save_module_xml();
         }
         if (file_exists($_SERVER['DOCUMENT_ROOT'] . PROJECT_PATH . "/app/vars/app_config.php")) {
             save_var_xml();
         }
         if (file_exists($_SERVER['DOCUMENT_ROOT'] . PROJECT_PATH . "/app/call_center/app_config.php")) {
             save_call_center_xml();
         }
         if (file_exists($_SERVER['DOCUMENT_ROOT'] . PROJECT_PATH . "/app/gateways/app_config.php")) {
             save_gateway_xml();
         }
         //if (file_exists($_SERVER['DOCUMENT_ROOT'].PROJECT_PATH."/app/ivr_menu/app_config.php")) {
         //	save_ivr_menu_xml();
         //}
         if (file_exists($_SERVER['DOCUMENT_ROOT'] . PROJECT_PATH . "/app/sip_profiles/app_config.php")) {
             save_sip_profile_xml();
         }
     }
 }
开发者ID:nmreis,项目名称:fusionpbx,代码行数:36,代码来源:switch.php


注:本文中的save_call_center_xml函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。