From: Anthony Minessale Date: Tue, 10 Feb 2009 19:19:53 +0000 (+0000) Subject: tweak X-Git-Tag: v1.0.3~397 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2b4b07e527b28204368b8e717b0bbc9da92d221a;p=thirdparty%2Ffreeswitch.git tweak git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11731 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- diff --git a/src/switch_core_session.c b/src/switch_core_session.c index b582292dad..3722988236 100644 --- a/src/switch_core_session.c +++ b/src/switch_core_session.c @@ -348,19 +348,21 @@ SWITCH_DECLARE(switch_call_cause_t) switch_core_session_outgoing_channel(switch_ profile = switch_channel_get_caller_profile(channel); + vid_read_codec = switch_core_session_get_video_read_codec(session); + if (read_codec && read_codec->implementation) { - char tmp[80]; - switch_codec2str(read_codec, tmp, sizeof(tmp)); + char rc[80] = "", vrc[80] = "", tmp[160] = ""; + + switch_codec2str(read_codec, rc, sizeof(rc)); + if (vid_read_codec && vid_read_codec->implementation) { + vrc[0] = ','; + switch_codec2str(read_codec, vrc+1, sizeof(vrc) - 1); + switch_channel_set_variable(peer_channel, SWITCH_ORIGINATOR_VIDEO_CODEC_VARIABLE, vrc+1); + } + + switch_snprintf(tmp, sizeof(tmp), "%s%s", rc, vrc); switch_channel_set_variable(peer_channel, SWITCH_ORIGINATOR_CODEC_VARIABLE, tmp); } - - vid_read_codec = switch_core_session_get_video_read_codec(session); - if (vid_read_codec && vid_read_codec->implementation) { - char tmp[80]; - switch_codec2str(vid_read_codec, tmp, sizeof(tmp)); - switch_channel_set_variable(peer_channel, SWITCH_ORIGINATOR_VIDEO_CODEC_VARIABLE, tmp); - } - switch_channel_set_variable(peer_channel, SWITCH_ORIGINATOR_VARIABLE, switch_core_session_get_uuid(session)); switch_channel_set_variable(peer_channel, SWITCH_SIGNAL_BOND_VARIABLE, switch_core_session_get_uuid(session));