|
|
@@ -349,7 +349,7 @@ public class SIPCommander implements ISIPCommander {
|
|
|
// content.append("f=v/2/5/25/1/4000a/1/8/1" + "\r\n"); // 未发现支持此特性的设备
|
|
|
|
|
|
|
|
|
-
|
|
|
+ logger.info("xjw请求播流参数{}",content);
|
|
|
Request request = headerProvider.createInviteRequest(device, channel.getChannelId(), content.toString(), SipUtils.getNewViaTag(), SipUtils.getNewFromTag(), null, ssrcInfo.getSsrc(),sipSender.getNewCallIdHeader(sipLayer.getLocalIp(device.getLocalIp()),device.getTransport()));
|
|
|
sipSender.transmitRequest(sipLayer.getLocalIp(device.getLocalIp()), request, (e -> {
|
|
|
streamSession.remove(device.getDeviceId(), channel.getChannelId(), ssrcInfo.getStream());
|
|
|
@@ -363,6 +363,7 @@ public class SIPCommander implements ISIPCommander {
|
|
|
InviteSessionType.PLAY);
|
|
|
okEvent.response(e);
|
|
|
});
|
|
|
+ logger.info("xjw请求播流完成");
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
@@ -698,8 +699,8 @@ public class SIPCommander implements ISIPCommander {
|
|
|
*
|
|
|
* @param device 视频设备
|
|
|
*/
|
|
|
- @Override
|
|
|
- public void audioBroadcastCmd(Device device, String channelId, SipSubscribe.Event okEvent, SipSubscribe.Event errorEvent) throws InvalidArgumentException, SipException, ParseException {
|
|
|
+ @Override
|
|
|
+ public void audioBroadcastCmd(Device device, String channelId, SipSubscribe.Event okEvent, SipSubscribe.Event errorEvent) throws InvalidArgumentException, SipException, ParseException {
|
|
|
StringBuffer broadcastXml = new StringBuffer(200);
|
|
|
String charset = device.getCharset();
|
|
|
broadcastXml.append("<?xml version=\"1.0\" encoding=\"" + charset + "\"?>\r\n");
|