Open hudt opened 4 years ago
SipLayer.java
public int getPort(boolean isTcp){ int resultPort = 0; if(PortUtils.isUsing(isTcp, mStreamPort)){ resultPort = PortUtils.findAvailablePortRange(STREAM_MEDIA_START_PORT, STREAM_MEDIA_END_PORT, isTcp); } resultPort = mStreamPort; mStreamPort++; if(mStreamPort>STREAM_MEDIA_END_PORT){ mStreamPort = STREAM_MEDIA_START_PORT; } return resultPort; }
resultPort = mStreamPort;这一句应该被else括起来吧,不然前面的if里的代码就没意义了
resultPort = mStreamPort;
SipLayer.java
resultPort = mStreamPort;
这一句应该被else括起来吧,不然前面的if里的代码就没意义了