From: Mark Spencer Date: Wed, 1 Sep 2004 18:29:43 +0000 (+0000) Subject: Slightly more verbose detail on PBX startup (bug #2339) X-Git-Tag: 1.0.0~123 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=082f6284013a7ace686c964543ba266497d34c00;p=thirdparty%2Fasterisk.git Slightly more verbose detail on PBX startup (bug #2339) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3703 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/pbx.c b/pbx.c index e73eded017..0829e22b92 100755 --- a/pbx.c +++ b/pbx.c @@ -1790,9 +1790,13 @@ int ast_pbx_run(struct ast_channel *c) /* Start by trying whatever the channel is set to */ if (!ast_exists_extension(c, c->context, c->exten, c->priority, c->callerid)) { /* JK02: If not successfull fall back to 's' */ + if (option_verbose > 1) + ast_verbose( VERBOSE_PREFIX_2 "Starting %s at %s,%s,%d failed so falling back to exten 's'\n", c->name, c->context, c->exten, c->priority); strncpy(c->exten, "s", sizeof(c->exten)-1); if (!ast_exists_extension(c, c->context, c->exten, c->priority, c->callerid)) { /* JK02: And finally back to default if everything else failed */ + if (option_verbose > 1) + ast_verbose( VERBOSE_PREFIX_2 "Starting %s at %s,%s,%d still failed so falling back to context 'default'\n", c->name, c->context, c->exten, c->priority); strncpy(c->context, "default", sizeof(c->context)-1); } c->priority = 1;