完善 byeSubscribe

This commit is contained in:
shikong 2024-01-08 00:01:01 +08:00
parent 31f1ed957a
commit c5a1ae8866

View File

@ -355,7 +355,7 @@ public class PlayService {
@SneakyThrows
@Override
public void onComplete() {
if(Objects.equals(request.getMethod(), Request.BYE)){
if(request != null && Objects.equals(request.getMethod(), Request.BYE)){
Response byeResponse = InviteResponseBuilder.builder().build().createByeResponse(request, SipUtil.nanoId());
provider.sendResponse(byeResponse);
} else {