mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-08-13 17:38:59 +00:00
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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user