diff options
author | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2004-09-01 18:29:43 +0000 |
---|---|---|
committer | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2004-09-01 18:29:43 +0000 |
commit | 69b09a1478b3310b3c457563a9e69038d4e5cfb8 (patch) | |
tree | d478cf19e5d89f7a27cfdacdffb3d38051fe9b2f /pbx.c | |
parent | 2e76d1f9e9c649473820f655bbf71bca767d1baf (diff) |
Slightly more verbose detail on PBX startup (bug #2339)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@3703 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'pbx.c')
-rwxr-xr-x | pbx.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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; |