[asterisk-commits] dhubbard: branch dhubbard/pinecowbell r168457 - /team/dhubbard/pinecowbell/ch...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Sun Jan 11 18:35:51 CST 2009


Author: dhubbard
Date: Sun Jan 11 18:35:51 2009
New Revision: 168457

URL: http://svn.digium.com/svn-view/asterisk?view=rev&rev=168457
Log:
make log message pretty

Modified:
    team/dhubbard/pinecowbell/channels/chan_dahdi.c

Modified: team/dhubbard/pinecowbell/channels/chan_dahdi.c
URL: http://svn.digium.com/svn-view/asterisk/team/dhubbard/pinecowbell/channels/chan_dahdi.c?view=diff&rev=168457&r1=168456&r2=168457
==============================================================================
--- team/dhubbard/pinecowbell/channels/chan_dahdi.c (original)
+++ team/dhubbard/pinecowbell/channels/chan_dahdi.c Sun Jan 11 18:35:51 2009
@@ -10989,7 +10989,8 @@
 						if (!ast_db_get(db_chan_name, SRVST_DBKEY, db_answer, sizeof(db_answer))) {
 							sscanf(db_answer, "%c:%d", &state, &why);
 							if (why) {
-								ast_log(LOG_NOTICE, "channel '%d' is ignoring the PRI_EVENT_RESTART request because it is out-of-service (reason: %d)\n", e->restart.channel, why);
+								ast_log(LOG_NOTICE, "channel '%d' out-of-service (reason: %s), ignoring RESTART\n", e->restart.channel, 
+									(why & SRVST_FAREND) ? (why & SRVST_NEAREND) ? "both ends" : "far end" : "near end");
 								skipit = 1;
 							} else {
 								ast_db_del(db_chan_name, SRVST_DBKEY);




More information about the asterisk-commits mailing list