[Freeswitch-svn] [commit] r8481 - in freeswitch/trunk/src: . include

Freeswitch SVN mikej at freeswitch.org
Mon May 19 18:23:11 EDT 2008


Author: mikej
Date: Mon May 19 18:23:11 2008
New Revision: 8481

Modified:
   freeswitch/trunk/src/include/switch_types.h
   freeswitch/trunk/src/switch_ivr_async.c

Log:
build tweak

Modified: freeswitch/trunk/src/include/switch_types.h
==============================================================================
--- freeswitch/trunk/src/include/switch_types.h	(original)
+++ freeswitch/trunk/src/include/switch_types.h	Mon May 19 18:23:11 2008
@@ -160,8 +160,8 @@
 } switch_bind_flag_t;
 
 typedef enum {
-	SWITCH_DTMF_RECV,
-	SWITCH_DTMF_SEND
+	SWITCH_DTMF_RECV = 0,
+	SWITCH_DTMF_SEND = 1
 } switch_dtmf_direction_t;
 
 typedef enum {

Modified: freeswitch/trunk/src/switch_ivr_async.c
==============================================================================
--- freeswitch/trunk/src/switch_ivr_async.c	(original)
+++ freeswitch/trunk/src/switch_ivr_async.c	Mon May 19 18:23:11 2008
@@ -1309,7 +1309,7 @@
 } dtmf_meta_settings_t;
 
 typedef struct {
-	dtmf_meta_settings_t sr[2];
+	dtmf_meta_settings_t sr[3];
 } dtmf_meta_data_t;
 
 #define SWITCH_META_VAR_KEY "__dtmf_meta"
@@ -1354,9 +1354,9 @@
 
 	if (md->sr[direction].meta_on) {
 		if (dtmf->digit >= '0' && dtmf->digit <= '9') {
+			int ok = 0;
 			*digit = dtmf->digit;
 			dval = atoi(digit);
-			int ok = 0;
 
 			if (direction == SWITCH_DTMF_RECV && (md->sr[direction].map[dval].bind_flags & SBF_DIAL_ALEG)) { 
 				ok = 1;



More information about the Freeswitch-svn mailing list