| | |
| | | Request request = null;
|
| | | if (streamInfo == null) return null;
|
| | | Dialog dialog = streamSession.getDialogByStream(streamInfo.getDeviceID(), streamInfo.getChannelId(), streamInfo.getStream());
|
| | | if (dialog == null) return null;
|
| | |
|
| | | SipURI requestLine = sipFactory.createAddressFactory().createSipURI(device.getDeviceId(),
|
| | | device.getHostAddress());
|
| | |
| | | "mediaServerId=#{mediaServerId}," + |
| | | "status=${status} " + |
| | | "WHERE app=#{app} AND stream=#{stream}") |
| | | int updateByallAndStream(GbStream gbStream); |
| | | int updateByAppAndStream(GbStream gbStream); |
| | | |
| | | @Update("UPDATE gb_stream " + |
| | | "SET app=#{app}," + |
| | |
| | | try { |
| | | if (streamProxyMapper.update(streamProxyItem) > 0) { |
| | | if (!StringUtils.isEmpty(streamProxyItem.getGbId())) { |
| | | if (gbStreamMapper.updateByallAndStream(streamProxyItem) > 0) { |
| | | if (gbStreamMapper.updateByAppAndStream(streamProxyItem) == 0) { |
| | | //事务回滚 |
| | | dataSourceTransactionManager.rollback(transactionStatus); |
| | | return false; |