On Thu, 2006-10-05 at 11:12 +0100, Brian Candler wrote:
> Is there a debug mode which can say:
>
> "dialplan: trying to match 611 against pattern _1XXXXX: failed
> dialplan: trying to match 611 against pattern _2XXXXX: failed
> dialplan: trying to match 611 against pattern _6X.: matched"
No, there isn't (I assume to keep this central part as fast as possible,
i.e., even "if (option_debug) ..." costs time and pollutes the cache).
I've created and attached a one line patch (for 1.4 branch, r44464) that
should give you the info you need (sort of). But be aware that I haven't
tested it on 1.4 (only on 1.2, but things are different there). Only use
this patch on a test system as it will generate massive amounts of
output and will considerably slow down call handling.
--
Dr. Michael Neuhauser mailto:[EMAIL PROTECTED]
Firmix Software GmbH sip:[EMAIL PROTECTED]
Vienna/Austria/Europe tel:+43-1-7890849-30
Linux Development and Services http://www.firmix.at/
Index: main/pbx.c
===================================================================
--- main/pbx.c (revision 44464)
+++ main/pbx.c (working copy)
@@ -952,6 +952,7 @@
while ( (eroot = ast_walk_context_extensions(tmp, eroot)) ) {
int match = extension_match_core(eroot->exten, exten, action);
/* 0 on fail, 1 on match, 2 on earlymatch */
+ast_log(LOG_NOTICE, "[%s] match(%s, %s, %x) -> %d\n", tmp->name, eroot->exten, exten, action, match);
if (!match || (eroot->matchcid && !matchcid(eroot->cidmatch, callerid)))
continue; /* keep trying */
_______________________________________________
--Bandwidth and Colocation provided by Easynews.com --
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users