Handling Telephony Transactions
The Microsoft Speech Application SDK Version 1.1 (SASDK) provides Microsoft ASP.NET Speech Controls that support Computer Supported Telecommunications Applications (CSTA) XML messages.
Speech Control | Description |
---|---|
Speech AnswerCall | Use the Speech AnswerCall (AnswerCall) control to add connection logic to the Start page of an application and answer incoming calls. |
Speech SmexMessage | Use the Speech SmexMessage (SmexMessage) control to send raw CSTA messages and receive CSTA events. |
Speech TransferCall | Use the Speech TransferCall (TransferCall) control to transfer the current call using the CSTA SingleStepTransfer service. |
Speech MakeCall | Use the Speech MakeCall (MakeCall) control to initiate a call using the CSTA MakeCall service. |
Speech DisconnectCall | Use the Speech DisconnectCall (DisconnectCall) control to disconnect a call using the CSTA ClearConnection service. |
Property Builders do not exist for the previous controls as they do for the Microsoft ASP.NET Application Speech Controls and the other Speech Controls. Specify properties for these CSTA controls using the Properties window of each control.
- Adding Connection Logic and Answering Incoming Calls
- Receiving Incoming Calls
- Initiating Calls
- Transferring Calls
- Terminating or Disconnecting Calls
Adding Connection Logic and Answering Incoming Calls
Use the AnswerCall control to add telephony connection logic to an application, and answer incoming calls. The AnswerCall contains the connection logic for voice-only applications, and is typically placed on the first page, or Start page, of an application.
Use the following two points as general guidelines when configuring voice-only applications.
- In a telephony deployment that includes only one application, the Start page of the application should contain the AnswerCall and its connection logic.
- In a telephony deployment that includes more than one application, create a Start page that contains logic for switching between the applications, based on the number called or some other characteristic of the call. The Start page should then invoke the first page of the appropriate application, which contains the AnswerCall and its connection logic.
When using the Speech Web Application Project Wizard to create a new voice-only speech application project in Visual Studio .NET 2003, the default.aspx page of the new project contains an AnswerCall by default. Because of this, the default.aspx page contains all of the required connection logic. No further configuration of the AnswerCall is required to implement this functionality.
Note The Start page of an application must contain an AnswerCall in order to use Telephony Application Simulator during debugging.
To set AnswerCall properties
- Right-click an AnswerCall control, and on the shortcut menu, click Properties.
- Enter property values as appropriate.
Receiving Incoming Calls
Use the SmexMessage control to send raw CSTA messages and receive CSTA events.
To set SmexMessage properties
- From the Speech Toolbox, drag a SmexMessage control onto the design canvas of an .aspx page.
- Right-click the SmexMessage control, and in the shortcut menu, click Properties.
- In the ClientSmexId box of the Properties window, type an ID for this control.
- In the Message box of the Properties window, type the CSTA XML message to send.
- If applicable, in the Settings box of the Properties window, type the ID of a SpeechControlSettingsItem to apply to this control.
- In the Timer box of the Properties window, type the number of milliseconds indicating the time span before a time-out event is triggered.
- Enter other property values as appropriate.
Initiating Calls
Use the MakeCall control to initiate a call using the CSTA MakeCall service.
To set MakeCall properties
- From the Speech Toolbox, drag a MakeCall control onto the design canvas of an .aspx page.
- Right-click the MakeCall control, and in the shortcut menu, click Properties.
- In the CalledDirectoryNumber box of the Properties window, type the phone number to be called.
- In the CallingDevice box of the Properties window, type the device that was used to make the outbound call.
- If applicable, in the Settings box of the Properties window, type the ID of a SpeechControlSettingsItem to apply to this control.
- In the Timer box of the Properties window, type the number of milliseconds indicating the time span before a time-out event is triggered.
- Enter other property values as appropriate.
Transferring Calls
Use the TransferCall control to transfer the current call using the CSTA SingleStepTransfer service.
To set TransferCall properties
- From the Speech Toolbox, drag a TransferCall control onto the design canvas of an .aspx page.
- Right-click the TransferCall control, and in the shortcut menu, click Properties.
- In the TransferredTo box of the Properties window, type the ID of the device associated with the endpoint of the transfer.
- If applicable, in the Settings box of the Properties window, type the ID of a SpeechControlSettingsItem to apply to this control.
- In the Timer box of the Properties window, type the number of milliseconds indicating the time span before a time-out event is triggered.
- Enter other property values as appropriate.
Terminating or Disconnecting Calls
Use the DisconnectCall control to disconnect a call using the CSTA ClearConnection service.
To set DisconnectCall properties
- From the Speech Toolbox, drag a DisconnectCall control onto the design canvas of an .aspx page.
- Right-click the DisconnectCall control, and in the shortcut menu, click Properties.
- If applicable, in the Settings box of the Properties window, type the ID of a SpeechControlSettingsItem to apply to this control.
- In the Timer box of the Properties window, type the number of milliseconds indicating the time span before a time-out event is triggered.
- Enter other property values as appropriate.