修复消息发送失败导致后续次通道无法点播的bug

This commit is contained in:
648540858
2023-04-21 14:18:52 +08:00
parent d6262acf6a
commit 5c3c3e6a4c
4 changed files with 12 additions and 9 deletions

View File

@@ -46,8 +46,7 @@ public class SIPSender {
transmitRequest(ip, message, errorEvent, null);
}
public void transmitRequest(String ip, Message message, SipSubscribe.Event errorEvent, SipSubscribe.Event okEvent) throws SipException, ParseException {
try {
public void transmitRequest(String ip, Message message, SipSubscribe.Event errorEvent, SipSubscribe.Event okEvent) throws SipException {
ViaHeader viaHeader = (ViaHeader)message.getHeader(ViaHeader.NAME);
String transport = "UDP";
if (viaHeader == null) {
@@ -104,9 +103,6 @@ public class SIPSender {
sipProvider.sendResponse((Response)message);
}
}
} finally {
// logger.info("[SEND]:SUCCESS:{}", message);
}
}
public CallIdHeader getNewCallIdHeader(String ip, String transport){