示例#1
0
             $object->setScrollLeft($XML_SERVER . '&action=play_dtmf&msg=4');
             $object->setScrollRight($XML_SERVER . '&action=play_dtmf&msg=6');
         }
     }
     break;
     # Empty box
 # Empty box
 case 'empty_box':
     # New text screen
     require_once 'AastraIPPhoneTextScreen.class.php';
     $object = new AastraIPPhoneTextScreen();
     $object->setDestroyOnExit();
     $object->setTitle(sprintf(Aastra_get_label('Mailbox %s', $language), $user));
     $object->setText(Aastra_get_label('No Voice Message.', $language));
     $object->addSoftkey('1', Aastra_get_label('Options', $language), $XML_SERVER . '&action=options');
     $object->addsoftkey('5', Aastra_get_label('Chg User', $language), $XML_SERVER_PATH . 'vmail.php?ext=' . $ext);
     $object->addSoftkey('6', Aastra_get_label('Exit', $language), 'SoftKey:Exit');
     break;
     # Play wave file
 # Play wave file
 case 'play_message':
     # Decode current Message
     sscanf($msg, '%4s-%s', $msg_id, $msg_folder);
     # Save session
     $array = array('uri_onhook' => $XML_SERVER . '&action=play_exit&orig_p=' . $orig_p . '&msg=' . $msg, 'uri_outgoing' => $XML_SERVER . '&action=playing&msg=' . $msg, 'action' => 'play', 'user' => $user, 'type' => 'message', 'folder' => $msg_folder, 'msgid' => $msg_id, 'time' => time());
     Aastra_save_session('vmail', '600', $array, $ext);
     # Return empty object
     require_once 'AastraIPPhoneExecute.class.php';
     $object = new AastraIPPhoneExecute();
     $object->addEntry('Dial:vmail');
     break;