Merged revisions 318233 via svnmerge from
[asterisk/asterisk.git] / channels / chan_sip.c
index 36866ba..dc97c11 100644 (file)
@@ -28286,8 +28286,10 @@ static int sip_set_rtp_peer(struct ast_channel *chan, struct ast_rtp_instance *i
        }
 
        /* Disable early RTP bridge  */
-       if (!ast_bridged_channel(chan) && !sip_cfg.directrtpsetup) {    /* We are in early state */
-               return 0;
+       if ((instance || vinstance || tinstance) &&
+               !ast_bridged_channel(chan) &&
+               !sip_cfg.directrtpsetup) {
+                       return 0;
        }
 
        /*