Commit df11956c3c203434d3ef54955a502c466f1382dd
1 parent
83411ad1
取出错误配置
Showing
4 changed files
with
7 additions
and
5 deletions
src/main/java/com/genersoft/iot/vmp/conf/SipConfig.java
src/main/java/com/genersoft/iot/vmp/gb28181/SipLayer.java
| ... | ... | @@ -72,7 +72,7 @@ public class SipLayer implements SipListener { |
| 72 | 72 | private SipStack createSipStack() throws PeerUnavailableException { |
| 73 | 73 | Properties properties = new Properties(); |
| 74 | 74 | properties.setProperty("javax.sip.STACK_NAME", "GB28181_SIP"); |
| 75 | - properties.setProperty("javax.sip.IP_ADDRESS", sipConfig.getSipIp()); | |
| 75 | + properties.setProperty("javax.sip.IP_ADDRESS", sipConfig.getMonitorIp()); | |
| 76 | 76 | properties.setProperty("gov.nist.javax.sip.LOG_MESSAGE_CONTENT", "false"); |
| 77 | 77 | /** |
| 78 | 78 | * sip_server_log.log 和 sip_debug_log.log public static final int TRACE_NONE = | ... | ... |
src/main/java/com/genersoft/iot/vmp/storager/dao/DeviceChannelMapper.java
| ... | ... | @@ -16,10 +16,10 @@ public interface DeviceChannelMapper { |
| 16 | 16 | |
| 17 | 17 | @Insert("INSERT INTO device_channel (channelId, deviceId, name, manufacture, model, owner, civilCode, block, " + |
| 18 | 18 | "address, parental, parentId, safetyWay, registerWay, certNum, certifiable, errCode, secrecy, " + |
| 19 | - "ipAddress, port, password, PTZType, status, streamId) " + | |
| 19 | + "ipAddress, port, password, PTZType, status, streamId, longitude, latitude) " + | |
| 20 | 20 | "VALUES ('${channelId}', '${deviceId}', '${name}', '${manufacture}', '${model}', '${owner}', '${civilCode}', '${block}'," + |
| 21 | 21 | "'${address}', ${parental}, '${parentId}', ${safetyWay}, ${registerWay}, '${certNum}', ${certifiable}, ${errCode}, '${secrecy}', " + |
| 22 | - "'${ipAddress}', ${port}, '${password}', ${PTZType}, ${status}, '${streamId}')") | |
| 22 | + "'${ipAddress}', ${port}, '${password}', ${PTZType}, ${status}, '${streamId}'), ${longitude}, ${latitude}") | |
| 23 | 23 | int add(DeviceChannel channel); |
| 24 | 24 | |
| 25 | 25 | @Update(value = {" <script>" + |
| ... | ... | @@ -47,6 +47,8 @@ public interface DeviceChannelMapper { |
| 47 | 47 | "<if test=\"status != null\">, status='${status}'</if>" + |
| 48 | 48 | "<if test=\"streamId != null\">, streamId='${streamId}'</if>" + |
| 49 | 49 | "<if test=\"hasAudio != null\">, hasAudio=${hasAudio}</if>" + |
| 50 | + "<if test=\"longitude != null\">, longitude=${longitude}</if>" + | |
| 51 | + "<if test=\"latitude != null\">, latitude=${latitude}</if>" + | |
| 50 | 52 | "WHERE deviceId='${deviceId}' AND channelId='${channelId}'"+ |
| 51 | 53 | " </script>"}) |
| 52 | 54 | int update(DeviceChannel channel); | ... | ... |
src/main/resources/all-application.yml