[svn-commits] russell: branch group/vldtmf r39475 - /team/group/vldtmf/channels/chan_zap.c

svn-commits at lists.digium.com svn-commits at lists.digium.com
Tue Aug 8 23:42:57 MST 2006


Author: russell
Date: Wed Aug  9 01:42:57 2006
New Revision: 39475

URL: http://svn.digium.com/view/asterisk?rev=39475&view=rev
Log:
- set dialing to 0 when stopping the DTMF tone on the channel
- add a couple of debug messages

Modified:
    team/group/vldtmf/channels/chan_zap.c

Modified: team/group/vldtmf/channels/chan_zap.c
URL: http://svn.digium.com/view/asterisk/team/group/vldtmf/channels/chan_zap.c?rev=39475&r1=39474&r2=39475&view=diff
==============================================================================
--- team/group/vldtmf/channels/chan_zap.c (original)
+++ team/group/vldtmf/channels/chan_zap.c Wed Aug  9 01:42:57 2006
@@ -1060,6 +1060,7 @@
 		goto out;
 
 	if (!ioctl(pvt->subs[SUB_REAL].zfd, ZT_SENDTONE, &dtmf)) {
+		ast_log(LOG_DEBUG, "Started VLDTMF digit '%c'\n", digit);
 		pvt->dialing = 1;
 		pvt->begindigit = dtmf;
 	} else
@@ -1115,11 +1116,13 @@
 			else
 				pvt->dialing = 1;
 		} else {
+			ast_log(LOG_DEBUG, "Ending VLDTMF digit '%c'\n", digit);
 			if (pvt->begindigit != digit_to_dtmfindex(digit)) {
 				ast_log(LOG_WARNING, "We already started playing dtmf index '%c', but asked to end digit '%c'!  :(\n",
 					dtmfindex_to_digit(pvt->begindigit), digit);
 			}
 			res = ioctl(pvt->subs[SUB_REAL].zfd, ZT_SENDTONE, -1);
+			pvt->dialing = 0;
 			pvt->begindigit = 0;
 		}
 	}



More information about the svn-commits mailing list