[asterisk-commits] trunk r36699 - /trunk/apps/app_dumpchan.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Sun Jul 2 20:34:47 MST 2006


Author: russell
Date: Sun Jul  2 22:34:47 2006
New Revision: 36699

URL: http://svn.digium.com/view/asterisk?rev=36699&view=rev
Log:
add RDNIS to the DumpChan application (issue #7432, junky)

Modified:
    trunk/apps/app_dumpchan.c

Modified: trunk/apps/app_dumpchan.c
URL: http://svn.digium.com/view/asterisk/trunk/apps/app_dumpchan.c?rev=36699&r1=36698&r2=36699&view=diff
==============================================================================
--- trunk/apps/app_dumpchan.c (original)
+++ trunk/apps/app_dumpchan.c Sun Jul  2 22:34:47 2006
@@ -86,6 +86,7 @@
 			 "CallerID=           %s\n"
 			 "CallerIDName=       %s\n"
 			 "DNIDDigits=         %s\n"
+			 "RDNIS=              %s\n" 
 			 "State=              %s (%d)\n"
 			 "Rings=              %d\n"
 			 "NativeFormat=       %s\n"
@@ -107,9 +108,10 @@
 			 c->name,
 			 c->tech->type,
 			 c->uniqueid,
-			 (c->cid.cid_num ? c->cid.cid_num : "(N/A)"),
-			 (c->cid.cid_name ? c->cid.cid_name : "(N/A)"),
-			 (c->cid.cid_dnid ? c->cid.cid_dnid : "(N/A)" ),
+			 S_OR(c->cid.cid_num, "(N/A)"),
+			 S_OR(c->cid.cid_name, "(N/A)"),
+			 S_OR(c->cid.cid_dnid, "(N/A)"),
+			 S_OR(c->cid.cid_rdnis, "(N/A)"),
 			 ast_state2str(c->_state),
 			 c->_state,
 			 c->rings,



More information about the asterisk-commits mailing list