mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-07-22 20:04:52 +00:00
ice ice baby (part 2)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1041 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
fb796a0180
commit
3208bbfb80
@ -391,7 +391,9 @@ SWITCH_DECLARE(int) switch_rtp_write(switch_rtp *rtp_session, void *data, int da
|
|||||||
bytes = datalen + rtp_header_len;
|
bytes = datalen + rtp_header_len;
|
||||||
switch_socket_sendto(rtp_session->sock, rtp_session->remote_addr, 0, (void*)&rtp_session->send_msg, &bytes);
|
switch_socket_sendto(rtp_session->sock, rtp_session->remote_addr, 0, (void*)&rtp_session->send_msg, &bytes);
|
||||||
if (rtp_session->ice_user) {
|
if (rtp_session->ice_user) {
|
||||||
ice_out(rtp_session);
|
if (ice_out(rtp_session) != SWITCH_STATUS_SUCCESS) {
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return (int)bytes;
|
return (int)bytes;
|
||||||
@ -414,7 +416,9 @@ SWITCH_DECLARE(int) switch_rtp_write_payload(switch_rtp *rtp_session, void *data
|
|||||||
switch_socket_sendto(rtp_session->sock, rtp_session->remote_addr, 0, (void*)&rtp_session->send_msg, &bytes);
|
switch_socket_sendto(rtp_session->sock, rtp_session->remote_addr, 0, (void*)&rtp_session->send_msg, &bytes);
|
||||||
|
|
||||||
if (rtp_session->ice_user) {
|
if (rtp_session->ice_user) {
|
||||||
ice_out(rtp_session);
|
if (ice_out(rtp_session) != SWITCH_STATUS_SUCCESS) {
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return (int)bytes;
|
return (int)bytes;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user