Record fingered numbers

I need to record in a database fingered numbers by an IVR. After that I need to send an SMS to the registered number. I need to know if I can do this using the FreePBX or will I have to do that from the Asterisk. If so would appreciate any documentation you have about this.