[Asterisk-code-review] chan_dahdi: Change 999999 to INT_MAX to better reflect "no timeout" (asterisk[13])

Andrew Siplas asteriskteam at digium.com
Sat Jan 18 15:54:59 CST 2020


Andrew Siplas has uploaded this change for review. ( https://gerrit.asterisk.org/c/asterisk/+/13663 )


Change subject: chan_dahdi: Change 999999 to INT_MAX to better reflect "no timeout"
......................................................................

chan_dahdi: Change 999999 to INT_MAX to better reflect "no timeout"

The no-entry timeout set to 999999 == 16⅔ minutes, change to INT_MAX
to match behavior of "no timeout" defined in comment.

ASTERISK-28702 #close

Change-Id: I4ea015986e061374385dba247b272f7aac60bf11
---
M channels/chan_dahdi.c
1 file changed, 1 insertion(+), 1 deletion(-)



  git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/63/13663/1

diff --git a/channels/chan_dahdi.c b/channels/chan_dahdi.c
index 8a5e4b2..3da5f5e 100644
--- a/channels/chan_dahdi.c
+++ b/channels/chan_dahdi.c
@@ -9914,7 +9914,7 @@
 		/* If starting a threeway call, never timeout on the first digit so someone
 		   can use flash-hook as a "hold" feature */
 		if (p->subs[SUB_THREEWAY].owner)
-			timeout = 999999;
+			timeout = INT_MAX;
 		while (len < AST_MAX_EXTENSION-1) {
 			int is_exten_parking = 0;
 

-- 
To view, visit https://gerrit.asterisk.org/c/asterisk/+/13663
To unsubscribe, or for help writing mail filters, visit https://gerrit.asterisk.org/settings

Gerrit-Project: asterisk
Gerrit-Branch: 13
Gerrit-Change-Id: I4ea015986e061374385dba247b272f7aac60bf11
Gerrit-Change-Number: 13663
Gerrit-PatchSet: 1
Gerrit-Owner: Andrew Siplas <andrew at asiplas.net>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20200118/875844f7/attachment.html>


More information about the asterisk-code-review mailing list