]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
stop sending rtp when on hold (bug #3185)
authorRussell Bryant <russell@russellbryant.com>
Mon, 3 Jan 2005 02:36:24 +0000 (02:36 +0000)
committerRussell Bryant <russell@russellbryant.com>
Mon, 3 Jan 2005 02:36:24 +0000 (02:36 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/v1-0@4643 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index d046fcfd9da92325037a88f69d3823c3898005f4..4f2127f3f19ff78742402b3bac24c529bd57d532 100755 (executable)
@@ -2790,6 +2790,8 @@ static int process_sdp(struct sip_pvt *p, struct sip_request *req)
                                ast_moh_stop(p->owner->bridge);
                        } else {
                                ast_moh_start(p->owner->bridge, NULL);
+                               if (sendonly)
+                                       ast_rtp_stop(p->rtp);
                        }
                }
        }