]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Merged revisions 259538 via svnmerge from
authorRichard Mudgett <rmudgett@digium.com>
Tue, 27 Apr 2010 22:28:52 +0000 (22:28 +0000)
committerRichard Mudgett <rmudgett@digium.com>
Tue, 27 Apr 2010 22:28:52 +0000 (22:28 +0000)
https://origsvn.digium.com/svn/asterisk/trunk

................
  r259538 | rmudgett | 2010-04-27 17:18:09 -0500 (Tue, 27 Apr 2010) | 18 lines

  Merged revisions 259531 via svnmerge from
  https://origsvn.digium.com/svn/asterisk/branches/1.4

  ........
    r259531 | rmudgett | 2010-04-27 16:53:07 -0500 (Tue, 27 Apr 2010) | 11 lines

    DAHDI "WARNING" message is confusing and vague

    "WARNING[28406]: chan_dahdi.c:6873 ss_thread: CallerID feed failed: Success"

    Changed the warning to "Failed to decode CallerID on channel 'name'".  The
    message before it is likely more specific about why the CallerID decode
    failed.

    SWP-501
    AST-283
  ........
................

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@259591 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_dahdi.c

index 98c8c8db64222d2c7a7f1b0a3e341106b47ee983..ad6e90edb8aa78f83e4c32326cc18185363c621f 100644 (file)
@@ -7331,9 +7331,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;
@@ -7600,7 +7605,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;
@@ -7860,7 +7871,11 @@ static void *mwi_thread(void *data)
                        samples += res;
                        if (!spill_done) {
                                if ((spill_result = callerid_feed(cs, mtd->buf, res, AST_LAW(mtd->pvt))) < 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\n");
                                        break;
                                } else if (spill_result) {
                                        spill_done = 1;