Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations dencom on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

VBScripting in VM Pro, need help

Status
Not open for further replies.

cruzades

Programmer
Sep 6, 2011
254
PH
Hi,

I would like to know if what in my mind is possible, I haven't touch this action yet eversince.

Here it is:

I have 8 Voicemail port, 1 of these is reserved to AA.

I would like to create a call flow that will determine "line group" and pass the result to next action.

scenario:

Incoming call --> VMPro --> script (check line group id) - if success -- AA_greeting_set1_will_play, else, AA_greeting_set2_will_play.

Any thoughts?
 
Wouldn't you just use your ICR to route to the different AA's based on the incoming call group?

 
yea, but I would like to optimize the use of that reserved port.
 
addendum:

script will goes like this:

Code:
Dim retval
Dim aNumber={DID1, DID2, DID3, DID4..}

for i = 0 to len(aNumber)
   if aNumber[i]=$DDI then
      retval=true
      exit
    end if
next i

--------------

Then, this retval will be used to my AA to determine which recording will be played.

It the scenario possible?

 
Hi again

I think I got it "half" working.

Is this possible inside the script?

given:
$DDI = "1234567890123@123.145.200.1"

Code:
Dim aVal
Dim cIP
Dim retVal
aVal = Split($DDI,"@")
cIP = aVal[1]
If cIP="123.145.200.1" then
    Voice.SetVariable 1, id
else
    Voice.SetVariable 0, id
End if
 
I got it working now, only draw back is it doesn't accept arrays (or I'm not seeing it yet), we have 50 DIDs and I need to create a condtion every DID :(


Code:
if $DDI="17xxx123459" or $DDI="17yyy456789" .... then
       Voice.SetVariable 0,dlgid
else
       Voice.SetVariable 1,dlgid
end if
 
I don't know about the vbscripting part but is there an option for variable routing?

BAZINGA!

I'm not insane, my mother had me tested!

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top