Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Who are using Dialogic card and / or ExceleTel Tools
Message
De
17/12/2003 12:23:05
Roman Segaud
Laboratoires Fortepharma
Nice, France
 
 
À
17/12/2003 11:51:50
James Blackburn
Qualty Design Systems, Inc.
Kuna, Idaho, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Divers
Thread ID:
00859812
Message ID:
00859983
Vues:
17
Hi James,

Could you send me some sample to show me how you're using VFP and Dialogic ?
How you're connect these multiple device ?

> The problem (could be an advantage) with vfp is you have to have an >instance of vfp running for each phone line.

In my case, that means, I would have 32 instances of vfp, perhaps I can doing something like (using ExceleTel Tools):

DIMENSION oCTI[32,4] as Object

For t = 1 to 32
oCTI[t,1] = CREATEOBJECT('etTT37.etLine')
oCTI[t,2] = CREATEOBJECT('etTT37.etPhone')
oCTI[t,3] = CREATEOBJECT('etTT37.etPlay')
oCTI[t,4] = CREATEOBJECT('etTT37.etRecord')
Next t

In debug mode I can see all the reference I created, the next step is then to "BIND" the event to allow my code inside them.

I think something like :

oVFPCom = CREATEOBJECT('vfpcom.comutil')

oCTI_Line = CREATEOBJECT('MyCTI_etLine')
oCTI_Phone = CREATEOBJECT('MyCTI_etPhone')
oCTI_Play = CREATEOBJECT('MyCTI_etPlay')
oCTI_Record = CREATEOBJECT('MyCTI_etRecord')

***
** Bind the event
*
For t = 1 to 32
oVFPCom.BindEvents(oCTI[t,1], oCTI_Line)
oVFPCom.BindEvents(oCTI[t,2], oCTI_Phone)
oVFPCom.BindEvents(oCTI[t,3], oCTI_Play)
oVFPCom.BindEvents(oCTI[t,4], oCTI_Record)
Next t

And finally my class definition for the event of the etxxx component like :

DEFINE CLASS MyCTI_etLine AS Custom

nCreateTime = 0
Name = "Session_etLine"
nInstance = 0

PROCEDURE CallAnswer
... My code here ...
ENDPROC

...

ENDDEFINE

By this way I could "wrapp" ExceleTel events and that the only way I have to put my code, are-you agree ?
The difficulty is the high number of event you're expose, for each of them I've to do this, it's fastidious but how to do else ? How to know which of them I would have use ?

ProVente System
Roman SEGAUD
Microsoft Visual FoxPro MVP
http://www.Pro-Vente.net
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform