Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
TAPI 3 Help required
Message
De
06/04/2004 06:13:11
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Titre:
TAPI 3 Help required
Divers
Thread ID:
00892550
Message ID:
00892550
Vues:
85
With Windows2000+ MS have provided a means of accessing TAPI via COM. Unfortunately they have not provided any kind of example that I can remotely understand. So far the following code works (inelegantly) for making calls:
PROCEDURE TapiCall
LPARAMETERS m.TelephoneDevice, m.CallPrefix, m.TelephoneNumber

oTapi = CREATEOBJECT("tapi.tapi")
oTapi.Initialize

FOR EACH oAddress IN oTapi.Addresses
   IF oAddress.AddressName() = m.TelephoneDevice AND oAddress.QueryMediaType(0x8)  && 0x8 = audio
      oCall = oAddress.CreateCall(m.CallPrefix + m.TelephoneNumber, 0x1, 0x8)
      oCall.Connect(.F.)
      EXIT
   ENDIF
ENDFOR

RELEASE oCall, oAddress, oTapi
I cannot find any way of obtaining the number of an incoming call. My primary source of information thus far has been:

http://msdn.microsoft.com/library/en-us/tapi/tapi2/code_snippets.asp

But the examples seem disjointed and over complicated.

Help, please?
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform