VoiceGuide IVR Software Main Page
Jump to content

Evaluate Function Looses The 0

Recommended Posts

Hi

 

The evaluate function looses the 0 (zero) in the CLI. Example the CLI is 0835555551 it only assigns the result as 835555551. How do I fix this?

 

 

[Evaluate]

Type=Evaluate

DispSize=69

Txt=Evaluate the Result Variable specified, and select the path which matches the current value of the Result Variable

Expression=$RV_CIDNUMBER

ExprNewRV=CLI

ExprStoreRV=1

ExprStoreInGlobalRV=0

on {timeout 0} goto [say Numbers 15]

on {true} goto [say Numbers 15]

 

Position=93,33

 

[say Numbers 15]

Type=Say Numbers

DispSize=69

Txt=Say the number, amount, date or the digits. See the list o options to see how the number supplied can be interpreted and spoken out...

PlayFile2=$RV[CLI]

Replay=0,0

SayNbrType=Digits

on {timeout 0} goto [say Numbers 14]

 

Position=93,148

 

[say Numbers 14]

Type=Say Numbers

DispSize=69

Txt=Say the number, amount, date or the digits. See the list o options to see how the number supplied can be interpreted and spoken out...

PlayFile2=$RV_CIDNUMBER

Replay=0,0

SayNbrType=Digits

on {timeout 0} goto [Hangup]

 

Position=95,254

Share this post


Link to post

Specify:

 

"$RV_CIDNUMBER"

 

or:

 

Cstr($RV_CIDNUMBER)

 

as the expression to evaluate...

 

otherwise it evaluates input as a number and the leading zero will get dropped...

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
×