diff options
Diffstat (limited to 'channels/sig_analog.c')
-rw-r--r-- | channels/sig_analog.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/channels/sig_analog.c b/channels/sig_analog.c index 6054458cf..1e84e27b5 100644 --- a/channels/sig_analog.c +++ b/channels/sig_analog.c @@ -2281,7 +2281,7 @@ static void *__analog_ss_thread(void *data) int timeout = 10000; /* Ten seconds */ struct timeval start = ast_tvnow(); enum analog_event ev; - int curRingData[3] = { 0 }; + int curRingData[RING_PATTERNS] = { 0 }; int receivedRingT = 0; namebuf[0] = 0; @@ -2315,7 +2315,7 @@ static void *__analog_ss_thread(void *data) } /* Increment the ringT counter so we can match it against values in chan_dahdi.conf for distinctive ring */ - if (++receivedRingT == ARRAY_LEN(curRingData)) { + if (++receivedRingT == RING_PATTERNS) { break; } } |