VoiceGuide IVR Software Main Page
Jump to content

Cid Matching To Null String

Recommended Posts

Hello. First, off, thank you for all of your help so far, you all have done a great job keeping our script working in a good fasion. With that said, i need some more help lol

 

We are using the expression:

 

Evaluate ['$RV_CIDNUMBER' = ""] in the NoPhone? module

 

Of course, what we want to do, is see if the number is blocked, and if it is, it will direct it to another part of the script.

 

Normally, from my understanding, if the above evaultation is TRUE, ie, the CIDNumber is nonexistant, then it should default to the TRUE path. And, if FALSE, that means there is a number in the CIDNumber Variable, and it will direct it down the FALSE path.

 

However, i have tried calling this script by blocking my own number, and it directs me down the TRUE path, like it is susposed to.

 

However, when i call again with the BLOCK OFF, ie the number is visible, it directs me down the TRUE path again.

 

Here is the error log:

 

163435.55 10 linedevstate 2048 0 0

163435.55 10 callstate OFFERING 65578 0 4

163435.55 10 Lev_CallerID [5418998788,COPPER CAULDRON]

163435.56 10 callinfo CALLEDID

163435.56 10 callinfo ORIGIN

163435.56 10 ring 0

163435.56 10 Terminating process (new call).

163435.56 10 Answer the call at 2/11/2004 4:34:35 PM

163435.58 10 lineAnswer(65578) => 66124

163436.11 10 callstate CONNECTED 65578,1,0

163436.11 10 WorkingModeTAPI@Connected=

163436.13 10 WorkingModeScript@Connected=

163436.13 10 Inband detection not enabled

163436.13 10 StartLoadedVgs at 2/11/2004 4:34:36 PM

163436.13 10 tapi Reply (LineEvReply) ok 66124 0

163436.13 10 [Main 2] Number Input

163436.13 10 [Main 2] Playing (C:\Documents and Settings\Administrator\My Documents\vgs files\new\mainnew.wav)

163436.14 10 PlaySoundStart ok [C:\Documents and Settings\Administrator\My Documents\vgs files\new\mainnew.wav]

163438.89 10 dtmf 1 (65578,49,2)

163438.89 10 LsGetNbrsPlayWelcMsg 1

163438.95 10 PlaySoundStop ok

163438.95 10 [Main 2] Number Input 1

163438.95 10 path {1} not found

163439.19 10 dtmf 0 (65578,48,2)

163439.19 10 LsGetNbrsRxDigits 0

163439.20 10 [Main 2] Number Input 10

163439.20 10 [DoctorMenu] Playing

163439.20 10 [DoctorMenu] Playing (C:\Documents and Settings\Administrator\My Documents\vgs files\new\doctormenu.wav)

163439.20 10 PlaySoundStart ok [C:\Documents and Settings\Administrator\My Documents\vgs files\new\doctormenu.wav]

163439.20 10 RunModule PLAY end

163440.80 10 dtmf 1 (65578,49,2)

163440.80 10 LsPlayMsg 1

163440.84 10 PlaySoundStop ok

163440.84 10 [MakePin] Playing

163440.84 10 [MakePin] Playing (C:\Documents and Settings\Administrator\My Documents\vgs files\new\pininformation.wav)

163440.86 10 PlaySoundStart ok [C:\Documents and Settings\Administrator\My Documents\vgs files\new\pininformation.wav]

163440.86 10 RunModule PLAY end

163459.45 10 wb(54251500)

163459.52 10 Play End line[10] (id=542515)

163459.52 10 LsPlayMsg EV_PLAY_FINISHED

163459.52 10 LsPlayMsgFinished EV_TIMEOUT_GOTOMODULE

163459.52 10 [NoPhone?] Evaluate ['$RV_CIDNUMBER' = ""]

163459.52 10 RVreplace start: ['$RV_CIDNUMBER' = ""]

163459.52 10 RVreplace end: ['5418998788' = ""]

163459.52 10 .Eval('5418998788' = "")

163459.52 10 Error: 1002

163459.52 10 Eval Expr result:['5418998788' = ""]

163459.52 10 path {'5418998788' = ""} not found

163459.52 10 [CantSeeNumber] Playing

163459.52 10 [CantSeeNumber] Playing (C:\Documents and Settings\Administrator\My Documents\vgs files\new\cantseenumber.wav)

163459.53 10 PlaySoundStart ok [C:\Documents and Settings\Administrator\My Documents\vgs files\new\cantseenumber.wav]

163459.53 10 RunModule PLAY end

163503.59 10 wb(56120300)

163503.66 10 Play End line[10] (id=561203)

163503.66 10 LsPlayMsg EV_PLAY_FINISHED

163503.66 10 LsPlayMsgFinished EV_TIMEOUT_GOTOMODULE

163503.66 10 [GetCan'tSeeNumber] Number Input

163503.66 10 [GetCan'tSeeNumber] Playing (C:\Documents and Settings\Administrator\My Documents\vgs files\new\enterphonenumber.wav)

163503.67 10 PlaySoundStart ok [C:\Documents and Settings\Administrator\My Documents\vgs files\new\enterphonenumber.wav]

163507.00 10 Play End line[10] (id=565343)

163507.00 10 LsGetNbrsPlayWelcMsg EV_PLAY_FINISHED

163513.55 10 LsGetNbrsRxDigits EV_TIMEOUT_ENTERDATA

163513.55 10 [GetCan'tSeeNumber] Number Input

163513.55 10 [GetCan'tSeeNumber] Playing (C:\Documents and Settings\Administrator\My Documents\vgs files\new\enterphonenumber.wav)

163513.56 10 PlaySoundStart ok [C:\Documents and Settings\Administrator\My Documents\vgs files\new\enterphonenumber.wav]

 

I can upload the vgs as well, if needed.

 

Thanks!

Share this post


Link to post

You are using single quotes around the $RV_CIDNUMBER instead of double quotes.

 

You need to use "double quotes" when comparing strings.

 

Here is a trace when using "double quotes" - you can see that it works now:

 

105805.97 8 [Evaluate 3] Evaluate ["5418998788" = ""]

105805.98 8 .Eval(Cstr("5418998788" = ""))

105805.98 8 Eval Expr result:[False]

Share this post


Link to post

hi,

 

I did have same problem. I have found work-around: check:

 

($RV_CIDNUMBER +1 > 1) give true when CLI received and false if no CLI received.

 

Bernard

Share this post


Link to post

I suspect that the following should also work:

 

In Evaluate Expression module just specify:

 

$RV_CIDNUMBER

 

and then in the paths you could use:

 

on {} goto [Play 1]

 

or

 

on {False} goto [Play 1]

 

both of which will match if CallerID number is blank.

 

Similarly:

 

on {True} goto [Play 1]

 

will be taken if CallerID was provided.

 

and of course you could do something like this:

 

on {5551234} goto [Play 1]

 

to match individual CID numbers...

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
×