Ejemplo n.º 1
0
         $object->addLine('');
         $object->addLine('');
         $object->addLine(Aastra_get_label('Welcome Back', $language), 'large', 'center', 'green');
     } else {
         $object->addLine(Aastra_get_label('Welcome Back', $language), 'double', 'center');
     }
 } else {
     require_once 'AastraIPPhoneTextScreen.class.php';
     $object = new AastraIPPhoneTextScreen();
     $object->setTitle(Aastra_get_label('Presence', $language));
     $object->setText(Aastra_get_label('Welcome Back', $language));
 }
 $object->setDestroyOnExit();
 # Time-out on the display
 if (Aastra_is_timeout_supported()) {
     $object->setTimeout('3');
 }
 # Softkeys
 if ($nb_softkeys) {
     if ($nb_softkeys == 6) {
         if (Aastra_is_timeout_supported()) {
             $object->addSoftKey('6', '', 'SoftKey:Exit');
         } else {
             $object->addSoftKey('6', Aastra_get_label('Close', $language), 'SoftKey:Exit');
         }
     } else {
         if (!Aastra_is_timeout_supported()) {
             $object->addSoftKey('10', Aastra_get_label('Close', $language), 'SoftKey:Exit');
         }
     }
 }
Ejemplo n.º 2
0
             break;
         case 'temp':
             $greeting = Aastra_get_label('Temporary Greeting', $language);
             break;
     }
     # New text screen
     require_once 'AastraIPPhoneTextScreen.class.php';
     $object = new AastraIPPhoneTextScreen();
     $object->setDestroyOnExit();
     if ($cause == 'record') {
         $object->setTitle(Aastra_get_label('Recording...', $language));
     } else {
         $object->setTitle(Aastra_get_label('Playing...', $language));
     }
     $object->setText($greeting);
     $object->setTimeout('300');
     break;
     # Forward
 # Forward
 case 'forward':
 case 'forward2':
 case 'dselect':
 case 'reverse':
     # Retrieve directory
     if ($action == 'forward') {
         # Retrieve list of users
         $directory = Aastra_get_user_directory_Asterisk();
         # Sort Directory by name
         Aastra_natsort2d($directory, 'name');
         # Complete directory
         foreach ($directory as $key => $value) {
Ejemplo n.º 3
0
                 }
             }
             # Softkeys
             if ($nb_softkeys) {
                 if ($nb_softkeys == 6) {
                     $object->addSoftkey('6', Aastra_get_label('More', $language), 'SoftKey:Exit');
                     if ($is_keypress) {
                         $object->addSoftkey('1', Aastra_get_label('Cancel', $language), $XML_SERVER . '?action=cancel');
                     }
                 } else {
                     $object->addSoftkey('10', Aastra_get_label('More', $language), 'SoftKey:Exit');
                 }
             }
             # Common parameters
             $object->setDestroyOnExit();
             $object->setTimeout('4');
             $found = True;
         }
     }
     # No match whatsoever
     if (!$found) {
         require_once 'AastraIPPhoneExecute.class.php';
         $object = new AastraIPPhoneExecute();
         $object->addEntry('');
     }
     break;
     # Cancel
 # Cancel
 case 'cancel':
     # Send 2 goodbyes to hangup the call
     require_once 'AastraIPPhoneExecute.class.php';