From e2ef61814fc960fa878d8f7b7ac98d27c51fc6ca Mon Sep 17 00:00:00 2001 From: Mark Spencer Date: Sat, 7 Jan 2006 17:54:22 +0000 Subject: Add support for H.264 with SIP and recording git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@7855 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- cli.c | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'cli.c') diff --git a/cli.c b/cli.c index 7ad4d5ff6..5c0f38fb4 100644 --- a/cli.c +++ b/cli.c @@ -738,6 +738,7 @@ static int handle_showchan(int fd, int argc, char *argv[]) struct timeval now; char buf[2048]; char cdrtime[256]; + char nf[256], wf[256], rf[256]; long elapsed_seconds=0; int hour=0, min=0, sec=0; @@ -767,9 +768,9 @@ static int handle_showchan(int fd, int argc, char *argv[]) " DNID Digits: %s\n" " State: %s (%d)\n" " Rings: %d\n" - " NativeFormat: %d\n" - " WriteFormat: %d\n" - " ReadFormat: %d\n" + " NativeFormats: %s\n" + " WriteFormat: %s\n" + " ReadFormat: %s\n" "1st File Descriptor: %d\n" " Frames in: %d%s\n" " Frames out: %d%s\n" @@ -789,7 +790,10 @@ static int handle_showchan(int fd, int argc, char *argv[]) c->name, c->type, c->uniqueid, (c->cid.cid_num ? c->cid.cid_num : "(N/A)"), (c->cid.cid_name ? c->cid.cid_name : "(N/A)"), - (c->cid.cid_dnid ? c->cid.cid_dnid : "(N/A)" ), ast_state2str(c->_state), c->_state, c->rings, c->nativeformats, c->writeformat, c->readformat, + (c->cid.cid_dnid ? c->cid.cid_dnid : "(N/A)" ), 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), c->fds[0], c->fin & 0x7fffffff, (c->fin & 0x80000000) ? " (DEBUGGED)" : "", c->fout & 0x7fffffff, (c->fout & 0x80000000) ? " (DEBUGGED)" : "", (long)c->whentohangup, cdrtime, c->_bridge ? c->_bridge->name : "", ast_bridged_channel(c) ? ast_bridged_channel(c)->name : "", -- cgit v1.2.3