예제 #1
0
        //删除SIP号码
        private void btn_delSipNumber_Click(object sender, EventArgs e)
        {
            try
            {
                DelSipNumber _info = new DelSipNumber();
                _info.userId = this.txt_sipUser.Text.Trim();

                delSipNumber info = new delSipNumber();
                info.gwIp        = this.txt_gwIp.Text.Trim();
                info.number      = this.txt_SipNumber.Text.Trim();
                info.deleteSipUe = this.cbx_deleteSipUe.Text.Trim();

                _info.sip = info;

                CommentResponse result = ecBusiness.DelSipNumber(_info);
                if (result != null)
                {
                    this.txt_ResultCode.Text = result.resultCode;
                    this.txt_Content.Text    = result.resultContext;
                    this.txt_ResultInfo.Text = eSDKServiceHelper.GetJsonString(result);
                    if (result.resultCode == "0")
                    {
                        this.WriteLog("call del sip number success.");
                    }
                    else
                    {
                        this.WriteLog("call del sip number failed," + result.resultContext);
                    }
                }
                else
                {
                    this.WriteLog("call del sip number fail,response is null.");
                }
            }
            catch (Exception ex)
            {
                this.WriteLog("call del sip number fail," + ex.Message);
            }
        }
예제 #2
0
        public static CommentResponse delSipNumber(DelSipNumber info)
        {
            CommentResponse result = eSDKServiceHelper.CallService <CommentResponse>(ECConstUri.delSip_uri, HttpMethod.POST, info);

            return(result);
        }
예제 #3
0
        /// <summary>
        /// 删除账户
        /// </summary>
        /// <param name="info"></param>
        /// <returns></returns>
        public CommentResponse DelSipNumber(DelSipNumber info)
        {
            CommentResponse result = eSDKServiceHelper.delSipNumber(info);

            return(result);
        }