Microsoft Speech Application SDK
CallID Property
Gets the call ID for the current active call. Read-only.
Usage
| Get value: | String = CallInfo.CallID; |
| Set value: | Read-only |
| Data type: | String |
Remarks
For more information on CSTA standards, see
Standard ECMA-269
(Services for Computer Supported Telecommunications Applications Phase III) and
Standard ECMA-323
(XML Protocol for Computer Supported Telecommunications Applications Phase III).
Example
The following example demonstrates an OnClientConnected routine that uses the CurrentCall object to get CallID, CalledDevice and CallingDevice properties of the call that has just been connected. In the OnClientConnected routine, these values are available as parameters, but other client-side routines can use the CurrentCall object to access any property of the CallInfo class. See Additional Client Scripting Elements for more information.
<script>
function myClientConnected(obj, CallID, networkCallingDevice, networkCalledDevice) {
LogMessage("", "Call has been Connected: " +
RunSpeech.CurrentCall().Get("MonitorCrossRefID") + " - " +
RunSpeech.CurrentCall().Get("DeviceID") + " - " +
RunSpeech.CurrentCall().Get("CallID") + " - " +
RunSpeech.CurrentCall().Get("CalledDevice") + " - " +
RunSpeech.CurrentCall().Get("CallingDevice") );
return true;
}
</script>
<form id="Form1" method="post" runat="server">
...
<speech:AnswerCall runat="server"
ID="AnswerCall1"
autopostback="True"
DeviceID="0"
OnClientConnected="myClientConnected"/>
...
</form>