当有人拨打“我”开始视频通话时,有没有办法自动接受使用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);
}
}
但另一方面我想自动接受这个电话....
答案 0 :(得分:1)
据我所知,尽管出于安全原因,OC不可能。我最终做的是让远程机器人给我打电话然后我回答。所以我将“开始视频”聊到了一个我收到服务的信使账号。那个服务打电话给我,然后我手动回答它。