[asterisk-commits] russell: branch russell/issue_5841 r61280 -
/team/russell/issue_5841/res/
asterisk-commits at lists.digium.com
asterisk-commits at lists.digium.com
Tue Apr 10 13:23:43 MST 2007
Author: russell
Date: Tue Apr 10 15:23:42 2007
New Revision: 61280
URL: http://svn.digium.com/view/asterisk?view=rev&rev=61280
Log:
only print a warning on failure
Modified:
team/russell/issue_5841/res/res_features.c
Modified: team/russell/issue_5841/res/res_features.c
URL: http://svn.digium.com/view/asterisk/team/russell/issue_5841/res/res_features.c?view=diff&rev=61280&r1=61279&r2=61280
==============================================================================
--- team/russell/issue_5841/res/res_features.c (original)
+++ team/russell/issue_5841/res/res_features.c Tue Apr 10 15:23:42 2007
@@ -247,15 +247,15 @@
if (!ast_check_hangup(tobj->peer)) {
ast_log(LOG_VERBOSE, "putting peer %s into PBX again\n", tobj->peer->name);
res = ast_pbx_start(tobj->peer);
- ast_log(LOG_WARNING, "%s continuing PBX on peer %s\n",
- res == AST_PBX_SUCCESS ? "SUCCESS" : "FAILED", tobj->peer->name);
+ if (res != AST_PBX_SUCCESS)
+ ast_log(LOG_WARNING, "FAILED continuing PBX on peer %s\n", tobj->peer->name);
} else
ast_hangup(tobj->peer);
if (!ast_check_hangup(tobj->chan)) {
ast_log(LOG_VERBOSE, "putting chan %s into PBX again\n", tobj->chan->name);
res = ast_pbx_start(tobj->chan);
- ast_log(LOG_WARNING, "%s continuing PBX on chan %s\n",
- res == AST_PBX_SUCCESS ? "SUCCESS" : "FAILED", tobj->chan->name);
+ if (res != AST_PBX_SUCCESS)
+ ast_log(LOG_WARNING, "FAILED continuing PBX on chan %s\n", tobj->chan->name);
} else
ast_hangup(tobj->chan);
} else {
More information about the asterisk-commits
mailing list