From: Jean Aunis Date: Tue, 7 Mar 2017 14:12:48 +0000 (+0100) Subject: chan_sip: Call not cancelled after receiving a 422 response X-Git-Tag: 13.15.0-rc1~36^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d3ef833b3b15540ccbf237f889185cc13bc200cf;p=thirdparty%2Fasterisk.git chan_sip: Call not cancelled after receiving a 422 response When receiving a 422 response, the invitestate variable must be reset to INV_CALLING. ASTERISK-26841 Change-Id: Ia0502d6b02192664cefa4e75bafdd2645ce56099 --- diff --git a/channels/chan_sip.c b/channels/chan_sip.c index a0d414483f..85796a0734 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -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;