mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-03-13 12:40:17 +00:00
FS-5774 --resolve
This commit is contained in:
parent
ce4cfc97c4
commit
8def066077
@ -72,7 +72,6 @@
|
|||||||
|
|
||||||
static switch_port_t START_PORT = RTP_START_PORT;
|
static switch_port_t START_PORT = RTP_START_PORT;
|
||||||
static switch_port_t END_PORT = RTP_END_PORT;
|
static switch_port_t END_PORT = RTP_END_PORT;
|
||||||
static switch_port_t NEXT_PORT = RTP_START_PORT;
|
|
||||||
static switch_mutex_t *port_lock = NULL;
|
static switch_mutex_t *port_lock = NULL;
|
||||||
static void do_flush(switch_rtp_t *rtp_session, int force);
|
static void do_flush(switch_rtp_t *rtp_session, int force);
|
||||||
|
|
||||||
@ -1764,13 +1763,7 @@ SWITCH_DECLARE(switch_port_t) switch_rtp_set_start_port(switch_port_t port)
|
|||||||
if (port_lock) {
|
if (port_lock) {
|
||||||
switch_mutex_lock(port_lock);
|
switch_mutex_lock(port_lock);
|
||||||
}
|
}
|
||||||
if (NEXT_PORT == START_PORT) {
|
|
||||||
NEXT_PORT = port;
|
|
||||||
}
|
|
||||||
START_PORT = port;
|
START_PORT = port;
|
||||||
if (NEXT_PORT < START_PORT) {
|
|
||||||
NEXT_PORT = START_PORT;
|
|
||||||
}
|
|
||||||
if (port_lock) {
|
if (port_lock) {
|
||||||
switch_mutex_unlock(port_lock);
|
switch_mutex_unlock(port_lock);
|
||||||
}
|
}
|
||||||
@ -1785,9 +1778,6 @@ SWITCH_DECLARE(switch_port_t) switch_rtp_set_end_port(switch_port_t port)
|
|||||||
switch_mutex_lock(port_lock);
|
switch_mutex_lock(port_lock);
|
||||||
}
|
}
|
||||||
END_PORT = port;
|
END_PORT = port;
|
||||||
if (NEXT_PORT > END_PORT) {
|
|
||||||
NEXT_PORT = START_PORT;
|
|
||||||
}
|
|
||||||
if (port_lock) {
|
if (port_lock) {
|
||||||
switch_mutex_unlock(port_lock);
|
switch_mutex_unlock(port_lock);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user