         #endif
       }   
       else {
+        numindex = 0;//empty 
         #ifdef DEBUG
         putstring_nl("hang high");
         #endif

          }
          
          if(match) {
            playfile("ESP.WAV");
          }
          
          
        }  
      }
    }

FatReader f;      // This holds the information for the file we're play
WaveHC wave;      // This is the only wave (audio) object, since we will only play one at a time

#define hangPin  6 //pin for reciever switch. closed (HIGH) when hung up, open (LOW) when off the hook
#define dialPin 7 //pin for dialing switch. close (HIGH) when  dialing, open (LOW) when not dialing
#define countPin 8 //pin for counting switch.  closed (HIGH) for don't count, open (LOW) for each count
#define ledPin 13 //LED pin

int dialCount = 0;
#define DIAL_ARRAY_LEN 10
int dialArray[DIAL_ARRAY_LEN];
int dialIndex = 0;

