CalledDevice Property
Gets the called device information that is provided by the network (DNIS, for example). Read-only.
Usage
Get value: | String = CallInfo.CalledDevice; |
Set value: | Read-only |
Data type: | String |
Remarks
The CalledDevice property contains the number to which the call is directed. In the case of an incoming call, the CalledDevice property may be used to direct the call to the appropriate application page.
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>
See Also
CallInfo Class | CallInfo Constructor | CallInfo Members | CallInfo Properties | CallInfo Methods | CallInfo Remarks | CallInfo Client Object