stop retransmitting INVITE after we have sent CANCEL for the same call
authorKevin P. Fleming <kpfleming@digium.com>
Wed, 31 Aug 2005 19:53:38 +0000 (19:53 +0000)
committerKevin P. Fleming <kpfleming@digium.com>
Wed, 31 Aug 2005 19:53:38 +0000 (19:53 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6472 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index a7150e1..3bc9083 100755 (executable)
@@ -2351,6 +2351,8 @@ static int sip_hangup(struct ast_channel *ast)
                                   INVITE, but do set an autodestruct just in case we never get it. */
                                ast_clear_flag(&locflags, SIP_NEEDDESTROY);
                                sip_scheddestroy(p, 15000);
                                   INVITE, but do set an autodestruct just in case we never get it. */
                                ast_clear_flag(&locflags, SIP_NEEDDESTROY);
                                sip_scheddestroy(p, 15000);
+                               /* stop retransmitting an INVITE that has not received a response */
+                               __sip_pretend_ack(p);
                                if ( p->initid != -1 ) {
                                        /* channel still up - reverse dec of inUse counter
                                           only if the channel is not auto-congested */
                                if ( p->initid != -1 ) {
                                        /* channel still up - reverse dec of inUse counter
                                           only if the channel is not auto-congested */