mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-11-10 11:50:53 +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:
1 parent
3b09338cee
commit
54ec8c1dd4
3 files changed
+10
-7
No files matched your search
+2
-2
@@ -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