[Asterisk-cvs] asterisk pbx.c,1.147,1.148

markster at lists.digium.com markster at lists.digium.com
Wed Sep 1 14:26:25 CDT 2004


Update of /usr/cvsroot/asterisk
In directory mongoose.digium.com:/tmp/cvs-serv7085

Modified Files:
	pbx.c 
Log Message:
Slightly more verbose detail on PBX startup (bug #2339)


Index: pbx.c
===================================================================
RCS file: /usr/cvsroot/asterisk/pbx.c,v
retrieving revision 1.147
retrieving revision 1.148
diff -u -d -r1.147 -r1.148
--- pbx.c	27 Aug 2004 04:21:09 -0000	1.147
+++ pbx.c	1 Sep 2004 18:29:43 -0000	1.148
@@ -1790,9 +1790,13 @@
 	/* 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;




More information about the svn-commits mailing list