VoiceGuide IVR Software Main Page
Jump to content

Selective Text

Recommended Posts

I have it to where Voiceguide looks up the telephone number of the caller based on the PIN code accessed; how do i get it to do one of the following (only one of the following not both)

 

1. Match the phone number with the Caller-id Number

 

2. Only return the last 4 digits of the phone number to play back to the customer.

 

Thanks!

Share this post


Link to post
1. Match the phone number with the Caller-id Number

Easiest to use an Evaluate Expression module. The expression you would use in the module is something like:

 

'$RV_CIDNUMBER' = '$RV[RetrieveCID_1]'

 

2. Only return the last 4 digits of the phone number to play back to the customer.

to return last 4 digits of the $RV[RetrieveCID_1] you will need to use a VBSCript function.

 

In a Run VB Script module use:

sLast4Digits = right("$RV[RetrieveCID_1]", 4)
set vg = CreateObject("VoiceGuide.CommandLink")
vg.Run_ResultReturn $RV_LINEID, "[sLast4Digits]{" & sLast4Digits & "}"
set vg = Nothing

Then the last 4 digits will be accessible using the $RV[sLast4Digits] Result Variable.

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
×