Exemple #1
0
             $object->addSoftkey('2', Aastra_get_label('Clear', $language), $XML_SERVER . '&action=clear_info');
             $object->addSoftkey('5', Aastra_get_label('Back', $language), $XML_SERVER);
             $object->addSoftkey('6', Aastra_get_label('Exit', $language), 'SoftKey:Exit');
         } else {
             $object->addSoftkey('1', Aastra_get_label('Clear', $language), $XML_SERVER . '&action=clear_info');
             $object->addSoftkey('9', Aastra_get_label('Back', $language), $XML_SERVER);
             $object->addSoftkey('10', Aastra_get_label('Exit', $language), 'SoftKey:Exit');
             $object->setCancelAction($XML_SERVER);
         }
     }
     break;
     # Default is Current status
 # Default is Current status
 case 'main':
     # Authenticate user
     Aastra_check_signature_Asterisk($user);
     # Display current status
     $array_fm = Aastra_manage_followme_Asterisk($user, 'get_all');
     # Check if configured
     if ($array_fm['status'] == '2') {
         # Error: Not configured
         require_once 'AastraIPPhoneTextScreen.class.php';
         $object = new AastraIPPhoneTextScreen();
         $object->setDestroyOnExit();
         $object->setTitle(Aastra_get_label('Follow-me', $language));
         $object->setText(Aastra_get_label('This feature is not configured for your phone. Please contact your administrator.', $language));
         if ($nb_softkeys) {
             if ($nb_softkeys == 6) {
                 $object->addSoftkey('6', Aastra_get_label('Exit', $language), 'SoftKey:Exit');
             } else {
                 $object->addSoftkey('10', Aastra_get_label('Exit', $language), 'SoftKey:Exit');
Exemple #2
0
$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) {
    # Check pin number
    case 'checkpin':
        # Retrieve pins
        $array = Aastra_get_meetme_room_details_Asterisk($confno);
        if ($pin != $array['adminpin'] and $pin != $array['userpin']) {
            # Display error message
            require_once 'AastraIPPhoneTextScreen.class.php';
            $object = new AastraIPPhoneTextScreen();
            $object->setDestroyOnExit();
            $object->setTitle(Aastra_get_label('Access denied', $language));