fix some regessions and sync namespace of some vars

This commit is contained in:
Anthony Minessale committed 2013-03-31 21:27:25 -05:00
1 parent d33732ed00
commit 4b3aa396fb
7 files changed
+100 -82

No files matched your search

+3 -3
View File
@@ -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")) {
+1 -1
View File
@@ -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))) {
+1 -1
View File
@@ -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))) {