aboutsummaryrefslogtreecommitdiffstats
path: root/apps/app_dumpchan.c
diff options
context:
space:
mode:
authorrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2007-02-16 22:21:16 +0000
committerrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2007-02-16 22:21:16 +0000
commit20a9560f866278dea7c56786837b2dc70aa4041e (patch)
treec384b912f27ca32f95acc5286a5fae3c9f3a9b97 /apps/app_dumpchan.c
parent1a07824577da1f4e7b2cf5a3ba836fe6452e482d (diff)
Print the raw read/write formats in the DumpChan application.
(issue #9083, junky) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@55004 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps/app_dumpchan.c')
-rw-r--r--apps/app_dumpchan.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/app_dumpchan.c b/apps/app_dumpchan.c
index ca7897e4e..58dcfc8e8 100644
--- a/apps/app_dumpchan.c
+++ b/apps/app_dumpchan.c
@@ -91,6 +91,8 @@ static int serialize_showchan(struct ast_channel *c, char *buf, size_t size)
"NativeFormat= %s\n"
"WriteFormat= %s\n"
"ReadFormat= %s\n"
+ "RawWriteFormat= %s\n"
+ "RawReadFormat= %s\n"
"1stFileDescriptor= %d\n"
"Framesin= %d %s\n"
"Framesout= %d %s\n"
@@ -117,6 +119,8 @@ static int serialize_showchan(struct ast_channel *c, char *buf, size_t size)
ast_getformatname_multiple(formatbuf, sizeof(formatbuf), c->nativeformats),
ast_getformatname_multiple(formatbuf, sizeof(formatbuf), c->writeformat),
ast_getformatname_multiple(formatbuf, sizeof(formatbuf), c->readformat),
+ ast_getformatname_multiple(formatbuf, sizeof(formatbuf), c->rawwriteformat),
+ ast_getformatname_multiple(formatbuf, sizeof(formatbuf), c->rawreadformat),
c->fds[0], c->fin & ~DEBUGCHAN_FLAG, (c->fin & DEBUGCHAN_FLAG) ? " (DEBUGGED)" : "",
c->fout & ~DEBUGCHAN_FLAG, (c->fout & DEBUGCHAN_FLAG) ? " (DEBUGGED)" : "", (long)c->whentohangup,
hour,