Platform SDK: Web Telephony Engine |
You can use the TAPI ITBasicCallControl.BlindTransfer method in a script to transfer a call to another dialable address. Be aware that a call-transfer operation that is performed through a script may failwhile the engine is playing a wave file. To avoid a failure, write a call-transfer script using the following example as a guide:
<script language=vbscript> sub stopstream DIM pCall DIM myDispMapper DIM pITStreamControl DIM pITStream Set pCall=external.itbasiccallcontrol Set myDispMapper = CreateObject("DispatchMapper.DispatchMapper.1") Set pITStreamControl = myDispMapper.QueryDispatchInterface(_ "{EE3BD604-3868-11D2-A045-00C04FB6809F}",pCall) For Each pITStream in pITStreamControl.Streams lMediaType = pITStream.MediaType if lMediaType = 8 Then pITStream.StopStream End If Next pCall.blindTransfer "1148" end sub </script>