|
|
@@ -7,10 +7,6 @@ import com.genersoft.iot.vmp.conf.UserSetting;
|
|
|
import com.genersoft.iot.vmp.conf.exception.SsrcTransactionNotFoundException;
|
|
|
import com.genersoft.iot.vmp.gb28181.SipLayer;
|
|
|
import com.genersoft.iot.vmp.gb28181.bean.*;
|
|
|
-import com.genersoft.iot.vmp.gb28181.bean.Device;
|
|
|
-import com.genersoft.iot.vmp.gb28181.bean.DeviceAlarm;
|
|
|
-import com.genersoft.iot.vmp.gb28181.bean.DeviceChannel;
|
|
|
-import com.genersoft.iot.vmp.gb28181.bean.SsrcTransaction;
|
|
|
import com.genersoft.iot.vmp.gb28181.event.SipSubscribe;
|
|
|
import com.genersoft.iot.vmp.gb28181.session.VideoStreamSessionManager;
|
|
|
import com.genersoft.iot.vmp.gb28181.transmit.SIPSender;
|
|
|
@@ -44,7 +40,6 @@ import javax.sip.SipFactory;
|
|
|
import javax.sip.header.CallIdHeader;
|
|
|
import javax.sip.message.Request;
|
|
|
import java.text.ParseException;
|
|
|
-import java.util.ArrayList;
|
|
|
import java.util.List;
|
|
|
|
|
|
/**
|
|
|
@@ -1249,6 +1244,8 @@ public class SIPCommander implements ISIPCommander {
|
|
|
subscribePostitionXml.append("<DeviceID>" + device.getDeviceId() + "</DeviceID>\r\n");
|
|
|
if (device.getSubscribeCycleForMobilePosition() > 0) {
|
|
|
subscribePostitionXml.append("<Interval>" + device.getMobilePositionSubmissionInterval() + "</Interval>\r\n");
|
|
|
+ }else {
|
|
|
+ subscribePostitionXml.append("<Interval>5</Interval>\r\n");
|
|
|
}
|
|
|
subscribePostitionXml.append("</Query>\r\n");
|
|
|
|