コード例 #1
0
         $sql .= "caller_id_in_from = '{$caller_id_in_from}', ";
         $sql .= "supress_cng = '{$supress_cng}', ";
         $sql .= "extension_in_contact = '{$extension_in_contact}', ";
         $sql .= "effective_caller_id_name = '{$effective_caller_id_name}', ";
         $sql .= "effective_caller_id_number = '{$effective_caller_id_number}', ";
         $sql .= "outbound_caller_id_name = '{$outbound_caller_id_name}', ";
         $sql .= "outbound_caller_id_number = '{$outbound_caller_id_number}', ";
         $sql .= "context = '{$context}', ";
         $sql .= "enabled = '{$enabled}', ";
         $sql .= "description = '{$description}' ";
         $sql .= "where v_id = '{$v_id}' ";
         $sql .= "and gateway_id = '{$gateway_id}'";
         $db->exec(check_sql($sql));
         unset($sql);
         //syncrhonize configuration
         sync_package_v_gateways();
         //synchronize the xml config
         sync_package_v_dialplan_includes();
     }
     //if ($action == "update")
 }
 //if ($_POST["persistformvar"] != "true") {
 if (strlen(trim($_POST['dialplan_expression'])) > 0) {
     if ($action == "update") {
         $gateway_id = $_POST['gateway_id'];
     }
     $sql = "";
     $sql .= "select * from v_settings ";
     $sql .= "where v_id = '{$v_id}' ";
     $prepstatement = $db->prepare(check_sql($sql));
     $prepstatement->execute();
コード例 #2
0
ファイル: lib_switch.php プロジェクト: petekelly/fusionpbx
function sync_package_freeswitch()
{
    global $config;
    sync_package_v_settings();
    sync_package_v_dialplan();
    sync_package_v_dialplan_includes();
    sync_package_v_extensions();
    sync_package_v_gateways();
    sync_package_v_modules();
    sync_package_v_public();
    sync_package_v_public_includes();
    sync_package_v_vars();
    sync_package_v_internal();
    sync_package_v_external();
    //sync_package_v_recordings();
    if (pkg_is_service_running('freeswitch')) {
        sync_package_v_auto_attendant();
    }
    sync_package_v_hunt_group();
}