*** empty log message ***
authorMark Spencer <markster@digium.com>
Thu, 20 Mar 2003 21:58:38 +0000 (21:58 +0000)
committerMark Spencer <markster@digium.com>
Thu, 20 Mar 2003 21:58:38 +0000 (21:58 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@667 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index d1fa814..9e9d358 100755 (executable)
@@ -3267,10 +3267,9 @@ retrylock:
                                        ast_verbose(VERBOSE_PREFIX_3 "Got SIP response %d \"%s\" back from %s\n", resp, rest, inet_ntoa(p->sa.sin_addr));
                                p->alreadygone = 1;
                                if (p->rtp) {
-                                       rtp = p->rtp;
-                                       p->rtp = NULL;
-                                       /* Immediately stop RTP */
-                                       ast_rtp_destroy(rtp);
+                                       struct sockaddr_in sin = { AF_INET, };
+                                       /* Immediately stop RTP by setting transmit to 0 */
+                                       ast_rtp_setpeer(p->rtp, &sin);
                                }
                                /* XXX Locking issues?? XXX */
                                switch(resp) {