0

当有人呼叫“我”开始视频通话时,有没有办法自动接受使用 C# Api 编程的呼叫?

使用 API 发起视频通话很简单:

var contactArray = new ArrayList();
contactArray.Add("abc@def.local");
object[] sipUris = new object[contactArray.Count];
int currentObject = 0;
foreach (object contactObject in contactArray)
{
    sipUris[currentObject] = contactObject;
    currentObject++;
}
var communicator = new Messenger();
communicator.OnIMWindowCreated += new DMessengerEvents_OnIMWindowCreatedEventHandler(communicator_OnIMWindowCreated);
IMessengerAdvanced msgrAdv = communicator as CommunicatorAPI.IMessengerAdvanced;
if (msgrAdv != null)
{
    try
    {
        object obj = msgrAdv.StartConversation(CommunicatorAPI.CONVERSATION_TYPE.CONVERSATION_TYPE_VIDEO, sipUris, null, "Conference Wall CZ - Conversation", "1", null);
    }
    catch (COMException ex)
    {
        Console.WriteLine(ex.Message);
    }
}

但另一方面,我想自动接受这个电话....

4

1 回答 1

1

据我所知,OC 不可能,大概是出于安全原因。我最终做的是让远程机器人给我打电话,然后我接听。因此,我将“开始视频”与我有服务收听的信使帐户聊天。该服务打电话给我,然后我手动接听。

于 2011-05-05T23:49:08.050 回答