コード例 #1
0
ファイル: vmail_4.php プロジェクト: jamesrusso/Aastra_Scripts
        $size = Aastra_size_display_line();
        if (strlen($flash_text) > $size) {
            $temp = wordwrap($flash_text, $size, "\n", True);
            $lines = explode("\n", $temp);
        } else {
            $lines[0] = $flash_text;
        }
        $nb_lines = count($lines);
        if ($nb_lines == 1) {
            $object->addLine('');
            $object->addLine('');
            $object->addLine($lines[0], 'double', 'center');
        } else {
            if ($nb_lines < 4) {
                $object->addLine('');
            }
            foreach ($lines as $value) {
                $object->addLine($value, NULL, 'center');
            }
        }
        # Softkeys
        $object->setRefresh(2, $flash_next);
        $object->addSoftkey('6', '', $flash_next);
        break;
}
# Output XML object
$object->output();
exit;
?>

コード例 #2
0
     }
     # Softkeys
     $object->addSoftKey('1', Aastra_get_label('Dial', $language), 'Dial:' . $selection);
     $intercom = Aastra_get_intercom_config_Asterisk();
     if ($intercom != '') {
         $object->addSoftKey('2', Aastra_get_label('Intercom', $language), 'Dial:' . $intercom . $selection);
     }
     if ($away['status'] != AA_PRESENCE_AVAILABLE and $away['status'] != AA_PRESENCE_DISCONNECTED) {
         if (!$notify) {
             $object->addSoftKey('3', Aastra_get_label('Notify me', $language), $XML_SERVER . '&action=notify&lookup=' . $lookup . '&page=' . $page . '&selection=' . $selection);
         } else {
             $object->addSoftKey('3', Aastra_get_label('Unnotify', $language), $XML_SERVER . '&action=unnotify&lookup=' . $lookup . '&page=' . $page . '&selection=' . $selection);
         }
     }
     if ($AA_SPEEDDIAL_STATE) {
         $object->addSoftkey('6', Aastra_get_label('Add to Speed Dial', $language), $XML_SERVER . '&action=select&lookup=' . $lookup . '&page=' . $page . '&selection=' . $selection . '&orig_s=zoom');
     }
     $object->addSoftKey('9', Aastra_get_label('Back', $language), $XML_SERVER . '&action=list&lookup=' . $lookup . '&page=' . $page . '&selection=' . $selection);
     $object->addSoftKey('10', Aastra_get_label('Exit', $language), 'SoftKey:Exit');
     $object->setCancelAction($XML_SERVER . '&action=list&lookup=' . $lookup . '&page=' . $page . '&selection=' . $selection);
     break;
     # Notify
 # Notify
 case 'notify':
     # Display choice
     require_once 'AastraIPPhoneTextMenu.class.php';
     $object = new AastraIPPhoneTextMenu();
     $object->setDestroyOnExit();
     $object->setTitle(Aastra_get_label('Notification type', $language));
     $object->addEntry(Aastra_get_label('Message', $language), $XML_SERVER . '&action=set_notifym&lookup=' . $lookup . '&page=' . $page . '&selection=' . $selection);
     $object->addEntry(Aastra_get_label('Phone Call', $language), $XML_SERVER . '&action=set_notifyv&lookup=' . $lookup . '&page=' . $page . '&selection=' . $selection);
