rtp fix and some other misc stuff

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2266 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Anthony Minessale
2006-08-11 23:27:08 +00:00
parent 3b09338cee
commit 54ec8c1dd4
3 changed files with 10 additions and 7 deletions

View File

@@ -298,8 +298,8 @@ SWITCH_DECLARE(switch_port_t) switch_rtp_request_port(void)
switch_mutex_lock(port_lock);
port = NEXT_PORT;
NEXT_PORT += 2;
if (port > RTP_END_PORT) {
port = RTP_START_PORT;
if (NEXT_PORT > RTP_END_PORT) {
NEXT_PORT = RTP_START_PORT;
}
switch_mutex_unlock(port_lock);
return port;