mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-08-14 01:49:05 +00:00
Applied the Sangoma patch to FS version 1.2 in order to port to FS v1.6+
Sourced from: http://gitlab.sangoma.com/projects/CORE/repos/freetdm/browse/public_freeswitch/sangoma-FS-1.2.patch
This commit is contained in:
@@ -3275,6 +3275,28 @@ SWITCH_DECLARE(int) switch_stream_system(const char *cmd, switch_stream_handle_t
|
||||
|
||||
}
|
||||
|
||||
SWITCH_DECLARE(uint16_t) switch_core_get_rtp_port_range_start_port()
|
||||
{
|
||||
uint16_t start_port = 0;
|
||||
|
||||
/* By default pass rtp port range start value as zero in order to get actual
|
||||
* RTP port range start value as configured */
|
||||
start_port = (uint16_t)switch_rtp_set_start_port((switch_port_t)start_port);
|
||||
|
||||
return start_port;
|
||||
}
|
||||
|
||||
SWITCH_DECLARE(uint16_t) switch_core_get_rtp_port_range_end_port()
|
||||
{
|
||||
uint16_t end_port = 0;
|
||||
|
||||
/* By default pass rtp port range end value as zero in order to get actual
|
||||
* RTP port range end value as configured */
|
||||
end_port = (uint16_t)switch_rtp_set_end_port((switch_port_t)end_port);
|
||||
|
||||
return end_port;
|
||||
}
|
||||
|
||||
/* For Emacs:
|
||||
* Local Variables:
|
||||
* mode:c
|
||||
|
Reference in New Issue
Block a user