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

Andrew Siplas asteriskteam at digium.com
Tue Jan 21 08:11:22 CST 2020


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


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/68/13668/1

diff --git a/channels/chan_dahdi.c b/channels/chan_dahdi.c
index fd49489..e885821 100644
--- a/channels/chan_dahdi.c
+++ b/channels/chan_dahdi.c
@@ -9847,7 +9847,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/+/13668
To unsubscribe, or for help writing mail filters, visit https://gerrit.asterisk.org/settings

Gerrit-Project: asterisk
Gerrit-Branch: 17
Gerrit-Change-Id: I4ea015986e061374385dba247b272f7aac60bf11
Gerrit-Change-Number: 13668
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/20200121/8d6f34a7/attachment.html>


More information about the asterisk-code-review mailing list