コード例 #1
0
ファイル: logout.php プロジェクト: jamesrusso/Aastra_Scripts
        # Set status to Disconnected
        if ($AA_PRESENCE_STATE and $action != 'forced_logout' and !$AA_ISYMPHONY) {
            if (Aastra_manage_presence_Asterisk($user, 'status') == AA_PRESENCE_AVAILABLE) {
                Aastra_manage_presence_Asterisk($user, 'set', 'status', AA_PRESENCE_DISCONNECTED);
                $away = Aastra_manage_presence_Asterisk($user, 'action');
                switch ($away['action'][AA_PRESENCE_DISCONNECTED]) {
                    case AA_PRESENCE_ACT_FM:
                        Aastra_manage_followme_Asterisk($user, 'enable');
                        break;
                    case AA_PRESENCE_ACT_CFWD:
                        Aastra_manage_cf_Asterisk($user, 'set', $away['act_param'][AA_PRESENCE_DISCONNECTED]);
                        break;
                }
            }
        }
        break;
        # Purge Message status
    # Purge Message status
    case 'purge_msg':
        require_once 'AastraIPPhoneStatus.class.php';
        $object = new AastraIPPhoneStatus();
        $object->setSession('aastra-xml');
        $array = Aastra_get_status_index_Asterisk('');
        foreach ($array as $key => $value) {
            $object->addEntry($key, '');
        }
        break;
}
# Display XML Object
$object->output();
exit;
コード例 #2
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;
}