mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-06 12:36:58 +00:00
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
This commit is contained in:
@@ -86,6 +86,7 @@ static int serialize_showchan(struct ast_channel *c, char *buf, size_t size)
|
|||||||
"CallerIDName= %s\n"
|
"CallerIDName= %s\n"
|
||||||
"DNIDDigits= %s\n"
|
"DNIDDigits= %s\n"
|
||||||
"RDNIS= %s\n"
|
"RDNIS= %s\n"
|
||||||
|
"Language= %s\n"
|
||||||
"State= %s (%d)\n"
|
"State= %s (%d)\n"
|
||||||
"Rings= %d\n"
|
"Rings= %d\n"
|
||||||
"NativeFormat= %s\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_name, "(N/A)"),
|
||||||
S_OR(c->cid.cid_dnid, "(N/A)"),
|
S_OR(c->cid.cid_dnid, "(N/A)"),
|
||||||
S_OR(c->cid.cid_rdnis, "(N/A)"),
|
S_OR(c->cid.cid_rdnis, "(N/A)"),
|
||||||
|
c->language,
|
||||||
ast_state2str(c->_state),
|
ast_state2str(c->_state),
|
||||||
c->_state,
|
c->_state,
|
||||||
c->rings,
|
c->rings,
|
||||||
|
@@ -801,6 +801,7 @@ static int handle_showchan(int fd, int argc, char *argv[])
|
|||||||
" Caller ID: %s\n"
|
" Caller ID: %s\n"
|
||||||
" Caller ID Name: %s\n"
|
" Caller ID Name: %s\n"
|
||||||
" DNID Digits: %s\n"
|
" DNID Digits: %s\n"
|
||||||
|
" Language: %s\n"
|
||||||
" State: %s (%d)\n"
|
" State: %s (%d)\n"
|
||||||
" Rings: %d\n"
|
" Rings: %d\n"
|
||||||
" NativeFormats: %s\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,
|
c->name, c->tech->type, c->uniqueid,
|
||||||
S_OR(c->cid.cid_num, "(N/A)"),
|
S_OR(c->cid.cid_num, "(N/A)"),
|
||||||
S_OR(c->cid.cid_name, "(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(nf, sizeof(nf), c->nativeformats),
|
||||||
ast_getformatname_multiple(wf, sizeof(wf), c->writeformat),
|
ast_getformatname_multiple(wf, sizeof(wf), c->writeformat),
|
||||||
ast_getformatname_multiple(rf, sizeof(rf), c->readformat),
|
ast_getformatname_multiple(rf, sizeof(rf), c->readformat),
|
||||||
|
Reference in New Issue
Block a user