[Asterisk-cvs] asterisk/apps app_alarmreceiver.c,1.12,1.13

kpfleming at lists.digium.com kpfleming at lists.digium.com
Mon Jul 11 16:38:10 CDT 2005


Update of /usr/cvsroot/asterisk/apps
In directory mongoose.digium.com:/tmp/cvs-serv11088/apps

Modified Files:
	app_alarmreceiver.c 
Log Message:
reverse arguments to ast_tvdiff_ms, so they match the 'raw' math being used between the arguments


Index: app_alarmreceiver.c
===================================================================
RCS file: /usr/cvsroot/asterisk/apps/app_alarmreceiver.c,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -d -r1.12 -r1.13
--- app_alarmreceiver.c	10 Jul 2005 23:12:25 -0000	1.12
+++ app_alarmreceiver.c	11 Jul 2005 20:46:25 -0000	1.13
@@ -242,7 +242,7 @@
 		gettimeofday(&now,NULL);
 		
 		  /* if outa time, leave */
-		if (ast_tvdiff_ms(&lastdigittime, &now) > 
+		if (ast_tvdiff_ms(&now, &lastdigittime) > 
 		    ((i > 0) ? sdto : fdto)){
 			if(option_verbose >= 4)
 				ast_verbose(VERBOSE_PREFIX_4 "AlarmReceiver: DTMF Digit Timeout on %s\n", chan->name);




More information about the svn-commits mailing list