[asterisk-commits] file: trunk r47335 - in /trunk: CHANGES main/pbx.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Wed Nov 8 11:26:53 MST 2006


Author: file
Date: Wed Nov  8 12:26:52 2006
New Revision: 47335

URL: http://svn.digium.com/view/asterisk?rev=47335&view=rev
Log:
Display CID matching information when using dialplan show. (issue #8279 reported by caio1982)

Modified:
    trunk/CHANGES
    trunk/main/pbx.c

Modified: trunk/CHANGES
URL: http://svn.digium.com/view/asterisk/trunk/CHANGES?rev=47335&r1=47334&r2=47335&view=diff
==============================================================================
--- trunk/CHANGES (original)
+++ trunk/CHANGES Wed Nov  8 12:26:52 2006
@@ -58,3 +58,4 @@
   * Added QUEUE_VARIABLES function to set queue variables added setqueuevar and 
     setqueueentryvar options for each queue, see queues.conf.sample for details.
   * Brazilian Portuguese (pt-BR) in VM, and say.c was added via patch from cfassoni.
+  * CID matching information is now shown when doing 'dialplan show'.

Modified: trunk/main/pbx.c
URL: http://svn.digium.com/view/asterisk/trunk/main/pbx.c?rev=47335&r1=47334&r2=47335&view=diff
==============================================================================
--- trunk/main/pbx.c (original)
+++ trunk/main/pbx.c Wed Nov  8 12:26:52 2006
@@ -3272,7 +3272,10 @@
 			dpc->total_prio++;
 
 			/* write extension name and first peer */
-			snprintf(buf, sizeof(buf), "'%s' =>", ast_get_extension_name(e));
+			if (e->matchcid)
+				snprintf(buf, sizeof(buf), "'%s' (CID match '%s') => ", ast_get_extension_name(e), e->cidmatch);
+			else
+				snprintf(buf, sizeof(buf), "'%s' =>", ast_get_extension_name(e));
 
 			print_ext(e, buf2, sizeof(buf2));
 



More information about the asterisk-commits mailing list