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

There is really no way for you to interface directly to the dialogic card. You need to find an activex control that will talk to the dialogic card. Intel has one on their web site that I have demoed with some success. I dropped the activex control on a form and then just started hooking up the events. Those events will vary depending on the control you use.

I can’t seem to be able to pull up my project now so I can’t show you much code. The main idea is there will be an event on the control that fires when a call comes in. I put code in that event that calls my code to handle the call. There are many other PMS that you will have to use that will determine how you handle the call. What you need to do is find the control you want to use ant then start experimenting. I ended up having to get an additional dialogic card to put in my development computer to test with. I created two application, one for interfacing with the dialogic card that was a com app. The other was a manager app that instantiated a com app for each phone line. I had a form showing the status of each line that showed on the screen. I could not communicate directly with each com app because VFP is single threaded. I had to build a signaling method using a dbf file and then display the results in the dbf.

It takes about 7-8 meg of ram for each line you are managing. At 8 meg, you are still only using 256 meg of ram.

I hope this helps.



>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