aboutsummaryrefslogtreecommitdiffstats
path: root/main/cli.c
diff options
context:
space:
mode:
authorrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2007-03-02 16:59:22 +0000
committerrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2007-03-02 16:59:22 +0000
commitb58b2092937babf1e70e0482624aca62b5c4b3d6 (patch)
tree302d83525330f7e86e8dc2558fd2fab75411a398 /main/cli.c
parent40b2713d84d4d3681fdbdd0e3f9a1cbd12749e6b (diff)
Add the channel's Language to the "show channel" CLI command and the DumpChan
application. (issue #9187, Junky) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@57474 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main/cli.c')
-rw-r--r--main/cli.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/main/cli.c b/main/cli.c
index 74bcfd87d..b84739984 100644
--- a/main/cli.c
+++ b/main/cli.c
@@ -801,6 +801,7 @@ static int handle_showchan(int fd, int argc, char *argv[])
" 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 @@ static int handle_showchan(int fd, int argc, char *argv[])
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),