VoiceGuide IVR Software Main Page
Jump to content

String Parsing

Recommended Posts

Is there anyway to parse a string, for instance.

 

I have my script using tts to answer and the first thing it says is "Hello, $RV_CIDNAME, welcome blah blahblahblah"

 

Problem is the CID it returns is in this format "DOE, John" so instead of saying "Hello, John Doe, welcome blahblah" it says "Hello, Dee Ohh Eeh comma John, Welcome blahblabalbha"

 

If i could parse the string like in vb with a midstring statement or something to capture the first in one var, and last name in another I could build it better. i.e. "Hello, $CV_CIDFIRSTNAME $CV_CIDLASTNAME, Welcome blahblabhalb"

 

 

unless you guys have another idea?

 

If this means taking it back to code you guys may want to think about adding a $RV_CIDAREACODE as well =O

Share this post


Link to post

You'll need to write a VB Script in the Run VBS module and in it use the split() function to extract the 2 fields - then you can save them in the results file so that they will be available as "Result Variables" throughout the rest of the script.

 

Related Post:

 

http://katalinatech.com/forums/index.php?a...act=ST&f=2&t=35

 

 

Different telephone companies send the Caller ID info in different ways, so it is not possible for VoiceGuide to automatically look at the the phone number and extract the area code, or know in which order the phone company will send the first/last names.

 

If you need to extract this specific information from the data sent by the phone company you should use a VB Script to do it...

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
×