>>>>Yup, there is a setup that need to be done. If I use my regular phone, as soon as the voice mail kicks in, I can type 3, then I have the message that says do you want to save. If I do the same from the modem, it is not sent as is as the cell phone voice mail says "We haven't received any message, blah, blah...".
>>>
>>>OK. Look in your manual for something along the lines of Voice Line Selection or something similar. You do have a voice capable modem there, right?
>>
>>I have a US Robotics Sporters 56.
>
>Well, as long as it say Fax/Data/Voice somewhere, you can do most anything with it. Now do you understand what I was saying about TAPI? It insulates you from a lot of this fiddling around...
Well, we have it working here. It was a syntax problem:
oPhone=CREATEOBJECT('Form')
oPhone.AddObject('Phone','Olecontrol','MSCOMMLib.MSComm')
oPhone.Phone.Settings='9600,N,8,1'
WAIT WINDOW 'Setting up modem' TIMEOUT 1
oPhone.Phone.CommPort=1
WAIT WINDOW 'Setting up comm port' TIMEOUT 1
oPhone.Phone.PortOpen=.T.
WAIT WINDOW 'Opening port' TIMEOUT 1
oPhone.Phone.Output='ATDT123-4567;'+CHR(13)
FOR lnCompteur=1 TO 37
WAIT WINDOW 'Dialing '+ALLTRIM(STR(lnCompteur)) TIMEOUT 1
NEXT
oPhone.Phone.Output='AT3'+CHR(13)
WAIT WINDOW 'Sending phone number' TIMEOUT 1
oPhone.Phone.Output='ATH'+CHR(13)
WAIT WINDOW 'Closing the connection' TIMEOUT 1
oPhone.Phone.PortOpen=.F.
Basically, using the AT command with a number forces the voice mail to record a blank message. I tried sending my full number but that doesn't get recorded or recognized from the source of the number.
So, at least, I now have my voice mail recorded in case I can't take the call. So, by listening to it, I'll see a voice mail blank and I'll verify the application.