[asterisk-commits] sruffell: branch sruffell/asterisk-1.6-bufpolicy r129495 - /team/sruffell/ast...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed Jul 9 16:40:30 CDT 2008


Author: sruffell
Date: Wed Jul  9 16:40:29 2008
New Revision: 129495

URL: http://svn.digium.com/view/asterisk?view=rev&rev=129495
Log:
Saving work in progress on chan_dahdi buffering policies.

Modified:
    team/sruffell/asterisk-1.6-bufpolicy/channels/chan_dahdi.c

Modified: team/sruffell/asterisk-1.6-bufpolicy/channels/chan_dahdi.c
URL: http://svn.digium.com/view/asterisk/team/sruffell/asterisk-1.6-bufpolicy/channels/chan_dahdi.c?view=diff&rev=129495&r1=129494&r2=129495
==============================================================================
--- team/sruffell/asterisk-1.6-bufpolicy/channels/chan_dahdi.c (original)
+++ team/sruffell/asterisk-1.6-bufpolicy/channels/chan_dahdi.c Wed Jul  9 16:40:29 2008
@@ -1143,7 +1143,7 @@
 
 	res = ioctl(p->subs[x].zfd, DAHDI_GET_BUFINFO, &bi);
 	if (!res) {
-		bi.txbufpolicy = DAHDI_POLICY_IMMEDIATE;
+		bi.txbufpolicy = DAHDI_POLICY_DEFAULT;
 		bi.rxbufpolicy = DAHDI_POLICY_IMMEDIATE;
 		bi.numbufs = numbufs;
 		res = ioctl(p->subs[x].zfd, DAHDI_SET_BUFINFO, &bi);
@@ -8385,7 +8385,7 @@
 			memset(&bi, 0, sizeof(bi));
 			res = ioctl(tmp->subs[SUB_REAL].zfd, DAHDI_GET_BUFINFO, &bi);
 			if (!res) {
-				bi.txbufpolicy = DAHDI_POLICY_IMMEDIATE;
+				bi.txbufpolicy = DAHDI_POLICY_DEFAULT;
 				bi.rxbufpolicy = DAHDI_POLICY_IMMEDIATE;
 				bi.numbufs = numbufs;
 				res = ioctl(tmp->subs[SUB_REAL].zfd, DAHDI_SET_BUFINFO, &bi);
@@ -8740,7 +8740,7 @@
 		}
 		res = ioctl(p->subs[SUB_REAL].zfd, DAHDI_GET_BUFINFO, &bi);
 		if (!res) {
-			bi.txbufpolicy = DAHDI_POLICY_IMMEDIATE;
+			bi.txbufpolicy = DAHDI_POLICY_DEFAULT;
 			bi.rxbufpolicy = DAHDI_POLICY_IMMEDIATE;
 			bi.numbufs = numbufs;
 			res = ioctl(p->subs[SUB_REAL].zfd, DAHDI_SET_BUFINFO, &bi);
@@ -11298,7 +11298,7 @@
 			pri->dchanavail[i] |= DCHAN_NOTINALARM;
 		else
 			pri->dchanavail[i] &= ~DCHAN_NOTINALARM;
-		bi.txbufpolicy = DAHDI_POLICY_IMMEDIATE;
+		bi.txbufpolicy = DAHDI_POLICY_DEFAULT;
 		bi.rxbufpolicy = DAHDI_POLICY_IMMEDIATE;
 		bi.numbufs = 32;
 		bi.bufsize = 1024;
@@ -13036,7 +13036,7 @@
 			return -1;
 		}
 
-		bi.txbufpolicy = DAHDI_POLICY_IMMEDIATE;
+		bi.txbufpolicy = DAHDI_POLICY_DEFAULT;
 		bi.rxbufpolicy = DAHDI_POLICY_IMMEDIATE;
 		bi.numbufs = 32;
 		bi.bufsize = 512;




More information about the asterisk-commits mailing list