aboutsummaryrefslogtreecommitdiffstats
path: root/apps/app_dumpchan.c
diff options
context:
space:
mode:
authoroej <oej@f38db490-d61c-443f-a65b-d21fe96a405b>2006-06-04 11:09:14 +0000
committeroej <oej@f38db490-d61c-443f-a65b-d21fe96a405b>2006-06-04 11:09:14 +0000
commitd83ea735dc1addcbd6ee876f649cfecbcdb196e6 (patch)
treec19a84aad9d00ce7e081398f676ed0aea11a6da3 /apps/app_dumpchan.c
parent2f74da0c495ef2a7861be94f3eddfeb4cf73c335 (diff)
- Typo in chan_sip (: missing)
- Only print formats once in dumpchan() git-svn-id: http://svn.digium.com/svn/asterisk/trunk@32017 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps/app_dumpchan.c')
-rw-r--r--apps/app_dumpchan.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/apps/app_dumpchan.c b/apps/app_dumpchan.c
index b0dbb01ef..b5cebcf7f 100644
--- a/apps/app_dumpchan.c
+++ b/apps/app_dumpchan.c
@@ -87,9 +87,9 @@ static int ast_serialize_showchan(struct ast_channel *c, char *buf, size_t size)
"DNIDDigits= %s\n"
"State= %s (%d)\n"
"Rings= %d\n"
- "NativeFormat= %d %s\n"
- "WriteFormat= %d %s\n"
- "ReadFormat= %d %s\n"
+ "NativeFormat= %s\n"
+ "WriteFormat= %s\n"
+ "ReadFormat= %s\n"
"1stFileDescriptor= %d\n"
"Framesin= %d %s\n"
"Framesout= %d %s\n"
@@ -112,11 +112,8 @@ static int ast_serialize_showchan(struct ast_channel *c, char *buf, size_t size)
ast_state2str(c->_state),
c->_state,
c->rings,
- c->nativeformats,
ast_getformatname_multiple(formatbuf, sizeof(formatbuf), c->nativeformats),
- c->writeformat,
ast_getformatname_multiple(formatbuf, sizeof(formatbuf), c->writeformat),
- c->readformat,
ast_getformatname_multiple(formatbuf, sizeof(formatbuf), c->readformat),
c->fds[0], c->fin & ~DEBUGCHAN_FLAG, (c->fin & DEBUGCHAN_FLAG) ? " (DEBUGGED)" : "",
c->fout & ~DEBUGCHAN_FLAG, (c->fout & DEBUGCHAN_FLAG) ? " (DEBUGGED)" : "", (long)c->whentohangup,