[svn-commits] trunk r32017 - in /trunk: apps/app_dumpchan.c
channels/chan_sip.c
svn-commits at lists.digium.com
svn-commits at lists.digium.com
Sun Jun 4 04:09:14 MST 2006
Author: oej
Date: Sun Jun 4 06:09:14 2006
New Revision: 32017
URL: http://svn.digium.com/view/asterisk?rev=32017&view=rev
Log:
- Typo in chan_sip (: missing)
- Only print formats once in dumpchan()
Modified:
trunk/apps/app_dumpchan.c
trunk/channels/chan_sip.c
Modified: trunk/apps/app_dumpchan.c
URL: http://svn.digium.com/view/asterisk/trunk/apps/app_dumpchan.c?rev=32017&r1=32016&r2=32017&view=diff
==============================================================================
--- trunk/apps/app_dumpchan.c (original)
+++ trunk/apps/app_dumpchan.c Sun Jun 4 06:09:14 2006
@@ -87,9 +87,9 @@
"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 @@
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,
Modified: trunk/channels/chan_sip.c
URL: http://svn.digium.com/view/asterisk/trunk/channels/chan_sip.c?rev=32017&r1=32016&r2=32017&view=diff
==============================================================================
--- trunk/channels/chan_sip.c (original)
+++ trunk/channels/chan_sip.c Sun Jun 4 06:09:14 2006
@@ -9257,7 +9257,7 @@
ast_cli(fd, " Non-Codec Capability (DTMF): %d\n", cur->noncodeccapability);
ast_cli(fd, " Their Codec Capability: %d\n", cur->peercapability);
ast_cli(fd, " Joint Codec Capability: %d\n", cur->jointcapability);
- ast_cli(fd, " Format %s\n", ast_getformatname_multiple(formatbuf, sizeof(formatbuf), cur->owner ? cur->owner->nativeformats : 0) );
+ ast_cli(fd, " Format: %s\n", ast_getformatname_multiple(formatbuf, sizeof(formatbuf), cur->owner ? cur->owner->nativeformats : 0) );
ast_cli(fd, " Theoretical Address: %s:%d\n", ast_inet_ntoa(iabuf, sizeof(iabuf), cur->sa.sin_addr), ntohs(cur->sa.sin_port));
ast_cli(fd, " Received Address: %s:%d\n", ast_inet_ntoa(iabuf, sizeof(iabuf), cur->recv.sin_addr), ntohs(cur->recv.sin_port));
ast_cli(fd, " SIP Transfer mode: %s\n", transfermode2str(cur->allowtransfer));
More information about the svn-commits
mailing list