示例#1
0
$user = Aastra_getvar_safe('user');
$action = Aastra_getvar_safe('action', 'list');
$page = Aastra_getvar_safe('page', '1');
$orig_d = Aastra_getvar_safe('orig_d');
$orig_p = Aastra_getvar_safe('orig_p');
$msg = Aastra_getvar_safe('msg');
$cause = Aastra_getvar_safe('cause', 'end');
$paused = Aastra_getvar_safe('paused', 'no');
$last_msg = Aastra_getvar_safe('last_msg');
$dpage = Aastra_getvar_safe('dpage', '1');
$dindex = Aastra_getvar_safe('dindex');
$set = Aastra_getvar_safe('set', '1');
# Trace
Aastra_trace_call('vmail_4_asterisk', 'ext=' . $ext . ', user='******' ,action=' . $action);
# Test User Agent
Aastra_test_phone_versions(array('1' => '', '2' => '', '3' => '', '4' => '2.5.3.', '5' => ''), '0');
# Get Language
$language = Aastra_get_language();
# Keep URL
$XML_SERVER .= '?ext=' . $ext . '&user='******'play_exit') {
    # New message to move?
    if ($cause != 'delete') {
        sscanf($msg, '%4s-%s', $msg_id, $msg_folder);
        if ($msg_folder == 'INBOX') {
            # Move message
            $new_msg = Aastra_move_to_folder_Asterisk($user, $msg_id, 'INBOX', 'Old');
            # Move succeeded, keep new message
示例#2
0
#############################################################################
# Main code
#############################################################################
# Retrieve parameters
$user = Aastra_getvar_safe('user');
$page = Aastra_getvar_safe('page', '1');
$action = Aastra_getvar_safe('action', 'init');
$speed = Aastra_getvar_safe('speed');
$selection = Aastra_getvar_safe('selection');
$origin = Aastra_getvar_safe('origin');
$orig_s = Aastra_getvar_safe('orig_s');
$lookup = Aastra_getvar_safe('lookup', '');
# Trace
Aastra_trace_call('directory_5_asterisk', 'user='******', action=' . $action . ', speed=' . $speed . ', selection=' . $selection);
# Test User Agent
Aastra_test_phone_versions(array('1' => '', '2' => '', '3' => '', '4' => '', '5' => '3.0.1.'), '0');
# Get Language
$language = Aastra_get_language();
# Save return URI
$XML_SERVER .= '?user='******'&origin=' . $origin;
# Compute MaxLines
$MaxLines = AASTRA_MAXLINES;
# Initial call
if ($action == 'init') {
    # Retrieve current configuration
    $mode = Aastra_get_user_context(Aastra_get_userdevice_Asterisk($user), 'pbx_directory');
    if ($mode == '') {
        $mode = '1';
        Aastra_save_user_context(Aastra_get_userdevice_Asterisk($user), 'pbx_directory', $mode);
    }
    # Initial action
示例#3
0
#############################################################################
# Body
#############################################################################
# Retrieve parameters
$user = Aastra_getvar_safe('user');
$action = Aastra_getvar_safe('action');
$value = Aastra_getvar_safe('value');
$selection = Aastra_getvar_safe('selection');
$page = Aastra_getvar_safe('page', '1');
$type = Aastra_getvar_safe('type');
# Maximum number of phones in the follow-me list
$MAX_NUMBERS = 10;
# Trace
Aastra_trace_call('follow_asterisk', 'user='******', action=' . $action . ', value=' . $value . ', 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 global compatibility
$nb_softkeys = Aastra_number_softkeys_supported();
$is_icons = Aastra_is_icons_supported();
$is_style_textmenu = Aastra_is_style_textmenu_supported();
# Initial call
if ($action == '') {
    if ($nb_softkeys) {
        $action = 'main';
    } else {
        $action = 'change_status2';
    }
}
# Get Language
$language = Aastra_get_language();
# Keep return URI
示例#4
0
# Includes
#############################################################################
require_once 'AastraAsterisk.php';
#############################################################################
# Main code
#############################################################################
# Retrieve parameters
$user = Aastra_getvar_safe('user');
$page = Aastra_getvar_safe('page', '1');
$action = Aastra_getvar_safe('action', 'list');
$selection = Aastra_getvar_safe('selection');
$origin = Aastra_getvar_safe('origin');
# Trace
Aastra_trace_call('directory_1_asterisk', 'user='******', action=' . $action . ', speed=' . $speed . ', selection=' . $selection);
# Test User Agent
Aastra_test_phone_versions(array('1' => '1.4.2', '2' => '', '3' => '', '4' => '', '5' => ''), '0');
# Get Language
$language = Aastra_get_language();
# Save return URI
$XML_SERVER .= '?user='******'&origin=' . $origin;
# Compute MaxLines
$MaxLines = AASTRA_MAXLINES - 2;
# Process action
switch ($action) {
    # Poor man's dial
    case 'dial':
        # Do nothing
        require_once 'AastraIPPhoneExecute.class.php';
        $object = new AastraIPPhoneExecute();
        $object->addEntry('');
        $object->output(True);