]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
chan_sip: Call not cancelled after receiving a 422 response
authorJean Aunis <jean.aunis@prescom.fr>
Tue, 7 Mar 2017 14:12:48 +0000 (15:12 +0100)
committerRichard Mudgett <rmudgett@digium.com>
Fri, 10 Mar 2017 22:25:53 +0000 (16:25 -0600)
When receiving a 422 response, the invitestate variable must be reset to
INV_CALLING.

ASTERISK-26841

Change-Id: Ia0502d6b02192664cefa4e75bafdd2645ce56099

channels/chan_sip.c

index a0d414483fc3b1e400ccd3b54ee8752a62cd701d..85796a0734a66776da306ec6e1b9242a7d545dd1 100644 (file)
@@ -23917,6 +23917,7 @@ static void handle_response_invite(struct sip_pvt *p, int resp, const char *rest
        case 422: /* Session-Timers: Session interval too small */
                xmitres = transmit_request(p, SIP_ACK, seqno, XMIT_UNRELIABLE, FALSE);
                ast_string_field_set(p, theirtag, NULL);
+               p->invitestate = INV_CALLING;
                proc_422_rsp(p, req);
                break;