]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
INVITE 403 Forbidden response always retransmits the maximum times.
authorRichard Mudgett <rmudgett@digium.com>
Fri, 8 Jul 2011 21:41:58 +0000 (21:41 +0000)
committerRichard Mudgett <rmudgett@digium.com>
Fri, 8 Jul 2011 21:41:58 +0000 (21:41 +0000)
Asterisk sends a 403 Forbidden response if authentication fails for an
INVITE as required.  However, it ignores the ACK and keeps retransmitting
the response.

* Made not delete the to-tag in the dialog so the expected ACK can be
matched with the dialog and stop the retransmissions.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@327211 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index 44f2a536e6fa41d0bb296c6ab08c326b7afceba3..6e4d936b35848988fafea7196834e8d47e288175 100644 (file)
@@ -21958,7 +21958,6 @@ static int handle_request_invite(struct sip_pvt *p, struct sip_request *req, int
                        }
                        p->invitestate = INV_COMPLETED;
                        sip_scheddestroy(p, DEFAULT_TRANS_TIMEOUT);
-                       ast_string_field_set(p, theirtag, NULL);
                        res = 0;
                        goto request_invite_cleanup;
                }