问题描述
推荐答案
MsgClass.OnIMWindowCreated += new CommunicatorAPI.DMessengerEvents_OnIMWindowCreatedEventHandler(MsgClass_OnIMWindowCreated);
void MsgClass_OnIMWindowCreated(object pIMWindow)
{
CommunicatorAPI.IMessengerConversationWndAdvanced conv;
conv = pIMWindow as CommunicatorAPI.IMessengerConversationWndAdvanced;
conv.Close();
}
private void button2_Click(object sender,EventArgs e){CommunicatorAPI.IMessengerAdvanced MsgAdvanced; MsgAdvanced =(CommunicatorAPI.IMessengerAdvanced)MsgClass; object [] sipUris = {" tel:14255551212"};尝试{MsgAdvanced.StartConversation(CommunicatorAPI.CONVERSATION_TYPE.CONVERSATION_TYPE_PHONE,sipUris,null," Title",null,null); } catch {//可能没有第三方通话控制}}
private void button2_Click(object sender, EventArgs e) { CommunicatorAPI.IMessengerAdvanced MsgAdvanced; MsgAdvanced = (CommunicatorAPI.IMessengerAdvanced)MsgClass; object[] sipUris = { "tel:14255551212"}; try { MsgAdvanced.StartConversation( CommunicatorAPI.CONVERSATION_TYPE.CONVERSATION_TYPE_PHONE, sipUris, null, "Title", null, null); } catch { // Probably no 3rd party call control available } }
这篇关于RCC使用OCS Automation API调用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!