本文介绍了RCC使用OCS Automation API调用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



推荐答案

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调用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-22 13:53