コード例 #1
0
        $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');
        $status->setTriggerDestroyOnExit();
        $status->addEntry('1', '');
        $status->addEntry('2', '');
        $status->output();
        break;
}
コード例 #2
0
ファイル: follow.php プロジェクト: jamesrusso/Aastra_Scripts
         $object->setBeep();
     } else {
         # Move down the element
         $temp = $fm['grplist'][$selection];
         $fm['grplist'][$selection] = $fm['grplist'][$selection + 1];
         $fm['grplist'][$selection + 1] = $temp;
         Aastra_manage_followme_Asterisk($user, 'set_grplist', $fm['grplist']);
     }
     break;
     # Update idle screen message status
 # Update idle screen message status
 case 'msg':
     # update screen message
     require_once 'AastraIPPhoneStatus.class.php';
     $object = new AastraIPPhoneStatus();
     $object->setSession('aastra-xml');
     $index = Aastra_get_status_index_Asterisk('follow');
     if ($value != '1') {
         $object->addEntry($index, '');
     } else {
         if (Aastra_is_status_uri_supported()) {
             $object->addEntry($index, Aastra_get_label('Follow-me activated', $language), '', NULL, $XML_SERVER . '&action=change_status2', 1);
             $object->addIcon('1', 'Icon:World');
         } else {
             $object->addEntry($index, Aastra_get_label('Follow-me activated', $language));
         }
     }
     break;
     # Select way to add external number
 # Select way to add external number
 case 'select_info':
コード例 #3
0
ファイル: onhook.php プロジェクト: jamesrusso/Aastra_Scripts
    $object->addEntry($XML_SERVER_PATH . '/away.php?user='******'Paging' and $number != '') {
    # Translate user if needed
    $user = Aastra_get_userdevice_Asterisk($user);
    # Check if call has been parked
    $park = Aastra_check_park_Asterisk($user, $number);
    # Display orbit
    if ($park != '') {
        # Display current status
        require_once 'AastraIPPhoneStatus.class.php';
        $object = new AastraIPPhoneStatus();
        $object->setSession('Park');
        $object->setBeep();
        if (Aastra_size_display_line() > 16) {
            $object->addEntry('1', sprintf(Aastra_get_label('Call Parked at %s', $language), $park), 'alert', 5);
        } else {
            $object->addEntry('1', sprintf(Aastra_get_label('Parked at %s', $language), $park), 'alert', 5);
        }
        # Bug 3.2.1
        if (Aastra_test_phone_version('3.2.1.', '1') == 0) {
            sleep(4);
        }
        # End of search
        $found = 1;
    }
}
# No match whatsoever