/// <summary> /// 收到呼叫事件回调函数 /// </summary> /// <param name="para"></param> void UCAVSessAdded(STAudioVideoParam para) { ////modify by jinyeqing 2015/5/19 由于锁屏或者呼叫产生奔溃时导致的 SingletonObj.LoginInfo.LyncName为空,所以加个判断条件,if和else //if (SingletonObj.LoginInfo.LyncName != null || SingletonObj.LoginInfo.LyncName != "") //{ LogManager.SystemLog.Debug(string.Format("callerAcc = {0}", para.callerAcc)); LogManager.SystemLog.Debug(string.Format("LyncName = {0}", SingletonObj.LoginInfo.LyncName)); string strBuffer = para.callerAcc; string str = ""; if (para.AccountType == 0) { str = StringHelper.GetLyncDomainString(SingletonObj.LoginInfo.LyncName); } strBuffer = strBuffer + str; Dispatcher.BeginInvoke(new Action(() => { receive = new WinCallReceive(this, strBuffer, para.isvideo_ == 1); //if (para.callMode == (int)MemberType.UC_IPPHONE)//iphones呼出来电时,不现实来电窗体 9/17 //{ // receive.Left = iReceiveLeftOff; //} if (para.isConference == 1) //来电是会议的时候,expander控件不可见,answer改为ConAnswer { receive.expander.Visibility = Visibility.Hidden; receive.btnAnswer.Content = StringHelper.FindLanguageResource("ConAnswer"); } receive.Show(); })); //} //else //{ // Dialog.Show(StringHelper.FindLanguageResource("PleaseLoginUCagain"), StringHelper.FindLanguageResource("error")); //} }
static void AVSessAddedCBMethod(ref STAudioVideoParam _avParam) { if (AVSessAdded != null) { AVSessAdded(_avParam); } }