Beispiel #1
0
     }
     $object->setallowDTMF();
     require_once 'AastraIPPhoneSPImage.class.php';
     $SPimage = new AastraIPPhoneSPImage();
     # Title
     $SPimage->setText(sprintf(Aastra_get_label('Mailbox %s', $language), $user), 1, 'right', 0);
     # Bitmap on the left
     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 {