how to play wav files according to inputs given?

Jan 4 2012 11:07 PM
Hello hi,
My program is like this,
PLEASE ENTER DESTINATION NUMBER:
( THEN USER INPUTS A SERIES OF NUMBERS LIKE 238947864)

How do i play wav files of dtmf tones corresponding to the numbers given? (I already have the wav files for numbers 0-9 and alphabets A-D.)
i have used swith case, but it doesnt work. Only if one number is entered it plays the corresponding dtmf wav file and exits.

But if i were to enter a series of number like 2873649, the program exits without playing at all.

thanks.
Trinetra