]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
chan_dahdi: Change 999999 to INT_MAX to better reflect "no timeout"
authorAndrew Siplas <andrew@asiplas.net>
Sat, 18 Jan 2020 21:54:01 +0000 (16:54 -0500)
committerAndrew Siplas <andrew@asiplas.net>
Tue, 21 Jan 2020 14:11:40 +0000 (09:11 -0500)
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

channels/chan_dahdi.c

index fd49489f670b7c728c4a8a7ff4f9b406d7733605..e885821e5869d73467849057be586c794a526dd9 100644 (file)
@@ -9847,7 +9847,7 @@ static void *analog_ss_thread(void *data)
                /* 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;