]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-2810
authorAnthony Minessale <anthm@freeswitch.org>
Mon, 1 Nov 2010 15:03:10 +0000 (10:03 -0500)
committerAnthony Minessale <anthm@freeswitch.org>
Mon, 1 Nov 2010 15:03:10 +0000 (10:03 -0500)
src/mod/endpoints/mod_sofia/sofia_glue.c

index 181161617cf40a16d9131d5ba24a83d317ca0045..fbd270d41be5c9d2a4c63b45a536f15add77c58b 100644 (file)
@@ -392,11 +392,6 @@ void sofia_glue_set_local_sdp(private_object_t *tech_pvt, const char *ip, uint32
                }
        }
 
-       if (!tech_pvt->rm_encoding && (b_sdp = switch_channel_get_variable(tech_pvt->channel, SWITCH_B_SDP_VARIABLE))) {
-               sofia_glue_sdp_map(b_sdp, &map, &ptmap);
-       }
-
-
        if (fmtp_out_var) {
                fmtp_out = fmtp_out_var;
        }
@@ -435,6 +430,10 @@ void sofia_glue_set_local_sdp(private_object_t *tech_pvt, const char *ip, uint32
                return;
        }
 
+       if (!tech_pvt->rm_encoding && (b_sdp = switch_channel_get_variable(tech_pvt->channel, SWITCH_B_SDP_VARIABLE))) {
+               sofia_glue_sdp_map(b_sdp, &map, &ptmap);
+       }
+
        if (!sr) {
                if ((var_val = switch_channel_get_variable(tech_pvt->channel, "media_audio_mode"))) {
                        sr = var_val;