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

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


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

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/54/5154/1

diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index 3859e8f..2435d65 100644
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -23979,6 +23979,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/5154
To unsubscribe, visit https://gerrit.asterisk.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ia0502d6b02192664cefa4e75bafdd2645ce56099
Gerrit-PatchSet: 1
Gerrit-Project: asterisk
Gerrit-Branch: 14
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