]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Merged revisions 55956 via svnmerge from
authorJoshua Colp <jcolp@digium.com>
Wed, 21 Feb 2007 20:35:40 +0000 (20:35 +0000)
committerJoshua Colp <jcolp@digium.com>
Wed, 21 Feb 2007 20:35:40 +0000 (20:35 +0000)
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r55956 | file | 2007-02-21 15:32:16 -0500 (Wed, 21 Feb 2007) | 2 lines

Change naughty warning message to provide useful information. If a write now fails on a channel in meetme it will tell you the channel name instead of spitting out the wrong error message.

........

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

apps/app_meetme.c

index 8c919634a7d1fbed9502fd90fb788b5be446605f..e42d31c76800aeb697120b9ddc68548071bfcd16 100644 (file)
@@ -1981,7 +1981,7 @@ static int conf_run(struct ast_channel *chan, struct ast_conference *conf, int c
                                                if (conf->transframe[index]) {
                                                        if (conf->transframe[index]->frametype != AST_FRAME_NULL) {
                                                                if (ast_write(chan, conf->transframe[index]))
-                                                                       ast_log(LOG_WARNING, "Unable to write frame to channel: %s\n", strerror(errno));
+                                                                       ast_log(LOG_WARNING, "Unable to write frame to channel %s\n", chan->name);
                                                        }
                                                } else {
                                                        ast_mutex_unlock(&conf->listenlock);
@@ -1993,7 +1993,7 @@ bailoutandtrynormal:
                                                if (user->listen.actual)
                                                        ast_frame_adjust_volume(&fr, user->listen.actual);
                                                if (ast_write(chan, &fr) < 0) {
-                                                       ast_log(LOG_WARNING, "Unable to write frame to channel: %s\n", strerror(errno));
+                                                       ast_log(LOG_WARNING, "Unable to write frame to channel %s\n", chan->name);
                                                }
                                        }
                                } else