]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
fix regression in media for recovered calls
authorAnthony Minessale <anthm@freeswitch.org>
Mon, 26 Nov 2012 22:19:49 +0000 (16:19 -0600)
committerAnthony Minessale <anthm@freeswitch.org>
Mon, 26 Nov 2012 22:19:49 +0000 (16:19 -0600)
src/mod/endpoints/mod_sofia/sofia_glue.c

index 31ea2bb66b73095148092cafa3561c669f1342f5..388e647cc03e66b217e4206a1655ccfe6c11e9fc 100644 (file)
@@ -3254,13 +3254,11 @@ switch_status_t sofia_glue_activate_rtp(private_object_t *tech_pvt, switch_rtp_f
        }
 
 
-       if (!sofia_test_flag(tech_pvt, TFLAG_REINVITE)) {
-               if (switch_rtp_ready(tech_pvt->rtp_session)) {
-                       if (sofia_test_flag(tech_pvt, TFLAG_VIDEO) && !switch_rtp_ready(tech_pvt->video_rtp_session)) {
-                               goto video;
-                       } else {
-                               goto end;
-                       }
+       if (!sofia_test_flag(tech_pvt, TFLAG_REINVITE) && !sofia_test_flag(tech_pvt, TFLAG_SDP) && switch_rtp_ready(tech_pvt->rtp_session)) {
+               if (sofia_test_flag(tech_pvt, TFLAG_VIDEO) && !switch_rtp_ready(tech_pvt->video_rtp_session)) {
+                       goto video;
+               } else {
+                       goto end;
                }
        }