Sheetal,
If you happen to be doing this entirely in software (e.g. generate a sine wave and save it to a wav file), then you might take a look at a shipping example entitled Sim Phone.vi (open Example Finder from Help >> Find Examples and search for "phone").
That example doesn't save anything, but I made a modified version a while ago that records the keypad sequence to file (attached; LV 7.1). It might also be instructional because I switched things from 8-bit (the shipping example) to 16-bit format for my example, so you can see some of the issues related to amplitude and using the appropriate inputs to the sound VIs.
Regards,
John