[zaptel-commits] kpfleming: branch 1.2 r3389 - /branches/1.2/wctc4xxp/base.c

SVN commits to the Zaptel project zaptel-commits at lists.digium.com
Mon Dec 10 11:25:00 CST 2007


Author: kpfleming
Date: Mon Dec 10 11:24:59 2007
New Revision: 3389

URL: http://svn.digium.com/view/zaptel?view=rev&rev=3389
Log:
remove explicit references to 5.3kb/s mode in wctc4xxp driver, as the driver can now accept both 5.3kb/s and 6.3kb/s (but will still only generate 6.3kb/s)

Modified:
    branches/1.2/wctc4xxp/base.c

Modified: branches/1.2/wctc4xxp/base.c
URL: http://svn.digium.com/view/zaptel/branches/1.2/wctc4xxp/base.c?view=diff&rev=3389&r1=3388&r2=3389
==============================================================================
--- branches/1.2/wctc4xxp/base.c (original)
+++ branches/1.2/wctc4xxp/base.c Mon Dec 10 11:24:59 2007
@@ -1772,27 +1772,20 @@
 
 			/* Setup Encoders and Decoders */
 
-			if (!mode || strlen(mode) < 4)
-			{
-				sprintf(wc->complexname, "g.729a / g.723.1 5.3kbps");
+			if (!mode || strlen(mode) < 4) {
+				sprintf(wc->complexname, "G.729a / G.723.1");
  				complexfmts = ZT_FORMAT_G729A | ZT_FORMAT_G723_1;
 				wc->numchannels = min_numchannels;
-			}
-			else if (mode[3] == '9')	/* "g729" */
-			{
-				sprintf(wc->complexname, "g.729a");
+			} else if (mode[3] == '9') {	/* "G.729" */
+				sprintf(wc->complexname, "G.729a");
 				complexfmts = ZT_FORMAT_G729A;
 				wc->numchannels = g729_numchannels;
-			}
-			else if (mode[3] == '3')	/* "g723" */
-			{
-				sprintf(wc->complexname, "g.723.1 5.3kbps");
+			} else if (mode[3] == '3') {	/* "G.723.1" */
+				sprintf(wc->complexname, "G.723.1");
 				complexfmts = ZT_FORMAT_G723_1;
 				wc->numchannels = g723_numchannels;
-			}
-			else
-			{
-				sprintf(wc->complexname, "g.729a / g.723.1 5.3kbps");
+			} else {
+				sprintf(wc->complexname, "G.729a / G.723.1");
 				complexfmts = ZT_FORMAT_G729A | ZT_FORMAT_G723_1;
 				wc->numchannels = min_numchannels;
 			}




More information about the zaptel-commits mailing list