Пример #1
0
     if ($cause == 'record') {
         $SPimage->setBitmap('recording', 3, 1);
         $SPimage->setText(Aastra_get_label('Recording...', $language), 3, 'left', 4);
     } else {
         $SPimage->setBitmap('playing', 3, 1);
         $SPimage->setText(Aastra_get_label('Playing...', $language), 3, 'left', 4);
     }
     $SPimage->setText($greeting, 4, 'left', 4);
     $object->setSPImage($SPimage);
 } else {
     # New formatted text screen
     require_once 'AastraIPPhoneFormattedTextScreen.class.php';
     $object = new AastraIPPhoneFormattedTextScreen();
     $object->setDestroyOnExit();
     if (Aastra_is_lockincall_supported()) {
         $object->setLockinCall();
     } else {
         $object->setLockin();
     }
     $object->setallowDTMF();
     $object->addLine('');
     if ($cause == 'record') {
         $object->addLine(Aastra_get_label('Recording', $language));
     } else {
         $object->addLine(Aastra_get_label('Playing', $language));
     }
     $object->addLine($greeting, NULL, 'center');
 }
 # Softkeys
 $object->addSoftkey('6', Aastra_get_label('Cancel', $language), $XML_SERVER . '&action=cancel_greetings');
 break;