old mode 100644
new mode 100755
| | |
| | | import com.genersoft.iot.vmp.gb28181.transmit.callback.DeferredResultHolder; |
| | | import com.genersoft.iot.vmp.gb28181.transmit.callback.RequestMessage; |
| | | import com.genersoft.iot.vmp.gb28181.transmit.cmd.impl.SIPCommander; |
| | | import com.genersoft.iot.vmp.media.zlm.ZLMRTPServerFactory; |
| | | import com.genersoft.iot.vmp.service.IInviteStreamService; |
| | | import com.genersoft.iot.vmp.service.IPlayService; |
| | | import com.genersoft.iot.vmp.service.bean.InviteErrorCode; |
| | | import com.genersoft.iot.vmp.storager.IRedisCatchStorage; |
| | | import com.genersoft.iot.vmp.storager.IVideoManagerStorage; |
| | | import com.genersoft.iot.vmp.vmanager.bean.ErrorCode; |
| | | import com.genersoft.iot.vmp.vmanager.bean.StreamContent; |
| | |
| | | import javax.servlet.http.HttpServletRequest; |
| | | import javax.sip.InvalidArgumentException; |
| | | import javax.sip.SipException; |
| | | import java.net.MalformedURLException; |
| | | import java.net.URL; |
| | | import java.text.ParseException; |
| | | import java.util.UUID; |
| | | |
| | |
| | | private SIPCommander cmder; |
| | | |
| | | @Autowired |
| | | private ZLMRTPServerFactory zlmrtpServerFactory; |
| | | |
| | | @Autowired |
| | | private IVideoManagerStorage storager; |
| | | |
| | | @Autowired |
| | | private IRedisCatchStorage redisCatchStorage; |
| | | |
| | | @Autowired |
| | | private IInviteStreamService inviteStreamService; |
| | |
| | | if (data != null) { |
| | | StreamInfo streamInfo = (StreamInfo)data; |
| | | if (userSetting.getUseSourceIpAsStreamIp()) { |
| | | streamInfo.channgeStreamIp(request.getLocalAddr()); |
| | | streamInfo=streamInfo.clone();//深拷贝 |
| | | String host; |
| | | try { |
| | | URL url=new URL(request.getRequestURL().toString()); |
| | | host=url.getHost(); |
| | | } catch (MalformedURLException e) { |
| | | host=request.getLocalAddr(); |
| | | } |
| | | streamInfo.channgeStreamIp(host); |
| | | } |
| | | wvpResult.setData(new StreamContent(streamInfo)); |
| | | } |