The sample called VoiceMessagingSample is a voice application that includes messaging. The sample called RecordAudionameSample allows you to record the name of the owner of a mailbox for a voice application to speak to a caller (an audio name).
To use these samples, you must:
RecordAudionameSample enables you to record an audio name for an application profile mailbox.
VoiceMessagingSample is an example of a messaging application that allows callers to:
The flow of control in VoiceMessagingSample is illustrated in Figures Figure 1 through Figure 3. The application is modular, with the state table VoiceMsgMenu as the main controlling loop that calls the other state tables according to the caller’s input.
Figure 4 shows an example of the listing you get when you print a state table from Blueworx Voice Response. For each state, the listing has three sections:
In Figure 4, the first state in the table is labeled summary, its action is a PlayPrompt, and its description is Play summary of messages prompt. The second state is unlabeled, it is also a PlayPrompt, and its description is Play message type selection prompt.
This section tells you the possible results that can be returned by the action, with the label of the state specified as the Goto State (the next state for that result). A blank in the Goto State column indicates that the state that follows this one will be the next state for that result.
For example, the first action (summary) has four possible results:
This section lists the parameters and the values set for them. In the first action (summary), the Prompt parameter specifies the name of the prompt (in this case, the Summary prompt) and the Force Play parameter, which is set to False, specifies that the prompt can be interrupted by the caller.
State Table - VoiceMsgListen Voice Messaging Sample - "Listen" State Label Action Description =============== ==================== ====================================== summary PlayPrompt Play summary of messages prompt TRANSITIONS Result Goto State ------------------------------ --------------- Succeeded Line Problem error Nothing Played error Caller Hung Up end PARAMETER VALUES Parameter Value ------------------------------ ------------------------------ Prompt Summary Force Play False
State Label Action Description =============== ==================== ====================================== PlayPrompt Play message type selection prompt TRANSITIONS Result Goto State ------------------------------ --------------- Succeeded Line Problem error Nothing Played return Caller Hung Up end PARAMETER VALUES Parameter Value ------------------------------ ------------------------------ Prompt MessageType Force Play False
The prompt for VoiceMsgSummary is typical of those you will write when creating a Blueworx Voice Response application.
|