视频下载结束时主动发送 bye

callId 修正
This commit is contained in:
shikong 2023-09-25 11:17:15 +08:00
parent 91218eb59d
commit cb41892255

View File

@ -102,7 +102,7 @@ public class DeviceProxyService {
String transport = request.getTopmostViaHeader().getTransport(); String transport = request.getTopmostViaHeader().getTransport();
long seqNumber = request.getCSeq().getSeqNumber() + 1; long seqNumber = request.getCSeq().getSeqNumber() + 1;
SipProvider provider = sender.getProvider(transport, ip); SipProvider provider = sender.getProvider(transport, ip);
CallIdHeader newCallId = provider.getNewCallId(); CallIdHeader newCallId = request.getCallId();
Request byeRequest = SipRequestBuilder.createByeRequest(targetIp, targetPort, seqNumber, targetId, SipUtil.generateFromTag(), null, newCallId.getCallId()); Request byeRequest = SipRequestBuilder.createByeRequest(targetIp, targetPort, seqNumber, targetId, SipUtil.generateFromTag(), null, newCallId.getCallId());
try{ try{
provider.sendRequest(byeRequest); provider.sendRequest(byeRequest);