]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
sig_analog: Fix no timeout duration.
authorNaveen Albert <asterisk@phreaknet.org>
Thu, 1 Dec 2022 11:54:23 +0000 (11:54 +0000)
committerFriendly Automation <jenkins2@gerrit.asterisk.org>
Thu, 8 Dec 2022 16:12:13 +0000 (10:12 -0600)
ASTERISK_28702 previously attempted to fix an
issue with flash hook hold timing out after
just under 17 minutes, when it should have never
been timing out. It fixed this by changing 999999
to INT_MAX, but it did so in chan_dahdi, which
is the wrong place since ss_thread is now in
sig_analog and the one in chan_dahdi is mostly
dead code.

This fixes this by porting the fix to sig_analog.

ASTERISK-30336 #close

Change-Id: I05eb69cc0b5319d357842a70bd26ef64d145cb15

channels/sig_analog.c

index ccc14a89f990283d29bea1636f05aaef62e36524..b694a96082378a9e975cdee8036d8b9c64bf9870 100644 (file)
@@ -2138,7 +2138,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[ANALOG_SUB_THREEWAY].owner) {
-                       timeout = 999999;
+                       timeout = INT_MAX;
                }
                while (len < AST_MAX_EXTENSION-1) {
                        int is_exten_parking = 0;