diff options
author | Russell Bryant <russell@russellbryant.com> | 2007-03-02 16:59:22 +0000 |
---|---|---|
committer | Russell Bryant <russell@russellbryant.com> | 2007-03-02 16:59:22 +0000 |
commit | 40e95cd19d3fac1949314412f65568d3aabc291a (patch) | |
tree | 302d83525330f7e86e8dc2558fd2fab75411a398 | |
parent | 91a9b97a73d3ef8a809214ec865666a7a2d55807 (diff) |
Add the channel's Language to the "show channel" CLI command and the DumpChan
application. (issue #9187, Junky)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@57474 65c4cc65-6c06-0410-ace0-fbb531ad65f3
-rw-r--r-- | apps/app_dumpchan.c | 4 | ||||
-rw-r--r-- | main/cli.c | 5 |
2 files changed, 7 insertions, 2 deletions
diff --git a/apps/app_dumpchan.c b/apps/app_dumpchan.c index 58dcfc8e8..8fca2b64a 100644 --- a/apps/app_dumpchan.c +++ b/apps/app_dumpchan.c @@ -85,7 +85,8 @@ static int serialize_showchan(struct ast_channel *c, char *buf, size_t size) "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 @@ static int serialize_showchan(struct ast_channel *c, char *buf, size_t size) 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, 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), |