[asterisk-commits] russell: trunk r57474 - in /trunk: apps/app_dumpchan.c main/cli.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Fri Mar 2 09:59:22 MST 2007


Author: russell
Date: Fri Mar  2 10:59:22 2007
New Revision: 57474

URL: http://svn.digium.com/view/asterisk?view=rev&rev=57474
Log:
Add the channel's Language to the "show channel" CLI command and the DumpChan
application.  (issue #9187, Junky)

Modified:
    trunk/apps/app_dumpchan.c
    trunk/main/cli.c

Modified: trunk/apps/app_dumpchan.c
URL: http://svn.digium.com/view/asterisk/trunk/apps/app_dumpchan.c?view=diff&rev=57474&r1=57473&r2=57474
==============================================================================
--- trunk/apps/app_dumpchan.c (original)
+++ trunk/apps/app_dumpchan.c Fri Mar  2 10:59:22 2007
@@ -85,7 +85,8 @@
 			 "CallerIDNum=        %s\n"
 			 "CallerIDName=       %s\n"
 			 "DNIDDigits=         %s\n"
-			 "RDNIS=              %s\n" 
+			 "RDNIS=              %s\n"
+ 			 "Language=           %s\n"
 			 "State=              %s (%d)\n"
 			 "Rings=              %d\n"
 			 "NativeFormat=       %s\n"
@@ -113,6 +114,7 @@
 			 S_OR(c->cid.cid_name, "(N/A)"),
 			 S_OR(c->cid.cid_dnid, "(N/A)"),
 			 S_OR(c->cid.cid_rdnis, "(N/A)"),
+			 c->language,
 			 ast_state2str(c->_state),
 			 c->_state,
 			 c->rings,

Modified: trunk/main/cli.c
URL: http://svn.digium.com/view/asterisk/trunk/main/cli.c?view=diff&rev=57474&r1=57473&r2=57474
==============================================================================
--- trunk/main/cli.c (original)
+++ trunk/main/cli.c Fri Mar  2 10:59:22 2007
@@ -801,6 +801,7 @@
 		"      Caller ID: %s\n"
 		" Caller ID Name: %s\n"
 		"    DNID Digits: %s\n"
+		"       Language: %s\n"
 		"          State: %s (%d)\n"
 		"          Rings: %d\n"
 		"  NativeFormats: %s\n"
@@ -827,7 +828,9 @@
 		c->name, c->tech->type, c->uniqueid,
 		S_OR(c->cid.cid_num, "(N/A)"),
 		S_OR(c->cid.cid_name, "(N/A)"),
-		S_OR(c->cid.cid_dnid, "(N/A)"), ast_state2str(c->_state), c->_state, c->rings, 
+		S_OR(c->cid.cid_dnid, "(N/A)"), 
+		c->language,	
+		ast_state2str(c->_state), c->_state, c->rings, 
 		ast_getformatname_multiple(nf, sizeof(nf), c->nativeformats), 
 		ast_getformatname_multiple(wf, sizeof(wf), c->writeformat), 
 		ast_getformatname_multiple(rf, sizeof(rf), c->readformat),



More information about the asterisk-commits mailing list