[asterisk-commits] markster: trunk r42654 - /trunk/channels/chan_zap.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Sun Sep 10 13:28:03 MST 2006


Author: markster
Date: Sun Sep 10 15:28:03 2006
New Revision: 42654

URL: http://svn.digium.com/view/asterisk?rev=42654&view=rev
Log:
Uhm, make Zap actually work again.  Did anybody actually test that code?

Modified:
    trunk/channels/chan_zap.c

Modified: trunk/channels/chan_zap.c
URL: http://svn.digium.com/view/asterisk/trunk/channels/chan_zap.c?rev=42654&r1=42653&r2=42654&view=diff
==============================================================================
--- trunk/channels/chan_zap.c (original)
+++ trunk/channels/chan_zap.c Sun Sep 10 15:28:03 2006
@@ -1822,7 +1822,7 @@
 	set_actual_gain(p->subs[SUB_REAL].zfd, 0, p->rxgain, p->txgain, p->law);
 
 	mysig = p->sig;
-	if (p->outsigmod)
+	if (p->outsigmod > -1)
 		mysig = p->outsigmod;
 
 	switch (mysig) {
@@ -3593,7 +3593,7 @@
 
 	index = zt_get_index(ast, p, 0);
 	mysig = p->sig;
-	if (p->outsigmod)
+	if (p->outsigmod > -1)
 		mysig = p->outsigmod;
 	p->subs[index].f.frametype = AST_FRAME_NULL;
 	p->subs[index].f.subclass = 0;
@@ -10448,7 +10448,7 @@
 					finish = start;
 					start = x;
 				}
-				if (cur_outsignalling < 0) cur_outsignalling = cur_signalling;
+
 				for (x = start; x <= finish; x++) {
 #ifdef HAVE_PRI
 					tmp = mkintf(x, cur_signalling, cur_outsignalling, cur_radio, pri, reload);



More information about the asterisk-commits mailing list