- static async Task SendWisperApi(string state, string agent_number)
- {
- try
- {
- string url = String.Format("/Home/CallMonitorApi");
- var client = new RestClient("192.168.0.133");
- var request = new RestRequest(url, Method.Post);
- request.AddParameter("state", state);
- request.AddParameter("agent_number", agent_number);
- RestResponse response = await client.ExecuteAsync(request);
- catch (Exception ex)
- {
- WriteLog("Failed and got error: " + ex.Message);
- }
- }
- SendWisperApi("established", e.DeviceNumber);--- establish
Recent Pastes