mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-08-14 01:49:05 +00:00
FS-5959 i hate this ticket
This commit is contained in:
@@ -4121,6 +4121,7 @@ static int check_recv_payload(switch_rtp_t *rtp_session)
|
||||
if (!pmap->negotiated) {
|
||||
continue;
|
||||
}
|
||||
|
||||
if (rtp_session->recv_msg.header.pt == pmap->pt) {
|
||||
ok = 1;
|
||||
}
|
||||
@@ -6242,7 +6243,7 @@ SWITCH_DECLARE(int) switch_rtp_write_frame(switch_rtp_t *rtp_session, switch_fra
|
||||
|
||||
switch_mutex_lock(rtp_session->flag_mutex);
|
||||
for (pmap = *rtp_session->pmaps; pmap; pmap = pmap->next) {
|
||||
if (pmap->hash == frame->pmap->hash && !strcmp(pmap->iananame, frame->pmap->iananame)) {
|
||||
if (pmap->negotiated && pmap->hash == frame->pmap->hash) {
|
||||
payload = pmap->recv_pt;
|
||||
break;
|
||||
}
|
||||
|
Reference in New Issue
Block a user