处理B2B中的传入传输请求 [英] Handling Incoming Transfer Requests in B2B

查看:96
本文介绍了处理B2B中的传入传输请求的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用B2B示例代码在应用程序中处理传入的传输请求。

在我的应用程序中,我在通信器和B1之间建立了呼叫,用B2回溯2.
通信器向B1发送转移请求以转移呼叫。

我在B2B中注册并实施了TransferReceived事件,如下所示:


Hi,
I'm trying to handle an incoming transfer request in an application using the B2B sample code.

I have an established call between a communicator and B1 in my application, which is back2backed with B2.
The communicator sends a transfer request to B1 to transfer the call.

I registered and implemented the TransferReceived event in B2B as follows:

void Call1_TransferReceived(object sender, AudioVideoCallTransferReceivedEventArgs e)
{
    UnRegisterCall1Events();  // Avoid hangup of Call2 after transfer
    AudioVideoCall newCall = e.Accept(null);
    newCall.BeginEstablish(Call1EstablishComplete, newCall);
}



在newCall成功建立之后,我最终得到两个"无关"的呼叫:呼叫2仍处于保持状态,新呼叫不属于B2B。

如何回拨新呼叫和呼叫2?呼叫2应该被置于保持状态并与新呼叫连接。
新呼叫应以某种方式替换断开的呼叫1。

任何帮助将不胜感激。

谢谢,
罗恩


After the newCall is successfully established, I end up with two "unrelated" calls: Call2 still on hold, and the new call which is not part of the B2B.

How can I back2back the new call and Call2? Call2 should be put out of hold and connected with the new call.
The new call should somehow replace the disconnected Call1.

Any help will be greatly appreciated.

Thanks,
Ron

推荐答案

嗨罗恩,          要满足您的方案,您不应在事件处理程序中建立newCall。相反,您应该保存此调用实例并在B2调用上启动自转移操作。现在你可以将这个新的B2调用与你保存的newCall挂钩作为BackToBack。您可能需要查看如果要查看AcdCustomerSession(OnMcuTransferComplete)中的代码路径以查看自我传输的示例。

        如果您需要更多帮助,请与我联系。

感谢
adarsh 
Hi Ron,
          To meet your scenario, you should not establish newCall in event handler. Instead you should save this call instance and start a self transfer operation on B2 call. Now you can hook this new B2 call with your saved newCall as BackToBack. You may want to look at the If you want look at the code path in AcdCustomerSession (OnMcuTransferComplete) to see example of self transfer.

         Let me know if you need more help in this.

thanks
adarsh 


这篇关于处理B2B中的传入传输请求的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