Skip to content

Commit f67a2d8

Browse files
committed
app_dahdimonitor: Remove superfluous warning.
DAHDIMonitor() could emit a warning once every 20ms, due to read failing with EAGAIN, but this is normal behavior and was expected. As such, remove the warning altogether since there is not actually anything wrong when this happens, and the audio stream is working as expected.
1 parent 9aa9f56 commit f67a2d8

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

apps/app_dahdimonitor.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -272,15 +272,14 @@ static int dahdi_monitor_exec(struct ast_channel *chan, const char *data)
272272
/* Sometimes DAHDI resources like to be temporarily unavailable.
273273
* DAHDI_POLICY_IMMEDIATE also makes this more likely
274274
* (see https://support.digium.com/s/article/How-to-configure-DAHDI-buffer-policies)
275+
* This is normal and expected.
275276
* Don't abort if this happens, just keep trying
276277
* in case the channel becomes available again soon.
277278
* To avoid having a super tight loop (dozens per millisecond),
278279
* skip reading from DAHDI the next iteration,
279-
* and just use the Asterisk channel for timing, which will limit
280-
* how often this error message appears and temper CPU usage.
280+
* and just use the Asterisk channel for timing, which will temper CPU usage.
281281
*/
282282
skip_dahdi = 1;
283-
ast_log(LOG_WARNING, "Failed to read from DAHDI channel %d: %s\n", dahdichan, strerror(errno));
284283
continue;
285284
}
286285
ast_log(LOG_ERROR, "Failed to read from DAHDI channel %d: %s\n", dahdichan, strerror(errno));

0 commit comments

Comments
 (0)