VoiceGuide IVR Software Main Page
Jump to content

variable in paths?

Recommended Posts

Can we use variable as paths option?

 

in case

on {0} goto [first]
on {1} goto [second]
on {timeout 5} goto [Hangup the Call]

 

declare:

$RV[option1] = 'on {0} goto [first]'

$RV[option2] = 'on {1} goto [second]'

$RV[option3] = 'on {1} goto [second]'

 

use in paths:

$RV[option1]

$RV[option2]

$RV[option3]

 

 

 

 

Share this post


Link to post

$RVs can be used in Paths expressions.

Any $RVs in paths are evaluated before the Paths expression used to determine what action is taken after an event arrives.

The Paths definitions after $RV replacement must be valid, with all paths in this format:

On {Trigger} Goto [Module Title]

 

Your example above should work.

 

assigning all three lines to one $RV and specifying just that one $RV should also work.

 

This approach would also work:

on {$RV[option1]} goto [first]
on {$RV[option2]} goto [second]
on {$RV[option3]} goto [Hangup the Call] 

where $RV[option1] - $RV[option3] are assigned keypad digits or other events triggers.

And this approach would also work:

on {1} goto [$RV[option1]]
on {2} goto [$RV[option2]]
on {3} goto [$RV[option3]] 

where $RV[option1] - $RV[option3] are assigned module titles.

etc.

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
×