The recording function just initiates a call to the specified extension. Whatever answers that call is responsible for recording the audio. If your recording is winding up in voice mail, then somehow the call is getting to the voice mail extension. If the call hits voice mail, then the recording will be saved in the mailbox of the extension specified in strContext
. The only other option is to send the call to a route point and record the audio yourself.
As a note, the better place to ask for help is the ShoreTel Developer Network group.