Reply
Contributor
redcarpetbarn
Posts: 4
Registered: 07-20-2009
0

VB Shell

I'm trying to assign toll free numbers to about 50 phone numbers...so someone can call directly via a toll free number.

Without building 50 different scripts to TRANSFER each call should I use a VB Shell to accomplish this?  if so, how.

I've used VB Shell before but someone set it up for me and I've mimicked it to make the changes I need.

thanks,

brad

Consistent Contributor
logos
Posts: 77
Registered: 12-05-2008
0

Re: VB Shell

Why not just have one script that all the toll frees point to with a case statement on the DNIS to determine what number the caller should be transfered to?  Tho that solution is not very maintainable. 

 

If you have a database, I would suggest storing the toll free/transfer numbers in there and using a SELECT to get the ph# for TRANSFER (eg, SELECT transfer_number FROM call_transfer WHERE toll_free={DNIS})

Tyler Style
IT Operations Manager
Healthy Habits, LLC

http://malthusian-solutions.com
http://nirdvana.com
Moderator
MarkR
Posts: 45
Registered: 11-25-2008

Re: VB Shell

For VB Shell, the syntax should look something like this:

 

DNIS   = P1

Select Case DNIS

  Case "8664551234"
        NumToDial = "8015552266"
  Case "8664551235"
        NumToDial = "8015552267"
  Case Else    

        NumToDial = "8015552270"
End Select

Assign "NumToDial ", NumToDial

 

You will pass the variable {DNIS} into the VBSHELL action as P1.  Based on what you value you pass in, you will get variable passed out as NumToDial.

Consistent Contributor
logos
Posts: 77
Registered: 12-05-2008
0

Re: VB Shell

Yes. but why use a VBSHELL case at all?  There's already a case statement in inContact's scripting language.

Tyler Style
IT Operations Manager
Healthy Habits, LLC

http://malthusian-solutions.com
http://nirdvana.com
Customer Advisory Board
lazarru
Posts: 3
Registered: 02-02-2009
0

Re: VB Shell

Matter of preference, to me the shell would be easier to maintain, you could more easily search for a number

Moderator
MarkR
Posts: 45
Registered: 11-25-2008
0

Re: VB Shell

The other big reason is script readability.  If you have 50 branch conditions coming off of a CASE action, it tends to make the script less readable.