Example #1
0
         } 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;
     # Cancel recording
 # Cancel recording
 case 'cancel_greetings':
     # Cancel recording
     require_once 'AastraIPPhoneExecute.class.php';
     $object = new AastraIPPhoneExecute();
     $object->addEntry('Key:Goodbye');
     $object->setTriggerDestroyonExit();
     break;
     # Callback
 # Callback
 case 'callback':
     # Input Screen
     require_once 'AastraIPPhoneInputScreen.class.php';
     $object = new AastraIPPhoneInputScreen();
     $object->setDestroyOnExit();
     # Input number
     $object->setTitle(Aastra_get_label('Edit Number', $language));
     $object->setType('number');
     $object->setPrompt(Aastra_get_label('Number to dial', $language));
     $object->setParameter('paused');
     $object->setURL($XML_SERVER . '&action=dial&msg=' . $msg . '&cause=' . $cause);
     $object->setDefault($cause);