GB28181:基于JAVA的Catalog目录获取[part4]
1、国标文件里面获取流的描述
QQ图片20210128113040.png
2、java组装SIP流请求信令
private void doResponseInvite(ResponseEvent responseEvent, AddressFactory addressFactory, MessageFactory messageFactory, HeaderFactory headerFactory, SipProvider sipProvider, Response response, CSeqHeader cSeqHeader) throws ParseException, SipException, InvalidArgumentException {
if (responseEvent.getResponse().getStatusCode()== Response.OK) {
log.info("收到INVITE的OK返回,组装发送ACK信令");
sendAckRequest(responseEvent,messageFactory,addressFactory, headerFactory, sipProvider, response);
} else {
log.info("异常的INVITE返回,返回编码:{}",responseEvent.getResponse().getStatusCode());
}
<