fix build
This commit is contained in:
parent
69c947f9e8
commit
ae6b75a0c2
|
@ -1485,6 +1485,8 @@ SWITCH_DECLARE(switch_status_t) switch_rtp_set_local_address(switch_rtp_t *rtp_s
|
||||||
|
|
||||||
|
|
||||||
if ((j = atoi(host)) && j > 223 && j < 240) { /* mcast */
|
if ((j = atoi(host)) && j > 223 && j < 240) { /* mcast */
|
||||||
|
switch_core_session_t *session = switch_core_memory_pool_get_data(rtp_session->pool, "__session");
|
||||||
|
|
||||||
if (switch_mcast_interface(new_sock, rtp_session->local_addr) != SWITCH_STATUS_SUCCESS) {
|
if (switch_mcast_interface(new_sock, rtp_session->local_addr) != SWITCH_STATUS_SUCCESS) {
|
||||||
*err = "Multicast Socket interface Error";
|
*err = "Multicast Socket interface Error";
|
||||||
goto done;
|
goto done;
|
||||||
|
@ -1495,8 +1497,8 @@ SWITCH_DECLARE(switch_status_t) switch_rtp_set_local_address(switch_rtp_t *rtp_s
|
||||||
goto done;
|
goto done;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (rtp_session->session) {
|
if (session) {
|
||||||
switch_channel_t *channel = switch_core_session_get_channel(rtp_session->session);
|
switch_channel_t *channel = switch_core_session_get_channel(session);
|
||||||
const char *var;
|
const char *var;
|
||||||
|
|
||||||
if ((var = switch_channel_get_variable(channel, "multicast_ttl"))) {
|
if ((var = switch_channel_get_variable(channel, "multicast_ttl"))) {
|
||||||
|
|
Loading…
Reference in New Issue