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

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Sat Sep 16 14:45:36 MST 2006


Author: markster
Date: Sat Sep 16 16:45:35 2006
New Revision: 43039

URL: http://svn.digium.com/view/asterisk?rev=43039&view=rev
Log:
Fix the dtmf dialtone thing

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=43039&r1=43038&r2=43039&view=diff
==============================================================================
--- trunk/channels/chan_zap.c (original)
+++ trunk/channels/chan_zap.c Sat Sep 16 16:45:35 2006
@@ -1086,6 +1086,7 @@
 	struct zt_pvt *pvt;
 	int res = 0;
 	int index;
+	int x;
 	
 	pvt = chan->tech_pvt;
 
@@ -1103,8 +1104,9 @@
 #endif
 
 	if (pvt->begindigit) {
+		x = -1;
 		ast_log(LOG_DEBUG, "Ending VLDTMF digit '%c'\n", digit);
-		res = ioctl(pvt->subs[SUB_REAL].zfd, ZT_SENDTONE, -1);
+		res = ioctl(pvt->subs[SUB_REAL].zfd, ZT_SENDTONE, &x);
 		pvt->dialing = 0;
 		pvt->begindigit = 0;
 	}



More information about the asterisk-commits mailing list