The voicemail 3 example¶
An inbound application that answers the call and says “Welcome to the voicemail server for <name>”. <name> is obtained from the application_parameters and must be registered on the inbound services page of the CWP.
The application uses <name> to determine whether the caller owns the voicemail box. It does this by comparing <name> with the <call_from> property of the inbound call.
If the caller owns the voicemail box, the top level options given are:
Play all existing messages
Delete all existing messages
If the caller does not own the voicemail box, he can leave a new message. The name of the WAV file to save to will be “samples/voicemail3/<name>/msg<counter>.wav”. The <counter> is a variable, initialised to 1, which increments each time a message is successfully saved.