mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-10-24 20:24:16 +00:00
FS-5959 FS-5958
This commit is contained in:
1 parent
aa8a4913b4
commit
2747660269
3 files changed
+15
-2
No files matched your search
+11
-1
@@ -497,6 +497,7 @@ SWITCH_DECLARE(switch_status_t) switch_core_session_get_payload_code(switch_core
|
||||
recv_pt = pmap->recv_pt;
|
||||
fmtp = pmap->rm_fmtp;
|
||||
found++;
|
||||
break;
|
||||
}
|
||||
}
|
||||
switch_mutex_unlock(smh->sdp_mutex);
|
||||
@@ -602,7 +603,12 @@ SWITCH_DECLARE(payload_map_t *) switch_core_media_add_payload_map(switch_core_se
|
||||
|
||||
|
||||
if (sdp_type == SDP_TYPE_REQUEST || !exists) {
|
||||
int b4 = pmap->pt;
|
||||
pmap->pt = (switch_payload_t) (local_pt ? local_pt : pt);
|
||||
|
||||
if (b4 == 97 && pmap->pt == 109) {
|
||||
abort();
|
||||
}
|
||||
}
|
||||
|
||||
if (negotiated) {
|
||||
@@ -6354,7 +6360,7 @@ SWITCH_DECLARE(void) switch_core_media_gen_local_sdp(switch_core_session_t *sess
|
||||
pass_fmtp = switch_channel_get_variable(session->channel, "rtp_video_fmtp");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if (pass_fmtp) {
|
||||
switch_snprintf(buf + strlen(buf), SDPBUFLEN - strlen(buf), "a=fmtp:%d %s\n", v_engine->cur_payload_map->pt, pass_fmtp);
|
||||
}
|
||||
@@ -6433,6 +6439,10 @@ SWITCH_DECLARE(void) switch_core_media_gen_local_sdp(switch_core_session_t *sess
|
||||
fmtp = switch_event_get_header(map, imp->iananame);
|
||||
}
|
||||
|
||||
if (smh->fmtps[i]) {
|
||||
fmtp = smh->fmtps[i];
|
||||
}
|
||||
|
||||
if (zstr(fmtp)) fmtp = imp->fmtp;
|
||||
|
||||
if (zstr(fmtp)) fmtp = (char *) pass_fmtp;
|
||||
|
||||
Reference in new issue
Block a user