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


PHP Aastra_trace_call函数代码示例

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


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

示例1: Aastra_getvar_safe

$confno = Aastra_getvar_safe('confno');
$action = Aastra_getvar_safe('action', 'select');
$page = Aastra_getvar_safe('page', '1');
$user_id = Aastra_getvar_safe('user_id');
$ext = Aastra_getvar_safe('ext');
$number = Aastra_getvar_safe('number', '');
$selection = Aastra_getvar_safe('selection');
if ($confno == '' and $selection != '') {
    $confno = $selection;
}
$pin = Aastra_getvar_safe('pin');
$mode = Aastra_getvar_safe('mode');
# Local variables
$refresh = 1;
# Trace
Aastra_trace_call('meetme_asterisk', 'confno=' . $confno . ', action=' . $action . ', user_id=' . $user_id . ',selection=' . $selection . ',ext=' . $ext . ', mode=' . $mode . ', number=' . $number);
# Retrieve phone information
$header = Aastra_decode_HTTP_header();
# Test User Agent
Aastra_test_phone_versions(array('1' => '', '2' => '1.4.2.', '3' => '', '4' => '2.5.3.', '5' => '3.0.1.'), '0');
# Get Language
$language = Aastra_get_language();
# Keep callback URI
$XML_SERVER .= '?ext=' . $ext;
# Authenticate user
Aastra_check_signature_Asterisk($ext);
# Compatibility
$nb_softkeys = Aastra_number_softkeys_supported();
$is_icons = Aastra_is_icons_supported();
# Pre-process action
switch ($action) {
开发者ID:jamesrusso,项目名称:Aastra_Scripts,代码行数:31,代码来源:meetme.php

示例2: Aastra_getvar_safe

# Retrieve parameters
$user = Aastra_getvar_safe('user');
$action = Aastra_getvar_safe('action', 'init');
$input = Aastra_getvar_safe('input');
$choice = Aastra_getvar_safe('choice');
$page = Aastra_getvar_safe('page', '0');
$selection = Aastra_getvar_safe('selection');
# Get user if not provided
$header = Aastra_decode_HTTP_header();
if ($user == '') {
    $user = $header['mac'];
}
# Update URI
$XML_SERVER .= '?user=' . $user;
# Trace
Aastra_trace_call('currency', 'user=' . $user . ', action=' . $action . ', selection=' . $selection . ', input=' . $input);
# Test User Agent
Aastra_test_phone_versions(array('1' => '', '2' => '', '3' => '', '4' => '2.5.3.', '5' => '3.0.1.'), '0');
# Get Language
$language = Aastra_get_language();
# Retrieve user context
$data = Aastra_get_user_context($user, 'currency');
if ($data['last']['source'] == '') {
    $data['last']['source'] = 'USD';
}
if ($data['last']['target'] == '') {
    $data['last']['target'] = 'EUR';
}
Aastra_save_user_context($user, 'currency', $data);
# Global compatibility
$nb_softkeys = Aastra_number_softkeys_supported();
开发者ID:jamesrusso,项目名称:Aastra_Scripts,代码行数:31,代码来源:currency.php

示例3: Aastra_getvar_safe

#############################################################################
# Collect user input
$bdate = Aastra_getvar_safe('bdate');
$I = Aastra_getvar_safe('I', '1');
$E = Aastra_getvar_safe('E', '1');
$P = Aastra_getvar_safe('P', '1');
$user = Aastra_getvar_safe('user');
# Retrieve phone information
$header = Aastra_decode_HTTP_header();
if ($user == '') {
    $user = $header['mac'];
}
# Keep return URI
$XML_SERVER .= '?user=' . $user;
# Trace
Aastra_trace_call('biorhytm', 'user=' . $user);
# Get Language
$language = Aastra_get_language();
# Check compatibility
Aastra_test_phone_version('1.4.2.', 0);
Aastra_test_php_function('imagecreate', Aastra_get_label('PHP-GD extension not installed.', $language));
$nb_softkeys = Aastra_number_softkeys_supported();
# Nothing entered
if ($bdate == '') {
    $date = Aastra_get_user_context($user, 'biorhytm');
    $object = new AastraIPPhoneInputScreen();
    $object->setTitle(Aastra_get_label('Biorhythms', $language));
    $object->setPrompt(Aastra_get_label('Birth Date (MM/DD/YYYY)', $language));
    $object->setParameter('bdate');
    $object->setType('dateUS');
    $object->setURL($XML_SERVER);
开发者ID:jamesrusso,项目名称:Aastra_Scripts,代码行数:31,代码来源:biorhythm.php

示例4: Aastra_getvar_safe

$page = Aastra_getvar_safe('page', '1');
$speed = Aastra_getvar_safe('speed');
$back = Aastra_getvar_safe('back');
$mode = Aastra_getvar_safe('mode');
$passwd = Aastra_getvar_safe('passwd');
# Test if Asterisk mode
$asterisk = False;
if (file_exists('../include/AastraAsterisk.php')) {
    $asterisk = True;
    require_once 'AastraAsterisk.php';
}
# Log call to the application
if ($asterisk) {
    Aastra_trace_call('asterisk_csv_dir', 'action=' . $action . ', lookup=' . $lookup . ', page=' . $page . ', index=' . $index . ', lastn=' . $lastn . ', firstn=' . $firstn . ', user=' . $user . ', speed=' . $speed);
} else {
    Aastra_trace_call('csv_directory', 'action=' . $action . ', lookup=' . $lookup . ', page=' . $page . ', index=' . $index . ', lastn=' . $lastn . ', firstn=' . $firstn . ', user=' . $user . ', speed=' . $speed);
}
# Test User Agent
Aastra_test_phone_versions(array('1' => '', '2' => '1.4.2.', '3' => '2.5.3.', '4' => '2.5.3.', '5' => '3.0.1.'), '0');
# Get Language
$language = Aastra_get_language();
# Get global compatibility
$is_multipleinputfields = Aastra_is_multipleinputfields_supported();
$nb_softkeys = Aastra_number_softkeys_supported();
$is_icons = Aastra_is_icons_supported();
$is_lockin = Aastra_is_lockin_supported();
$is_style_textmenu = Aastra_is_style_textmenu_supported();
$is_formatted_textscreen = Aastra_is_formattedtextscreen_supported();
$is_textmenu_wrapitem = Aastra_is_textmenu_wrapitem_supported();
# Retrieve the size of the display
$chars_supported = Aastra_size_display_line();
开发者ID:jamesrusso,项目名称:Aastra_Scripts,代码行数:31,代码来源:csv_directory.php

示例5: Aastra_getvar_safe

$menu_page = Aastra_getvar_safe('menu_page', '1');
$menu_page2 = Aastra_getvar_safe('menu_page2', '1');
$menu_action = Aastra_getvar_safe('menu_action', 'list');
$menu_set = Aastra_getvar_safe('menu_set', '1');
$menu_pos = Aastra_getvar_safe('menu_pos');
$menu_mode = Aastra_getvar_safe('menu_mode', 'dynamic');
$selection = Aastra_getvar_safe('selection');
# Get MAC address and type of phone
$header = Aastra_decode_HTTP_header();
if ($menu_user == '') {
    $menu_user = $header['mac'];
}
# Get Language
$language = Aastra_get_language();
# Trace
Aastra_trace_call('mymenu', 'menu_source=' . $menu_source . ', menu_user=' . $menu_user . ', menu_action=' . $menu_action . ', selection=' . $selection . ', menu_pos=' . $menu_pos . ', menu_page=' . $menu_page);
# Test menu_user Agent
Aastra_test_phone_version('1.4.2.', 0);
# Get global compatibility
$nb_softkeys = Aastra_number_softkeys_supported();
$is_style_textmenu = Aastra_is_style_textmenu_supported();
# To handle non softkey phones
if ($nb_softkeys) {
    $MaxLines = AASTRA_MAXLINES;
} else {
    $MaxLines = AASTRA_MAXLINES - 2;
}
# Update URI
$XML_SERVER .= '?menu_source=' . $menu_source . '&menu_user=' . $menu_user . '&menu_mode=' . $menu_mode;
# Process menu_action
switch ($menu_action) {
开发者ID:jamesrusso,项目名称:Aastra_Scripts,代码行数:31,代码来源:mymenu.php

示例6: ini_set

    ini_set('include_path', ini_get('include_path') . ';include;..\\include');
}
error_reporting(E_ERROR | E_PARSE);
#############################################################################
# Includes
#############################################################################
require_once 'AastraCommon.php';
require_once 'AastraIPPhoneTextScreen.class.php';
require_once 'AastraIPPhoneInputScreen.class.php';
#############################################################################
# Beginning of the active code
#############################################################################
# Retrieve parameters
$area = Aastra_getvar_safe('area');
# Trace
Aastra_trace_call('area', 'area=' . $area);
# Test User Agent
Aastra_test_phone_version('1.4.2.', 0);
# Get language
$language = Aastra_get_language();
# Global compatibility
$nb_softkeys = Aastra_number_softkeys_supported();
# Test parameter
if ($area) {
    # Load area codes
    $array = Aastra_readINIfile('area_codes.txt', '#', '=');
    $object = new AastraIPPhoneTextScreen();
    $object->setDestroyOnExit();
    $object->setTitle(sprintf(Aastra_get_label('Area code %s', $language), $area));
    if ($array[''][$area] != '') {
        $object->setText($array[''][$area]);
开发者ID:jamesrusso,项目名称:Aastra_Scripts,代码行数:31,代码来源:area.php

示例7: Aastra_getvar_safe

# Retrieve parameters
$user = Aastra_getvar_safe('user');
$action = Aastra_getvar_safe('action');
$value = Aastra_getvar_safe('value');
$linestate = Aastra_getvar_safe('linestate');
$autopick = Aastra_getvar_safe('autopick');
# Initial action
if ($action == '') {
    if ($linestate == 'CONNECTED') {
        $action = 'park';
    } else {
        $action = 'list';
    }
}
# Trace
Aastra_trace_call('park_asterisk', 'user=' . $user . ', linestate=' . $linestate);
# Test User Agent
Aastra_test_phone_versions(array('1' => '1.4.2.', '2' => '1.4.2.', '3' => '2.5.3.', '4' => '2.5.3.', '5' => '3.0.1.'), '0');
# Retrieve phone information
$header = Aastra_decode_HTTP_header();
# Get phone language
$language = Aastra_get_language();
# Global compatibility
$nb_softkeys = Aastra_number_softkeys_supported();
# Keep URL
$XML_SERVER .= '?user=' . $user;
# Process action
switch ($action) {
    # Park (does not work on 6739i 3.0.1)
    case 'park':
        # Retrieve parking lot
开发者ID:jamesrusso,项目名称:Aastra_Scripts,代码行数:31,代码来源:park.php

示例8: Aastra_getvar_safe

#############################################################################
require_once 'AastraAsterisk.php';
#############################################################################
# Body
#############################################################################
# Retrieve parameters
$user = Aastra_getvar_safe('user');
$action = Aastra_getvar_safe('action', 'main');
$state = Aastra_getvar_safe('state');
$value1 = Aastra_getvar_safe('value1');
$value2 = Aastra_getvar_safe('value2');
$step = Aastra_getvar_safe('step', '1');
$type = Aastra_getvar_safe('type');
$selection = Aastra_getvar_safe('selection');
# Trace
Aastra_trace_call('away_asterisk', 'user=' . $user . ', action=' . $action . ', state=' . $state . ', value1=' . $value1);
# Test User Agent
Aastra_test_phone_versions(array('1' => '1.4.2.', '2' => '1.4.2.', '3' => '2.5.3.', '4' => '2.5.3.', '5' => '3.0.1.'), '0');
# Get Language
$language = Aastra_get_language();
# Global compatibility
$nb_softkeys = Aastra_number_softkeys_supported();
$is_sip_notify = Aastra_is_sip_notify_supported();
# Check if presence is configured
if (!$AA_PRESENCE_STATE and $action == 'main') {
    # Display error message
    require_once 'AastraIPPhoneTextScreen.class.php';
    $object = new AastraIPPhoneTextScreen();
    $object->setDestroyOnExit();
    $object->setTitle(Aastra_get_label('System Error', $language));
    $object->setText(Aastra_get_label('Presence is not enabled on your system. Please contact your administrator.', $language));
开发者ID:jamesrusso,项目名称:Aastra_Scripts,代码行数:31,代码来源:away.php

示例9: Aastra_getvar_safe

$step = Aastra_getvar_safe('step', '1');
$page = Aastra_getvar_safe('page', '1');
$lang = Aastra_getvar_safe('lang');
$cl = Aastra_getvar_safe('cl');
# No action yet
if ($action == '') {
    # Select the right action
    $code = Aastra_ask_language_Asterisk();
    if ($code[0]) {
        $action = 'language';
    } else {
        $action = 'input';
    }
}
# Trace
Aastra_trace_call('startup_asterisk', 'extension=' . $extension . ', password=' . $password . ', action=' . $action . ', page=' . $page . ', cl=' . $cl);
# Get MAC address and type of phone
$header = Aastra_decode_HTTP_header();
# To handle non softkey phones
$nb_softkeys = Aastra_number_softkeys_supported();
if ($nb_softkeys) {
    $MaxLines = AASTRA_MAXLINES;
} else {
    $MaxLines = AASTRA_MAXLINES - 2;
}
$is_doneAction = Aastra_is_doneAction_supported();
# Test User Agent
if ($AA_FREEPBX_MODE == '1') {
    Aastra_test_phone_versions(array('1' => '1.4.2.', '2' => '1.4.2.', '3' => '2.5.3.', '4' => '2.5.3.', '5' => '3.0.1.'), '0');
} else {
    Aastra_test_phone_versions(array('1' => '', '2' => '', '3' => '2.5.3.', '4' => '2.5.3.', '5' => '3.0.1.'), '0');
开发者ID:jamesrusso,项目名称:Aastra_Scripts,代码行数:31,代码来源:startup.php

示例10: ini_set

    ini_set('include_path', ini_get('include_path') . ';include;..\\include');
}
error_reporting(E_ERROR | E_PARSE);
#############################################################################
# Includes
#############################################################################
require_once 'AastraAsterisk.php';
#############################################################################
# Active code
#############################################################################
# Retrieve parameters
$user = Aastra_getvar_safe('user');
$action = Aastra_getvar_safe('action', 'change');
$status = Aastra_getvar_safe('status');
# Trace
Aastra_trace_call('dnd_asterisk', 'user=' . $user . ', action=' . $action . ', status=' . $status);
# Test User Agent
Aastra_test_phone_versions(array('1' => '1.4.2.', '2' => '1.4.2.', '3' => '2.5.3.', '4' => '2.5.3.', '5' => '3.0.1.'), '0');
# Authenticate user
if ($action == 'change') {
    Aastra_check_signature_Asterisk($user);
}
# Get language
$language = Aastra_get_language();
# Update callback
$XML_SERVER .= '?user=' . $user;
# Depending on action
switch ($action) {
    # Update Message status
    case 'msg':
        # Update idle screen
开发者ID:jamesrusso,项目名称:Aastra_Scripts,代码行数:31,代码来源:dnd.php

示例11: Aastra_getvar_safe

    }
    # Return formatted text
    return $return;
}
#############################################################################
# Body
#############################################################################
# Retrieve parameters
$user = Aastra_getvar_safe('user');
$password = Aastra_getvar_safe('password');
$action = Aastra_getvar_safe('action', 'input');
$page = Aastra_getvar_safe('page', '1');
$value = Aastra_getvar_safe('value');
$origin = Aastra_getvar_safe('origin');
# Trace
Aastra_trace_call('logout_asterisk', 'user=' . $user . ', password=' . $password . ', action=' . $action);
# Test User Agent
Aastra_test_phone_versions(array('1' => '1.4.2.', '2' => '1.4.2.', '3' => '2.5.3.', '4' => '2.5.3.', '5' => '3.0.1.'), '0');
# Get MAC address and type of phone
$header = Aastra_decode_HTTP_header();
# Save return URI
$XML_SERVER .= '?user=' . $user;
# Get Language
$language = Aastra_get_language();
# Compatibility
$nb_softkeys = Aastra_number_softkeys_supported();
$is_sip_notify = Aastra_is_sip_notify_supported();
# Device must be ad-hoc
if ($AA_FREEPBX_MODE == '2') {
    $device_info = Aastra_get_device_info_Asterisk($user);
    if ($device_info['type'] != 'adhoc') {
开发者ID:jamesrusso,项目名称:Aastra_Scripts,代码行数:31,代码来源:logout.php

示例12: Aastra_getvar_safe

require_once 'AastraIPPhoneTextMenu.class.php';
require_once 'AastraIPPhoneInputScreen.class.php';
require_once 'AastraIPPhoneExecute.class.php';
#############################################################################
# Main code
#############################################################################
# Retrieve parameters
$device = Aastra_getvar_safe('device');
$user = Aastra_getvar_safe('user');
$password = Aastra_getvar_safe('password');
$action = Aastra_getvar_safe('action');
$step = Aastra_getvar_safe('step', '1');
$lang = Aastra_getvar_safe('lang');
$cl = Aastra_getvar_safe('cl');
# Trace
Aastra_trace_call('login_asterisk', 'device=' . $device . ', user=' . $user . ', password=' . $password . ', action=' . $action);
# Keep the URL
$XML_SERVER .= '?device=' . $device;
# Test User Agent
Aastra_test_phone_versions(array('1' => '', '2' => '', '3' => '2.5.3.', '4' => '2.5.3.', '5' => '3.0.1.'), '0');
# Global compatibility
$nb_softkeys = Aastra_number_softkeys_supported();
# No action yet
if ($action == '') {
    $code = Aastra_ask_language_Asterisk();
    if ($code[0]) {
        $action = 'language';
    } else {
        $action = 'input';
    }
}
开发者ID:jamesrusso,项目名称:Aastra_Scripts,代码行数:31,代码来源:login.php

示例13: error_reporting

error_reporting(E_ERROR | E_PARSE);
#############################################################################
# Includes
#############################################################################
require_once 'AastraAsterisk.php';
#############################################################################
# Body
#############################################################################
# Retrieve parameters
$user = Aastra_getvar_safe('user');
$action = Aastra_getvar_safe('action');
$value = Aastra_getvar_safe('value');
$type = Aastra_getvar_safe('type');
$selection = Aastra_getvar_safe('selection');
# Trace
Aastra_trace_call('cfwd_asterisk', 'user=' . $user . ', action=' . $action . ', value=' . $value . ', type=' . $type . ', selection=' . $selection);
# Test User Agent
Aastra_test_phone_versions(array('1' => '1.4.2.', '2' => '1.4.2.', '3' => '2.5.3.', '4' => '2.5.3.', '5' => '3.0.1.'), '0');
# Get Language
$language = Aastra_get_language();
# Get global compatibility
$nb_softkeys = Aastra_number_softkeys_supported();
$is_icons = Aastra_is_icons_supported();
$is_style_textmenu = Aastra_is_style_textmenu_supported();
# Check launch mode
if ($action == '') {
    if ($value != '') {
        # Get current status
        $cf = Aastra_manage_cf_Asterisk($user, 'main', $value);
        # Toggle
        if ($cf == '') {
开发者ID:jamesrusso,项目名称:Aastra_Scripts,代码行数:31,代码来源:cfwd.php

示例14: Aastra_getvar_safe

    # Return processed string
    return $string;
}
#############################################################################
# Beginning of the active code
#############################################################################
# Collect parameters
$index = Aastra_getvar_safe('index');
$last_index = Aastra_getvar_safe('last_index');
$rank = Aastra_getvar_safe('rank');
$last_rank = Aastra_getvar_safe('last_rank');
$feed = Aastra_getvar_safe('feed');
$page = Aastra_getvar_safe('page', '1');
$set = Aastra_getvar_safe('set', '1');
# Trace
Aastra_trace_call('rss', 'feed=' . $feed . ', index=' . $index . ', rank=' . $rank . ', last_rank=' . $last_rank . ', page=' . $page);
# Test User Agent
Aastra_test_phone_version('1.4.2.', 0);
# Keep callback
$XML_SERVER .= '?feed=' . $feed;
# Init data
$file = $feed . '.rss';
# Get Language
$header = Aastra_decode_HTTP_header();
$language = Aastra_get_language();
# IF RSS config exists
if (file_exists($file)) {
    $array = Aastra_readINIfile($file, '#', '=');
    reset($array);
    $i = 0;
    $pattern[0] = 0;
开发者ID:jamesrusso,项目名称:Aastra_Scripts,代码行数:31,代码来源:rss.php

示例15: array

    $replace = array('', '', '\\1', '"', '&', '<', '>', ' ', chr(161), chr(162), chr(163), chr(169), 'chr(\\1)');
    $string = preg_replace($search, $replace, $string);
    $string = preg_replace($search, $replace, $string);
    $string = preg_replace('/\\n/', ' ', $string);
    return $string;
}
#############################################################################
# Beginning of the active code
#############################################################################
# Collect parameters
$header = Aastra_decode_HTTP_header();
$user = Aastra_getvar_safe('user', $header['mac']);
$index = Aastra_getvar_safe('index');
$zip = Aastra_getvar_safe('zip');
# Trace
Aastra_trace_call('weather', 'zip=' . $zip . ', index=' . $index);
# Test User Agent
Aastra_test_phone_version('1.4.2.', 0);
# Get Language
$language = Aastra_get_language();
# Get global compatibility
$nb_softkeys = Aastra_number_softkeys_supported();
# Callback
$XML_SERVER .= '?user=' . $user;
# No ZIP yet
if ($zip == '') {
    # Input zip code
    $object = new AastraIPPhoneInputScreen();
    $object->setTitle(Aastra_get_label('US Local Weather', $language));
    $object->setPrompt(Aastra_get_label('Enter ZIP code', $language));
    $object->setParameter('zip');
开发者ID:jamesrusso,项目名称:Aastra_Scripts,代码行数:31,代码来源:weather_us.php


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