VoiceGuide IVR Software Main Page
Jump to content

Basic Way To "listen" For Vg On Remote Pc

Recommended Posts

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

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

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

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

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
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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×