[asterisk-commits] branch oej/test-this-branch r11980 - /team/oej/test-this-branch/channels/

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Mon Mar 6 02:13:32 MST 2006


Author: oej
Date: Mon Mar  6 03:13:30 2006
New Revision: 11980

URL: http://svn.digium.com/view/asterisk?rev=11980&view=rev
Log:
Fix from Luigi Rizzo

Modified:
    team/oej/test-this-branch/channels/chan_zap.c

Modified: team/oej/test-this-branch/channels/chan_zap.c
URL: http://svn.digium.com/view/asterisk/team/oej/test-this-branch/channels/chan_zap.c?rev=11980&r1=11979&r2=11980&view=diff
==============================================================================
--- team/oej/test-this-branch/channels/chan_zap.c (original)
+++ team/oej/test-this-branch/channels/chan_zap.c Mon Mar  6 03:13:30 2006
@@ -2593,12 +2593,13 @@
 		
 		if (p->hdlc) {
 			int x=1;
+			int bs=READ_SIZE;
+
 			res = ioctl(p->subs[SUB_REAL].zfd, ZT_AUDIOMODE, &x);
 			if (res < 0) 
 				ast_log(LOG_WARNING, "Unable to set Audiomode on channel %d to default\n", p->channel);
 			p->hdlc = 0;
 
-			int bs=READ_SIZE;
 			if (ioctl(p->subs[SUB_REAL].zfd, ZT_SET_BLOCKSIZE, &bs) == -1) 
 				ast_log(LOG_WARNING, "Unable to change the blocksize on channel %d to :%d\n", p->channel, bs);
 



More information about the asterisk-commits mailing list