Merge pull request #687 in FS/freeswitch from freetdm_patch to master

* commit '320d5f2015976fed9ca282dfeeb2bd3e977e6f76':
  Applied the Sangoma patch to FS version 1.2 in order to port to FS v1.6+
This commit is contained in:
Mike Jerris
2016-04-04 13:51:09 -05:00
10 changed files with 98 additions and 0 deletions

View File

@@ -3281,6 +3281,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