Ejemplo n.º 1
0
         }
         if ($nb_softkeys == 6) {
             $object->addSoftKey('6', '', 'SoftKey:Exit');
         }
     } else {
         # Basic display
         require_once 'AastraIPPhoneTextScreen.class.php';
         $object = new AastraIPPhoneTextScreen();
         $object->setDestroyOnExit();
         if ($status == 1) {
             $object->setTitle(sprintf(Aastra_get_label('Night Mode (%d)', $language), $index));
         } else {
             $object->setTitle(sprintf(Aastra_get_label('Day Mode (%d)', $language), $index));
         }
         $object->setText(Aastra_get_label('Activated', $language));
         $object->addSoftKey('6', Aastra_get_label('Exit', $language), 'SoftKey:Exit');
     }
     break;
     # Idle screen message
 # Idle screen message
 case 'msg':
     # Update idle screen
     require_once 'AastraIPPhoneStatus.class.php';
     $object = new AastraIPPhoneStatus();
     $object->setSession('aastra-xml');
     $status_index = Aastra_get_status_index_Asterisk('daynight_' . $index);
     if ($status == 1) {
         if ($array_config_daynight[$index]['label_night'] != '') {
             $display = sprintf($array_config_daynight[$index]['label_night'], $index, Aastra_get_daynight_name_Asterisk($index));
         } else {
             $display = sprintf(Aastra_get_label('Night Mode (%d)', $language), $index);
Ejemplo n.º 2
0
            }
        } 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');
                }
            }
        }
        break;
}
# Display answer
$object->output();
exit;
Ejemplo n.º 3
0
     }
 } else {
     $text = sprintf(Aastra_get_label('Currently %s.', $language), $status_text[$away['status']]['label']);
     if ($hint == 'Idle') {
         $text .= ' ' . Aastra_get_label('Phone is idle', $language);
     } else {
         if ($hint == 'Ringing') {
             $text .= ' ' . Aastra_get_label('Phone is ringing', $language);
         } else {
             $text .= ' ' . Aastra_get_label('Phone is in use', $language);
         }
     }
 }
 $object->setText($text);
 # Softkeys
 $object->addSoftKey('1', Aastra_get_label('Dial', $language), $XML_SERVER . '&action=dial&selection=' . $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);
     } else {
         $object->addSoftKey('2', Aastra_get_label('Unnotify', $language), $XML_SERVER . '&action=unnotify&page=' . $page . '&selection=' . $selection);
     }
 }
 if ($AA_SPEEDDIAL_STATE) {
     $object->addSoftkey('3', Aastra_get_label('+Speed', $language), $XML_SERVER . '&action=select&orig_s=zoom&page=' . $page . '&selection=' . $selection);
 }
 $intercom = Aastra_get_intercom_config_Asterisk();
 if ($intercom != '') {
     $object->addSoftKey('4', Aastra_get_label('Icom', $language), $XML_SERVER . '&action=dial&selection=' . $intercom . $selection);
 }
 $object->addSoftKey('5', Aastra_get_label('Back', $language), $XML_SERVER . '&action=list&page=' . $page . '&selection=' . $selection);
Ejemplo n.º 4
0
        if (Aastra_redirect_Asterisk($member, Aastra_get_userdevice_Asterisk($user), '1', 'default')) {
            # Remove display
            require_once 'AastraIPPhoneExecute.class.php';
            $object = new AastraIPPhoneExecute();
            $object->setTriggerDestroyOnExit('');
            $object->addEntry('');
        } else {
            # Error message
            require_once 'AastraIPPhoneTextScreen.class.php';
            $object = new AastraIPPhoneTextScreen();
            $object->setDestroyOnExit();
            $object->setTitle(Aastra_get_label('Pickup failed', $language));
            $object->setText(Aastra_get_label('Failed to intercept the caller in the queue.', $language));
            # Softkeys
            if ($nb_softkeys == 6) {
                $object->addSoftKey('6', Aastra_get_label('Close', $language), $XML_SERVER . '&action=show_queues&queue=' . $queue);
            } else {
                $object->addSoftKey('10', Aastra_get_label('Close', $language), $XML_SERVER . '&action=show_queues&queue=' . $queue);
                $object->setCancelAction($XML_SERVER . '&action=show_queues&queue=' . $queue);
            }
        }
        break;
}
# Display XML object
if ($refresh == 1) {
    $object->output();
} else {
    # Do nothing
    require_once 'AastraIPPhoneExecute.class.php';
    $object2 = new AastraIPPhoneExecute();
    $object2->addEntry('');