mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-16 08:49:01 +00:00
fix udptl issue
This commit is contained in:
parent
092a794e41
commit
72df7a9fe5
@ -3721,7 +3721,7 @@ static switch_status_t read_rtp_packet(switch_rtp_t *rtp_session, switch_size_t
|
|||||||
{
|
{
|
||||||
switch_status_t status = SWITCH_STATUS_FALSE;
|
switch_status_t status = SWITCH_STATUS_FALSE;
|
||||||
stfu_frame_t *jb_frame;
|
stfu_frame_t *jb_frame;
|
||||||
uint32_t ts;
|
uint32_t ts = 0;
|
||||||
char *b = NULL;
|
char *b = NULL;
|
||||||
|
|
||||||
switch_assert(bytes);
|
switch_assert(bytes);
|
||||||
@ -3730,6 +3730,10 @@ static switch_status_t read_rtp_packet(switch_rtp_t *rtp_session, switch_size_t
|
|||||||
|
|
||||||
status = switch_socket_recvfrom(rtp_session->from_addr, rtp_session->sock_input, 0, (void *) &rtp_session->recv_msg, bytes);
|
status = switch_socket_recvfrom(rtp_session->from_addr, rtp_session->sock_input, 0, (void *) &rtp_session->recv_msg, bytes);
|
||||||
|
|
||||||
|
if (rtp_session->flags[SWITCH_RTP_FLAG_UDPTL]) {
|
||||||
|
goto udptl;
|
||||||
|
}
|
||||||
|
|
||||||
if (*bytes) {
|
if (*bytes) {
|
||||||
b = (char *) &rtp_session->recv_msg;
|
b = (char *) &rtp_session->recv_msg;
|
||||||
|
|
||||||
@ -3802,6 +3806,8 @@ static switch_status_t read_rtp_packet(switch_rtp_t *rtp_session, switch_size_t
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
udptl:
|
||||||
|
|
||||||
ts = ntohl(rtp_session->recv_msg.header.ts);
|
ts = ntohl(rtp_session->recv_msg.header.ts);
|
||||||
rtp_session->recv_msg.ebody = NULL;
|
rtp_session->recv_msg.ebody = NULL;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user