mirror of
https://gitee.com/pan648540858/wvp-GB28181-pro.git
synced 2026-05-27 23:47:49 +08:00
Compare commits
3 Commits
6bc63e72fc
...
1e9f2a859a
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
1e9f2a859a | ||
|
|
60b1c687ea | ||
|
|
8e32f17e6e |
@ -59,7 +59,7 @@ services:
|
|||||||
networks:
|
networks:
|
||||||
- media-net
|
- media-net
|
||||||
ports:
|
ports:
|
||||||
#- "6080:80/tcp" # [播流]HTTP 安全考虑-非测试阶段需要注释掉,改为由nginx代理播流地址
|
- "80:80/tcp" # [播流]HTTP 安全考虑-非测试阶段需要注释掉,改为由nginx代理播流地址
|
||||||
#- "4443:443/tcp" # [播流]HTTPS 安全考虑-非测试阶段需要注释掉,改为由nginx代理播流地址
|
#- "4443:443/tcp" # [播流]HTTPS 安全考虑-非测试阶段需要注释掉,改为由nginx代理播流地址
|
||||||
- "${MediaRtmp:-10935}:${MediaRtmp:-10935}/tcp" # [收流]RTMP
|
- "${MediaRtmp:-10935}:${MediaRtmp:-10935}/tcp" # [收流]RTMP
|
||||||
- "${MediaRtmp:-10935}:${MediaRtmp:-10935}/udp" # [收流]RTMP
|
- "${MediaRtmp:-10935}:${MediaRtmp:-10935}/udp" # [收流]RTMP
|
||||||
|
|||||||
@ -13,6 +13,7 @@ import org.dom4j.DocumentException;
|
|||||||
import org.dom4j.Element;
|
import org.dom4j.Element;
|
||||||
import org.dom4j.io.SAXReader;
|
import org.dom4j.io.SAXReader;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.scheduling.annotation.Async;
|
||||||
import org.springframework.util.ObjectUtils;
|
import org.springframework.util.ObjectUtils;
|
||||||
|
|
||||||
import javax.sip.*;
|
import javax.sip.*;
|
||||||
@ -77,6 +78,11 @@ public abstract class SIPRequestProcessorParent {
|
|||||||
return responseAck(sipRequest, statusCode, null);
|
return responseAck(sipRequest, statusCode, null);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Async("taskExecutor")
|
||||||
|
public void responseAckAsync(SIPRequest sipRequest, int statusCode) throws SipException, InvalidArgumentException, ParseException {
|
||||||
|
responseAck(sipRequest, statusCode, null);
|
||||||
|
}
|
||||||
|
|
||||||
public SIPResponse responseAck(SIPRequest sipRequest, int statusCode, String msg) throws SipException, InvalidArgumentException, ParseException {
|
public SIPResponse responseAck(SIPRequest sipRequest, int statusCode, String msg) throws SipException, InvalidArgumentException, ParseException {
|
||||||
return responseAck(sipRequest, statusCode, msg, null);
|
return responseAck(sipRequest, statusCode, msg, null);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -96,7 +96,7 @@ public class KeepaliveNotifyMessageHandler extends SIPRequestProcessorParent imp
|
|||||||
RequestEvent evt = sipMsgInfo.getEvt();
|
RequestEvent evt = sipMsgInfo.getEvt();
|
||||||
// 回复200 OK
|
// 回复200 OK
|
||||||
try {
|
try {
|
||||||
responseAck((SIPRequest) evt.getRequest(), Response.OK);
|
responseAckAsync((SIPRequest) evt.getRequest(), Response.OK);
|
||||||
} catch (SipException | InvalidArgumentException | ParseException e) {
|
} catch (SipException | InvalidArgumentException | ParseException e) {
|
||||||
log.error("[命令发送失败] 心跳回复: {}", e.getMessage());
|
log.error("[命令发送失败] 心跳回复: {}", e.getMessage());
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user