aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--channels/chan_dahdi.c17
1 files changed, 14 insertions, 3 deletions
diff --git a/channels/chan_dahdi.c b/channels/chan_dahdi.c
index 841aa405b..28bdebe28 100644
--- a/channels/chan_dahdi.c
+++ b/channels/chan_dahdi.c
@@ -6683,9 +6683,14 @@ static void *ss_thread(void *data)
} else {
res = callerid_feed(cs, buf, res, AST_LAW(p));
}
-
if (res < 0) {
- ast_log(LOG_WARNING, "CallerID feed failed on channel '%s'\n", chan->name);
+ /*
+ * The previous diagnostic message output likely
+ * explains why it failed.
+ */
+ ast_log(LOG_WARNING,
+ "Failed to decode CallerID on channel '%s'\n",
+ chan->name);
break;
} else if (res)
break;
@@ -6906,7 +6911,13 @@ static void *ss_thread(void *data)
samples += res;
res = callerid_feed(cs, buf, res, AST_LAW(p));
if (res < 0) {
- ast_log(LOG_WARNING, "CallerID feed failed: %s\n", strerror(errno));
+ /*
+ * The previous diagnostic message output likely
+ * explains why it failed.
+ */
+ ast_log(LOG_WARNING,
+ "Failed to decode CallerID on channel '%s'\n",
+ chan->name);
break;
} else if (res)
break;