createTryingInviteResponse
This commit is contained in:
parent
f47fe2b10a
commit
563fb03ea3
@ -54,4 +54,8 @@ public class InviteResponseBuilder implements InviteBuilder {
|
|||||||
response,
|
response,
|
||||||
SipBuilder.createContactHeader(sipResponse.getFromHeader().getAddress()));
|
SipBuilder.createContactHeader(sipResponse.getFromHeader().getAddress()));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public Response createTryingInviteResponse(Request request){
|
||||||
|
return SipResponseBuilder.createResponse(Response.TRYING,request);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -94,6 +94,8 @@ public class RequestTest {
|
|||||||
// 下载请求
|
// 下载请求
|
||||||
Request downloadInviteRequest = inviteRequestBuilder.createDownloadInviteRequest(callId, 1, localId, receiveRtp, receiveRtpPort, playBackSsrc, MediaStreamMode.TCP_ACTIVE,startTime,endTime,4.0);
|
Request downloadInviteRequest = inviteRequestBuilder.createDownloadInviteRequest(callId, 1, localId, receiveRtp, receiveRtpPort, playBackSsrc, MediaStreamMode.TCP_ACTIVE,startTime,endTime,4.0);
|
||||||
log.info("\n{}", downloadInviteRequest);
|
log.info("\n{}", downloadInviteRequest);
|
||||||
|
Response tryingInviteResponse = inviteResponseBuilder.createTryingInviteResponse(downloadInviteRequest);
|
||||||
|
log.info("\n{}", tryingInviteResponse);
|
||||||
inviteResponse = inviteResponseBuilder.createInviteResponse(downloadInviteRequest, senderRtp, senderRtpPort, SipUtil.nanoId());
|
inviteResponse = inviteResponseBuilder.createInviteResponse(downloadInviteRequest, senderRtp, senderRtpPort, SipUtil.nanoId());
|
||||||
log.info("\n{}", inviteResponse);
|
log.info("\n{}", inviteResponse);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user