cjdevconpro Report post Posted 03/18/2005 04:30 PM Here is what I need. A VBScript that will listen for incoming requests on a remote PC that VG sends using the RunProgram function. Do I need to install VG or a DLL on the remote PC? The app would work in this fashion: - Call comes into VG - AutoAttendant Answers (One I built) - Caller dials an Extension - VG Transfers that call to the Extension - VG Runs a script that calls a program on the VG Server - The program Sends the Caller ID and the Extension dialed, to the remote PC that is associated with the Extension dialed. - the remote PC then pops an app that displays the caller ID within that app The only part I am stuck at is this: The VBScript or VB.NET app that runs on the VG server. The VBScript or VB.NET app that runs on the Remote PC And send the information to the Remote PC based on the Extension that was dialed. (I am building a CTI application without having too much integration to the PBX except for the telephony side of things. Hardware I will have is a Dialogic Line Card, Dialogic Station card. (Both analog) Line Card will supply the Trunk Lines to make the transfers to the extensions that are programmed on the Station Card. And ideas or help would be greatly appreciated. Share this post Link to post
SupportTeam Report post Posted 03/18/2005 10:12 PM You basically want a messaging system that you can use for VG to send info from it to other computers... I think you've asked pretty much the same question in another thread and the answer was posted there already. see: http://voiceguide.com/forums/index.php?showtopic=2628 Share this post Link to post
cjdevconpro Report post Posted 03/18/2005 11:30 PM Then can you tell me what the VB.NET code is for this: 'the ID of the line which called this exe must be provided as a parameter sCmdLine = Command() If sCmdLine <> "" Then iLineId = CInt(sCmdLine) Else MsgBox "Line ID not supplied as a paramater." End If Set vg = CreateObject("VoiceGuide.CommandLink") sCidNumber = vg.RvGet(iLineId, "$RV_CIDNUMBER") sCidName = vg.RvGet(iLineId, "$RV_CIDNAME") lblCidNumber = sCidNumber lblCidName = sCidName Which came from one of the VB6 sample apps in the Scripts directory. Share this post Link to post
SupportTeam Report post Posted 03/18/2005 11:54 PM The section relevant to VoiceGuide: Set vg = CreateObject("VoiceGuide.CommandLink") sCidNumber = vg.RvGet(iLineId, "$RV_CIDNUMBER") sCidName = vg.RvGet(iLineId, "$RV_CIDNAME") would be pretty much the same... I think we've already answered a similar question form you here: http://voiceguide.com/forums/index.php?showtopic=2626 Share this post Link to post
cjdevconpro Report post Posted 03/19/2005 12:14 AM Similar, but not exact. Now, if I want to send $RV_CALLERID to the application, would I do it using the RunProgram module as this: C:\Call Apps\CallerIDtest.exe $RV_CALLERID Or C:\Call Apps\CallerIDtest.exe with the app loading the code mentioned above? Share this post Link to post
cjdevconpro Report post Posted 03/19/2005 12:31 AM I meant $RV_CIDNUMBER Sorry. Share this post Link to post
SupportTeam Report post Posted 03/19/2005 12:34 AM Either approach can be used. You have the flexibility of specifying it as part of the command line or retrieving it from within the application. It's up to you which approach you prefer... Share this post Link to post
cjdevconpro Report post Posted 03/19/2005 02:09 AM In that case, I would like to do the following: From the RunProgram module - C:\Call Apps\CallerIDtest.exe $RV_CIDNUMBER Once it sends the $RV_CIDNUMBER to the CallerIDtest.exe application, how do I capture that information within the App itself? in other words, what code do i need to have in my app to recognize that VG is sending me that info? Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Dim vg As VoiceGuide.CommandLink vg = CreateObject("VoiceGuide.CommandLink") 'WHAT CODE GOES HERE??? vg = Nothing End Sub Share this post Link to post
SupportTeam Report post Posted 03/19/2005 02:16 AM how do I capture that information within the App itself? in other words, what code do i need to have in my app to recognize that VG is sending me that info? This is getting into general programming questions that has nothing to do with VoiceGuide. I'd recommend getting a few books on programming in whatever language you want to use (VB.NET?) to create your application, or visiting some VB.NET related programming sites on the net. Share this post Link to post