mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-10-27 05:34:17 +00:00
fix some regessions and sync namespace of some vars
This commit is contained in:
1 parent
d33732ed00
commit
4b3aa396fb
7 files changed
+100
-82
No files matched your search
@@ -1415,9 +1415,9 @@ static void *SWITCH_THREAD_FUNC ringall_thread_run(switch_thread_t *thread, void
|
||||
|
||||
if (!total) goto end;
|
||||
|
||||
if ((codec = switch_event_get_header(pop, "variable_sip_use_codec_name"))) {
|
||||
const char *rate = switch_event_get_header(pop, "variable_sip_use_codec_rate");
|
||||
const char *ptime = switch_event_get_header(pop, "variable_sip_use_codec_ptime");
|
||||
if ((codec = switch_event_get_header(pop, "variable_rtp_use_codec_name"))) {
|
||||
const char *rate = switch_event_get_header(pop, "variable_rtp_use_codec_rate");
|
||||
const char *ptime = switch_event_get_header(pop, "variable_rtp_use_codec_ptime");
|
||||
char nstr[256] = "";
|
||||
|
||||
if (strcasecmp(codec, "PCMU") && strcasecmp(codec, "PCMA")) {
|
||||
|
||||
@@ -337,7 +337,7 @@ SWITCH_STANDARD_APP(play_fsv_function)
|
||||
goto end;
|
||||
}
|
||||
|
||||
switch_channel_set_variable(channel, "sip_force_video_fmtp", h.video_fmtp);
|
||||
switch_channel_set_variable(channel, "rtp_force_video_fmtp", h.video_fmtp);
|
||||
switch_channel_answer(channel);
|
||||
|
||||
if ((read_vid_codec = switch_core_session_get_video_read_codec(session))) {
|
||||
|
||||
@@ -415,7 +415,7 @@ SWITCH_STANDARD_APP(play_mp4_function)
|
||||
}
|
||||
*/
|
||||
|
||||
switch_channel_set_variable(channel, "sip_force_video_fmtp", vc.videoTrack().fmtp.c_str());
|
||||
switch_channel_set_variable(channel, "rtp_force_video_fmtp", vc.videoTrack().fmtp.c_str());
|
||||
switch_channel_answer(channel);
|
||||
|
||||
if ((read_vid_codec = switch_core_session_get_video_read_codec(session))) {
|
||||
|
||||
Reference in new issue
Block a user