Stop transmission when sendonly is set (bug #3185)
authorMark Spencer <markster@digium.com>
Wed, 29 Dec 2004 13:31:57 +0000 (13:31 +0000)
committerMark Spencer <markster@digium.com>
Wed, 29 Dec 2004 13:31:57 +0000 (13:31 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4589 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index 8818bde..ef69635 100755 (executable)
@@ -2804,6 +2804,8 @@ static int process_sdp(struct sip_pvt *p, struct sip_request *req)
                                ast_moh_stop(ast_bridged_channel(p->owner));
                        } else {
                                ast_moh_start(ast_bridged_channel(p->owner), NULL);
+                               if (sendonly)
+                                       ast_rtp_stop(p->rtp);
                        }
                }
        }