Dear Team, We are using the project xmsdemo (3584-XmsDemo_V 1.1.XMS2.1). We are able to read the event stream, but facing problem while receiving the call. We are not able to get response of reeving call (l_response = (HttpWebResponse)l_request.GetResponse();). Following is code. ublic int Answer() { HttpWebRequest l_request = XmsInterface.CreateRequest("PUT", "calls", this.CallId); m_call.answer = boolean_type.yes; m_call.answerSpecified = true; m_call.cpa = boolean_type.no; m_call.media = media_type.audio; m_call.accept = boolean_type.yes; m_call.dtmf_mode = dtmf_mode_option.inband; m_call.encryption = rtp_encryption_option.none; web_service l_ws = new web_service(); l_ws.Item = m_call as call; using (Stream l_requestStream = l_request.GetRequestStream()) { XmlSerializer x = new XmlSerializer(typeof(web_service)); x.Serialize(l_requestStream, l_ws); } Logger.Log(XmsInterface.RequestToString(l_request, l_ws), true); HttpWebResponse l_response = null; try { l_response = (HttpWebResponse)l_request.GetResponse(); } catch (Exception ex) { Logger.Log("ERROR: " + ex.Message, false); return -1; }
↧