[Asterisk-code-review] chan sip: Call not cancelled after receiving a 422 response (asterisk[13])

Richard Mudgett asteriskteam at digium.com
Fri Mar 10 16:25:54 CST 2017


Richard Mudgett has uploaded a new change for review. ( https://gerrit.asterisk.org/5155 )

Change subject: chan_sip: Call not cancelled after receiving a 422 response
......................................................................

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
---
M channels/chan_sip.c
1 file changed, 1 insertion(+), 0 deletions(-)


  git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/55/5155/1

diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index a0d4144..85796a0 100644
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -23917,6 +23917,7 @@
 	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;
 

-- 
To view, visit https://gerrit.asterisk.org/5155
To unsubscribe, visit https://gerrit.asterisk.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ia0502d6b02192664cefa4e75bafdd2645ce56099
Gerrit-PatchSet: 1
Gerrit-Project: asterisk
Gerrit-Branch: 13
Gerrit-Owner: Richard Mudgett <rmudgett at digium.com>
Gerrit-Reviewer: Jean Aunis - Prescom <jean.aunis at prescom.fr>



More information about the asterisk-code-review mailing list