Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Sending a phone call for a voice mail
Message
De
13/07/2001 13:57:40
 
 
À
13/07/2001 13:51:18
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Divers
Thread ID:
00530268
Message ID:
00530419
Vues:
33
>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.

GREAT! Just for my info, comment out your AT3+CHR(13) output and tell me what happens. Or just give me your voicemail number. :>)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform