补充上一个修复的内容
parent
5c3c3e6a4c
commit
22deb206ba
|
@ -1,27 +0,0 @@
|
||||||
package com.genersoft.iot.vmp.gb28181.bean;
|
|
||||||
|
|
||||||
import javax.sip.Dialog;
|
|
||||||
import java.util.EventObject;
|
|
||||||
|
|
||||||
public class CmdSendFailEvent extends EventObject {
|
|
||||||
|
|
||||||
private String callId;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Constructs a prototypical Event.
|
|
||||||
*
|
|
||||||
* @param dialog
|
|
||||||
* @throws IllegalArgumentException if source is null.
|
|
||||||
*/
|
|
||||||
public CmdSendFailEvent(Dialog dialog) {
|
|
||||||
super(dialog);
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getCallId() {
|
|
||||||
return callId;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setCallId(String callId) {
|
|
||||||
this.callId = callId;
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -649,7 +649,9 @@ public class PlayServiceImpl implements IPlayService {
|
||||||
} catch (InvalidArgumentException | SipException | ParseException e) {
|
} catch (InvalidArgumentException | SipException | ParseException e) {
|
||||||
logger.error("[命令发送失败] 回放: {}", e.getMessage());
|
logger.error("[命令发送失败] 回放: {}", e.getMessage());
|
||||||
|
|
||||||
SipSubscribe.EventResult eventResult = new SipSubscribe.EventResult(new CmdSendFailEvent(null));
|
SipSubscribe.EventResult eventResult = new SipSubscribe.EventResult();
|
||||||
|
eventResult.type = SipSubscribe.EventResultType.cmdSendFailEvent;
|
||||||
|
eventResult.statusCode = -1;
|
||||||
eventResult.msg = "命令发送失败";
|
eventResult.msg = "命令发送失败";
|
||||||
errorEvent.response(eventResult);
|
errorEvent.response(eventResult);
|
||||||
}
|
}
|
||||||
|
@ -807,7 +809,9 @@ public class PlayServiceImpl implements IPlayService {
|
||||||
} catch (InvalidArgumentException | SipException | ParseException e) {
|
} catch (InvalidArgumentException | SipException | ParseException e) {
|
||||||
logger.error("[命令发送失败] 录像下载: {}", e.getMessage());
|
logger.error("[命令发送失败] 录像下载: {}", e.getMessage());
|
||||||
|
|
||||||
SipSubscribe.EventResult eventResult = new SipSubscribe.EventResult(new CmdSendFailEvent(null));
|
SipSubscribe.EventResult eventResult = new SipSubscribe.EventResult();
|
||||||
|
eventResult.type = SipSubscribe.EventResultType.cmdSendFailEvent;
|
||||||
|
eventResult.statusCode = -1;
|
||||||
eventResult.msg = "命令发送失败";
|
eventResult.msg = "命令发送失败";
|
||||||
errorEvent.response(eventResult);
|
errorEvent.response(eventResult);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue