private void GetSysConfig(string mobile) { string postData = FetionTemplate.GetSystemConfigPostData(mobile); string configStr = HttpHelper.Post("http://nav.fetion.com.cn/nav/getsystemconfig.aspx", postData); if (!string.IsNullOrEmpty(configStr)) { this.user.CreateSipSysConfig(configStr); } }
private void SingInSipcStep1() { string sendData = FetionTemplate.RegesterSIPCStep1(this.user.Uri.Sid.ToString()); string[] addrStrArr = this.user.SysConfig.SipcProxy.Split(':'); CreateConnection(addrStrArr[0], addrStrArr[1]); //cn值是随机的,可以自己创建. SipMessage step1data = PacketFactory.RegSipcStep1("d62aa14003cb0de2f252afa755df43cf"); this.convRegSipcStep1 = this.convMgr.Create(step1data, true); this.convRegSipcStep1.MsgRcv += new EventHandler <ConversationArgs>(this.ConvRegSipcStep1_OnMsgRcv); }