我已经使用了addtapi.net工具,设置已准备好,我从来电中获得了来电。但我不知道如何转移来电?
我使用了以下代码:
TapiCall consultationCall = activeCall.SetupTransfer();
System.Threading.Thread.Sleep(500);
if (consultationCall.State != TapiCallState.DialTone)
throw new Exception("Call state is not Dialtone");
consultationCall.Dial("201");
// When the state of the consultation call changes to Connected,
// the user can talk to ext. 201
// before transferring the remote party to ext. 201
...
// Second step: complete the transfer
activeCall.CompleteTransfer(consultationCall, false);
但是通话不会转移到201分机。