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 12:06:16
 
 
À
13/07/2001 11:51:33
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Divers
Thread ID:
00530268
Message ID:
00530330
Vues:
32
>>>Ok, now that I have succeeded in dialing a phone number, I need to be able to have the modem to stay connected as long as the voice mail message is over so a message will be left. Here is the code I have so far. Anyone know how to achieve that?
>>>
>>>
>>>PUBLIC oPhone
>>>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='ATDT923-1406'+CHR(13)
>>>WAIT WINDOW 'Dialing' TIMEOUT 1
>>>
>>
>>I'm not sure how to do what you want, but would this package suit your needs (I haven't tried it).
>>
>>http://www.voicemailspecial.com/
>
>Well, when I dial, I hear it rings. Then, the voice mail starts (which means the call gets answered) but there is no event which is fired in onComm(). This is what I don't understand.


a) What would normally happen is that you have a modem at the other end, which then negotiate a connection speed & then come back & tell you at what speed you've connected. If there's no modem, normally you get back a message saying not connected & the originating modem drops the line.

b) To get the OnComm to fire, you need to set the CommEvent & Rthreshold values.

c) I'm not totally sure of what you're trying to achieve, but if I'm right, I think you need a modem with voice capability & suitable sound driver. I think you need to access the sound driver to determine when there is silence & then send the voice mail via the sound driver.

I could be totally wrong & things could be much easier now, it was several years ago I looked at doing something similar (if I understand you needs correctly) & we decided to use a different method because of the complexity & time factor. I'm pushing my memory to the limit now, so sorry if I'm being sketchy.
Len Speed
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform