|
@ -93,8 +93,12 @@ public class MediaConfig{ |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
public String getSipIp() { |
|
|
public String getSipIp() { |
|
|
|
|
|
if (sipIp == null) { |
|
|
|
|
|
return this.ip; |
|
|
|
|
|
}else { |
|
|
return sipIp; |
|
|
return sipIp; |
|
|
} |
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
public int getHttpPort() { |
|
|
public int getHttpPort() { |
|
|
return httpPort; |
|
|
return httpPort; |
|
@ -183,13 +187,13 @@ public class MediaConfig{ |
|
|
mediaServerItem.setIp(ip); |
|
|
mediaServerItem.setIp(ip); |
|
|
mediaServerItem.setDefaultServer(true); |
|
|
mediaServerItem.setDefaultServer(true); |
|
|
mediaServerItem.setHookIp(getHookIp()); |
|
|
mediaServerItem.setHookIp(getHookIp()); |
|
|
mediaServerItem.setSdpIp(sdpIp); |
|
|
mediaServerItem.setSdpIp(getSdpIp()); |
|
|
mediaServerItem.setStreamIp(streamIp); |
|
|
mediaServerItem.setStreamIp(getStreamIp()); |
|
|
mediaServerItem.setHttpPort(httpPort); |
|
|
mediaServerItem.setHttpPort(httpPort); |
|
|
mediaServerItem.setHttpSSlPort(httpSSlPort); |
|
|
mediaServerItem.setHttpSSlPort(httpSSlPort); |
|
|
mediaServerItem.setRtmpPort(rtmpPort); |
|
|
mediaServerItem.setRtmpPort(rtmpPort); |
|
|
mediaServerItem.setRtmpSSlPort(rtmpSSlPort); |
|
|
mediaServerItem.setRtmpSSlPort(rtmpSSlPort); |
|
|
mediaServerItem.setRtpProxyPort(rtpProxyPort); |
|
|
mediaServerItem.setRtpProxyPort(getRtpProxyPort()); |
|
|
mediaServerItem.setRtspPort(rtspPort); |
|
|
mediaServerItem.setRtspPort(rtspPort); |
|
|
mediaServerItem.setRtspSSLPort(rtspSSLPort); |
|
|
mediaServerItem.setRtspSSLPort(rtspSSLPort); |
|
|
mediaServerItem.setAutoConfig(autoConfig); |
|
|
mediaServerItem.setAutoConfig(autoConfig); |
|
|