0
當有人呼叫'我'開始視頻呼叫時,是否有辦法自動接受使用C#Api編程的呼叫?Office Communicator使用C#API自動接受呼叫
開始與API視頻通話很簡單:
var contactArray = new ArrayList();
contactArray.Add("[email protected]");
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);
}
}
但在另一邊,我要自動接受此呼叫....
朋友,我有同樣的疑問。你有東西? – 2010-10-28 16:48:45
我還沒找到解決這個問題的方法。希望有人有解決方案,並會回答我的問題。 – Dennis 2010-11-01 10:20:34
你解決了這個問題嗎?我會嘗試使用一些Windows API。 http://www.pinvoke.net/index.aspx – 2010-11-05 10:39:16