VoiceGuide IVR Software Main Page
Jump to content

Substring

Recommended Posts

Hello,

Is there any posibilitz to make and and substring from the $RV_CIDNUMBER

 

If the CIDNUMBER starts with 3911 then take an other route if not then the default route. Is it possible to make it with Evaluate expression?

Whats the Error 13?

here is the log:

 

180823,05 8 StartLoadedVgs at 05.12.2003 18:08:23

180823,05 8 [check language] Evaluate [substring("$RV_CIDNUMBER",1,4)]

180823,06 8 RVreplace start: [substring("$RV_CIDNUMBER",1,4)]

180823,06 8 RVreplace end: [substring("3911234567",1,4)]

180823,07 8 .Eval(substring("3911234567",1,4))

180823,07 8 Error: 13

180823,08 8 Eval Expr result:[substring("3911234567",1,4)] stored in $RV[turha]

180823,08 8 path {substring("3911234567",1,4)} not found

 

 

BR Jukka

Share this post


Link to post

Hi,

 

I believe you can use all the Result Variables in the Evaluate Expression module, may be try this expression:

 

($RV_CIDNUMBER >= 3911000000) and ($RV_CIDNUMBER <= 3911999999)

 

then under Paths,

[True] goto [route#1]

[False] goto [next module]

 

Something like that.

 

Hope this help.

Share this post


Link to post

you can also use the following in an Evaluate Expression module:

 

left("$RV_CIDNUMBER", 4))

 

then you can use paths like these:

 

on {3911} goto [Play 1]

on {true} goto [Play 2]

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
×