|
|
|
@ -54,15 +54,12 @@ public class CtiCallReq {
|
|
|
|
|
public Boolean stopReq(TelephoneCallStopDTO telephoneCallStopDTO) {
|
|
|
|
|
JSONObject json = new JSONObject();
|
|
|
|
|
json.putOpt("reqId", telephoneCallStopDTO.getCallId());
|
|
|
|
|
json.putOpt("callId", telephoneCallStopDTO.getSessionid());
|
|
|
|
|
json.putOpt("caller", telephoneCallStopDTO.getCaller());
|
|
|
|
|
json.putOpt("orgCode", orgCode);
|
|
|
|
|
json.putOpt("action", "1001");
|
|
|
|
|
HttpResponse httpResponse = HttpRequest.post(reqUrl).body(JSONUtil.toJsonPrettyStr(json)).execute();
|
|
|
|
|
log.info("请求挂断,session={},{}", telephoneCallStopDTO.getSessionid(), httpResponse.body());
|
|
|
|
|
if (httpResponse.isOk()) {
|
|
|
|
|
return Boolean.TRUE;
|
|
|
|
|
}
|
|
|
|
|
return Boolean.FALSE;
|
|
|
|
|
String httpResponse = sendCallReq(JSONUtil.toJsonPrettyStr(json), reqUrl).body();
|
|
|
|
|
CtiCallResponse ctiCallResponse = JSONUtil.toBean(httpResponse, CtiCallResponse.class);
|
|
|
|
|
return ctiCallResponse.getResult();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public Boolean setReq(String callBackUrl, String notifyUrl) {
|
|
|
|
|