summaryrefslogtreecommitdiff
path: root/channels
diff options
context:
space:
mode:
authorJean Aunis <jean.aunis@prescom.fr>2017-03-07 15:12:48 +0100
committerRichard Mudgett <rmudgett@digium.com>2017-03-10 16:25:27 -0600
commitf0e2a3df685419d995666f953b743e28347f162f (patch)
tree371dc000ff74247f38fd6b383e32901b42d84a6a /channels
parent37a7e7596915bfc74469e398f2dfaf673baf9e93 (diff)
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
Diffstat (limited to 'channels')
-rw-r--r--channels/chan_sip.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index 3859e8f76..2435d65ff 100644
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -23979,6 +23979,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;