[asterisk-commits] sruffell: branch sruffell/asterisk-fax-test r129069 - /team/sruffell/asterisk...
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Tue Jul 8 12:23:56 CDT 2008
Author: sruffell
Date: Tue Jul 8 12:23:55 2008
New Revision: 129069
URL: http://svn.digium.com/view/asterisk?view=rev&rev=129069
Log:
Changing the buffering policy on output for some simple testing.
Modified:
team/sruffell/asterisk-fax-test/channels/chan_zap.c
Modified: team/sruffell/asterisk-fax-test/channels/chan_zap.c
URL: http://svn.digium.com/view/asterisk/team/sruffell/asterisk-fax-test/channels/chan_zap.c?view=diff&rev=129069&r1=129068&r2=129069
==============================================================================
--- team/sruffell/asterisk-fax-test/channels/chan_zap.c (original)
+++ team/sruffell/asterisk-fax-test/channels/chan_zap.c Tue Jul 8 12:23:55 2008
@@ -935,7 +935,7 @@
if (p->subs[x].zfd > -1) {
res = ioctl(p->subs[x].zfd, ZT_GET_BUFINFO, &bi);
if (!res) {
- bi.txbufpolicy = ZT_POLICY_IMMEDIATE;
+ bi.txbufpolicy = ZT_POLICY_WHEN_FULL;
bi.rxbufpolicy = ZT_POLICY_IMMEDIATE;
bi.numbufs = numbufs;
res = ioctl(p->subs[x].zfd, ZT_SET_BUFINFO, &bi);
@@ -7426,7 +7426,7 @@
memset(&bi, 0, sizeof(bi));
res = ioctl(tmp->subs[SUB_REAL].zfd, ZT_GET_BUFINFO, &bi);
if (!res) {
- bi.txbufpolicy = ZT_POLICY_IMMEDIATE;
+ bi.txbufpolicy = ZT_POLICY_WHEN_FULL;
bi.rxbufpolicy = ZT_POLICY_IMMEDIATE;
bi.numbufs = numbufs;
res = ioctl(tmp->subs[SUB_REAL].zfd, ZT_SET_BUFINFO, &bi);
@@ -7734,7 +7734,7 @@
}
res = ioctl(p->subs[SUB_REAL].zfd, ZT_GET_BUFINFO, &bi);
if (!res) {
- bi.txbufpolicy = ZT_POLICY_IMMEDIATE;
+ bi.txbufpolicy = ZT_POLICY_WHEN_FULL;
bi.rxbufpolicy = ZT_POLICY_IMMEDIATE;
bi.numbufs = numbufs;
res = ioctl(p->subs[SUB_REAL].zfd, ZT_SET_BUFINFO, &bi);
@@ -9493,7 +9493,7 @@
pri->dchanavail[i] |= DCHAN_NOTINALARM;
else
pri->dchanavail[i] &= ~DCHAN_NOTINALARM;
- bi.txbufpolicy = ZT_POLICY_IMMEDIATE;
+ bi.txbufpolicy = ZT_POLICY_WHEN_FULL;
bi.rxbufpolicy = ZT_POLICY_IMMEDIATE;
bi.numbufs = 32;
bi.bufsize = 1024;
More information about the asterisk-commits
mailing list