fix
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7066 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
1e539ce73e
commit
27a2b6ee44
|
@ -153,11 +153,12 @@ SWITCH_STANDARD_APP(bcast_function)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ready == SEND_TYPE_RTP) {
|
if (ready == SEND_TYPE_RTP) {
|
||||||
|
switch_find_local_ip(guess_ip, sizeof(guess_ip), AF_INET);
|
||||||
if (!(rtp_port = switch_rtp_request_port(guess_ip))) {
|
if (!(rtp_port = switch_rtp_request_port(guess_ip))) {
|
||||||
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "RTP Port Error\n");
|
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "RTP Port Error\n");
|
||||||
goto fail;
|
goto fail;
|
||||||
}
|
}
|
||||||
switch_find_local_ip(guess_ip, sizeof(guess_ip), AF_INET);
|
|
||||||
rtp_session = switch_rtp_new(guess_ip,
|
rtp_session = switch_rtp_new(guess_ip,
|
||||||
rtp_port,
|
rtp_port,
|
||||||
mcast_ip,
|
mcast_ip,
|
||||||
|
|
Loading…
Reference in New Issue