|
|
@ -1,17 +1,17 @@ |
|
|
|
package com.genersoft.iot.vmp.gb28181.transmit.cmd.impl; |
|
|
|
|
|
|
|
import com.genersoft.iot.vmp.conf.SipConfig; |
|
|
|
import com.genersoft.iot.vmp.gb28181.bean.Device; |
|
|
|
//import com.genersoft.iot.vmp.conf.SipConfig;
|
|
|
|
//import com.genersoft.iot.vmp.gb28181.bean.Device;
|
|
|
|
import com.genersoft.iot.vmp.gb28181.bean.DeviceChannel; |
|
|
|
import com.genersoft.iot.vmp.gb28181.bean.ParentPlatform; |
|
|
|
import com.genersoft.iot.vmp.gb28181.bean.ParentPlatformCatch; |
|
|
|
import com.genersoft.iot.vmp.gb28181.event.SipSubscribe; |
|
|
|
import com.genersoft.iot.vmp.gb28181.session.VideoStreamSessionManager; |
|
|
|
//import com.genersoft.iot.vmp.gb28181.session.VideoStreamSessionManager;
|
|
|
|
import com.genersoft.iot.vmp.gb28181.transmit.cmd.ISIPCommanderForPlatform; |
|
|
|
import com.genersoft.iot.vmp.gb28181.transmit.cmd.SIPRequestHeaderPlarformProvider; |
|
|
|
import com.genersoft.iot.vmp.gb28181.transmit.cmd.SIPRequestHeaderProvider; |
|
|
|
//import com.genersoft.iot.vmp.gb28181.transmit.cmd.SIPRequestHeaderProvider;
|
|
|
|
import com.genersoft.iot.vmp.storager.IRedisCatchStorage; |
|
|
|
import com.genersoft.iot.vmp.storager.IVideoManagerStorager; |
|
|
|
//import com.genersoft.iot.vmp.storager.IVideoManagerStorager;
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
import org.springframework.beans.factory.annotation.Qualifier; |
|
|
|
import org.springframework.beans.factory.annotation.Value; |
|
|
@ -22,28 +22,26 @@ import javax.sip.*; |
|
|
|
import javax.sip.header.CallIdHeader; |
|
|
|
import javax.sip.header.WWWAuthenticateHeader; |
|
|
|
import javax.sip.message.Request; |
|
|
|
import java.nio.channels.Channel; |
|
|
|
import java.text.ParseException; |
|
|
|
import java.util.List; |
|
|
|
import java.util.UUID; |
|
|
|
|
|
|
|
@Component |
|
|
|
public class SIPCommanderFroPlatform implements ISIPCommanderForPlatform { |
|
|
|
|
|
|
|
@Autowired |
|
|
|
private SipConfig sipConfig; |
|
|
|
// @Autowired
|
|
|
|
// private SipConfig sipConfig;
|
|
|
|
|
|
|
|
@Autowired |
|
|
|
private SIPRequestHeaderProvider headerProvider; |
|
|
|
// @Autowired
|
|
|
|
// private SIPRequestHeaderProvider headerProvider;
|
|
|
|
|
|
|
|
@Autowired |
|
|
|
private SIPRequestHeaderPlarformProvider headerProviderPlarformProvider; |
|
|
|
|
|
|
|
@Autowired |
|
|
|
private VideoStreamSessionManager streamSession; |
|
|
|
// @Autowired
|
|
|
|
// private VideoStreamSessionManager streamSession;
|
|
|
|
|
|
|
|
@Autowired |
|
|
|
private IVideoManagerStorager storager; |
|
|
|
// @Autowired
|
|
|
|
// private IVideoManagerStorager storager;
|
|
|
|
|
|
|
|
@Autowired |
|
|
|
private IRedisCatchStorage redisCatchStorage; |
|
|
|