コード例 #3
0
ファイル: vmail_5.php プロジェクト: jamesrusso/Aastra_Scripts
     require_once 'AastraIPPhoneFormattedTextScreen.class.php';
     $object = new AastraIPPhoneFormattedTextScreen();
     $object->setDestroyOnExit();
     $object->setLockin();
     $object->setallowDTMF();
     $object->addLine('');
     $object->addLine($greeting, 'large', 'center', 'green');
     $object->addLine('');
     $object->addLine('');
     if ($cause == 'record') {
         $object->addLine(Aastra_get_label('RECORDING', $language), 'large', 'center', 'red');
     } else {
         $object->addLine(Aastra_get_label('NOW PLAYING', $language), 'large', 'center', 'red');
     }
     # Softkeys
     $object->addSoftkey('10', Aastra_get_label('Cancel', $language), $XML_SERVER . '&action=cancel_greetings');
     break;
     # Cancel recording
 # Cancel recording
 case 'cancel_greetings':
     # Cancel recording
     require_once 'AastraIPPhoneExecute.class.php';
     $object = new AastraIPPhoneExecute();
     $object->addEntry('Key:Goodbye');
     $object->setTriggerDestroyonExit();
     break;
     # Callback
 # Callback
 case 'callback':
     # Depending on origin
     if ($origin == 'list') {
コード例 #4
0
                 $object->addLine(Aastra_get_label('Phone is in use', $language));
             }
         }
     }
     $object->setScrollEnd();
     # Softkeys
     $object->addSoftKey('1', Aastra_get_label('Dial', $language), 'Dial:' . $selection);
     if ($away['status'] != AA_PRESENCE_AVAILABLE and $away['status'] != AA_PRESENCE_DISCONNECTED) {
         if (!$notify) {
             $object->addSoftKey('2', Aastra_get_label('Notify me', $language), $XML_SERVER . '&action=notify&page=' . $page . '&selection=' . $selection . '&lookup=' . $lookup);
         } else {
             $object->addSoftKey('2', Aastra_get_label('Unnotify', $language), $XML_SERVER . '&action=unnotify&page=' . $page . '&selection=' . $selection . '&lookup=' . $lookup);
         }
     }
     if ($AA_SPEEDDIAL_STATE) {
         $object->addSoftkey('3', Aastra_get_label('+Speed', $language), $XML_SERVER . '&action=select&page=' . $page . '&selection=' . $selection . '&orig_s=zoom' . '&lookup=' . $lookup);
     }
     $intercom = Aastra_get_intercom_config_Asterisk();
     if ($intercom != '') {
         $object->addSoftKey('4', Aastra_get_label('Icom', $language), 'Dial:' . $intercom . $selection);
     }
     $object->addSoftKey('5', Aastra_get_label('Back', $language), $XML_SERVER . '&action=list&page=' . $page . '&selection=' . $selection . '&lookup=' . $lookup);
     $object->addSoftKey('6', Aastra_get_label('Exit', $language), 'SoftKey:Exit');
     break;
     # Notify
 # Notify
 case 'notify':
     # Display choice
     require_once 'AastraIPPhoneTextMenu.class.php';
     $object = new AastraIPPhoneTextMenu();
     $object->setDestroyOnExit();
コード例 #5
0
function display_message($title, $message, $backURL = NULL)
{
    global $LANGUAGE;
    # Depending on phone type
    if (Aastra_phone_type() != 5) {
        # non 6739i
        require_once 'AastraIPPhoneTextScreen.class.php';
        $object = new AastraIPPhoneTextScreen();
        $object->setTitle($title);
        $object->setText($message);
        $object->addSoftkey('5', Aastra_get_label('Back', $LANGUAGE), $backURL);
        $object->addSoftkey('6', Aastra_get_label('Exit', $LANGUAGE), 'SoftKey:Exit');
    } else {
        # 6739i/8000i
        require_once 'AastraIPPhoneFormattedTextScreen.class.php';
        $object = new AastraIPPhoneFormattedTextScreen();
        $object->addLine('', 'double', 'center');
        $object->addLine($title, 'double', 'center', 'red');
        $object->setScrollStart('3');
        $object->addLine('');
        $object->addLine('');
        $object->addLine($message, NULL, 'center');
        $object->setScrollEnd();
        $object->addLine('', NULL, 'center');
        $object->addSoftkey('9', Aastra_get_label('Back', $LANGUAGE), $backURL, 1);
        $object->addSoftkey('10', Aastra_get_label('Exit', $LANGUAGE), 'SoftKey:Exit', 2);
        $object->addIcon(1, 'Icon:ArrowLeft');
        $object->addIcon(2, 'Icon:CircleRed');
    }
    # Common parameters
    $object->setDestroyOnExit();
    $object->setCancelAction($backURL);
    $object->output();
    exit;
}
コード例 #6
0
     $configuration->output();
     break;
 case 'formattedtextscreen':
     require_once 'AastraIPPhoneFormattedTextScreen.class.php';
     $ftext = new AastraIPPhoneFormattedTextScreen();
     $ftext->setDestroyOnExit();
     $ftext->addLine('Formatted Screen', 'double', 'center', 'red');
     $ftext->setScrollStart();
     $ftext->addLine('Scrolled text1');
     $ftext->addLine('Scrolled text2');
     $ftext->addLine('Scrolled text3');
     $ftext->addLine('Scrolled text4');
     $ftext->addLine('Scrolled text5');
     $ftext->setScrollEnd();
     $ftext->addLine('Footer', NULL, 'center');
     $ftext->addSoftkey('10', 'Exit', 'SoftKey:Exit');
     $ftext->output();
     break;
 case 'status1':
     require_once 'AastraIPPhoneStatus.class.php';
     $status = new AastraIPPhoneStatus();
     $status->setTriggerDestroyOnExit();
     $status->setSession('Session');
     $status->addEntry('1', 'Message 1');
     $status->addEntry('2', 'Message 2');
     $status->output();
     break;
 case 'status2':
     require_once 'AastraIPPhoneStatus.class.php';
     $status = new AastraIPPhoneStatus();
     $status->setSession('Session');