createTryingInviteResponse

This commit is contained in:
shikong 2023-09-30 16:49:16 +08:00
parent f47fe2b10a
commit 563fb03ea3
2 changed files with 6 additions and 0 deletions

View File

@ -54,4 +54,8 @@ public class InviteResponseBuilder implements InviteBuilder {
response,
SipBuilder.createContactHeader(sipResponse.getFromHeader().getAddress()));
}
public Response createTryingInviteResponse(Request request){
return SipResponseBuilder.createResponse(Response.TRYING,request);
}
}

View File

@ -94,6 +94,8 @@ public class RequestTest {
// 下载请求
Request downloadInviteRequest = inviteRequestBuilder.createDownloadInviteRequest(callId, 1, localId, receiveRtp, receiveRtpPort, playBackSsrc, MediaStreamMode.TCP_ACTIVE,startTime,endTime,4.0);
log.info("\n{}", downloadInviteRequest);
Response tryingInviteResponse = inviteResponseBuilder.createTryingInviteResponse(downloadInviteRequest);
log.info("\n{}", tryingInviteResponse);
inviteResponse = inviteResponseBuilder.createInviteResponse(downloadInviteRequest, senderRtp, senderRtpPort, SipUtil.nanoId());
log.info("\n{}", inviteResponse);
}