mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-10-20 18:24:13 +00:00
add rtp port allocator
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6658 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
1 parent
4968e0f6a1
commit
efb1b62938
9 files changed
+194
-50
No files matched your search
@@ -153,7 +153,10 @@ SWITCH_STANDARD_APP(bcast_function)
|
||||
}
|
||||
|
||||
if (ready == SEND_TYPE_RTP) {
|
||||
rtp_port = switch_rtp_request_port();
|
||||
if (!(rtp_port = switch_rtp_request_port(guess_ip))) {
|
||||
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "RTP Port Error\n");
|
||||
goto fail;
|
||||
}
|
||||
switch_find_local_ip(guess_ip, sizeof(guess_ip), AF_INET);
|
||||
rtp_session = switch_rtp_new(guess_ip,
|
||||
rtp_port,
|
||||
|
||||
Reference in new issue
Block a user