VoiceGuide IVR Software Main Page
Jump to content

Jumping to a different script based on $RV_DNIS

Recommended Posts

Hi Guys

 

Sorry to be a pain, but i cant seem to get DNIS routing working correctly.

 

I have my lines running start.vgs which is supposed to work as follows:

 

Expression to Eveluate:

 

$RV_DNIS

 

 

Paths:

 

On {5901} goto [d:\scripts\mulititalk\vgs]

 

 

they system is recieving the DNIS ok, but VG is reporting 'no path {true} to next module'

 

any help much appreciated.

 

David

Share this post


Link to post

Could you please post a copy of VoiceGuide's Debug Printout which captures the problem, this will allow us to see what happened.

 

When running the script click on VoiceGuide's View menu and select 'Event Trace Log' option - any log information will then appear in this window. You must open the trace window before making the call. You can enable the automatic saving of the logs to files in \log\ directory as well.

 

Please also post the script which you are using.

Share this post


Link to post

Attached below is the script, followed by the log file.

 

regards

 

David

 

Version=5.0

DefaultModuleDisplayHeight=

StartModule=DNIS

RunAtHangup=

StartWithoutAnswer=0

CtmAsiName=

 

[DNIS]

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_DNIS

ExprNewRV=

ExprStoreRV=0

ExprStoreInGlobalRV=0

on {5901} goto [D:\SCRIPTS\MultiTalk\multitalk.vgs]

 

Position=171,207

 

*****************************************************************************

 

 

114030.66 4 tw DialogicEvent 2084,GCEV_OFFERED,2084,0,0,,,

114030.66 4 event ScriptEventCode GCEV_OFFERED, code=2084, state=1501

114030.66 4 LsRunWaitTillFinished EV_UNKNOWN_2084

114030.66 4 event callstate OFFERING 4 2,0,0

114030.66 4 script interpretor: VgMulti v6.0.2275

114030.66 4 fired OFFERING event to listeners

114030.66 4 set LineState().hCall = 4 in LINECALLSTATE_OFFERING

114030.66 4 iIvrDev=1

114030.66 4 set linestate CID vars

114030.66 4 call AnswerTheCallIfAllowed from LINECALLSTATE_OFFERING

114030.66 4 rings=0, min rings before answer=0 (iCallerIdHasArrived=1)

114030.66 4 rv clear all

114030.67 4 init LineState ResetAtStartOfNewCall.

114030.67 4 No old processes from last call (could not obtain handle) 2580, 1608

114030.67 4 answer the call

114030.67 4 timer clear

114030.67 4 tw lev_CallerID [,,5901]

114030.67 4 rings=0, min rings before answer=0 (iCallerIdHasArrived=1)

114030.67 4 rv clear all

114030.67 4 init LineState ResetAtStartOfNewCall.

114030.67 4 answer the call

114030.69 4 timer clear

114030.80 4 tw DialogicEvent 2050,GCEV_ANSWERED,2050,0,0,,,

114030.80 4 event ScriptEventCode GCEV_ANSWERED, code=2050, state=6001

114030.80 4 event callstate CONNECTED 4 256,0,0

114030.80 4 LineEvCallState_Connected hDevice=4 params=256,0,0

114030.80 4 WorkingModes tapi= script= LineState().iState=6001

114030.81 4 Inband detection not enabled

114030.81 4 StartLoadedVgs at 17/10/2005 11:40:30 [VgMulti v6.0.2275]

114030.81 4 set LineState().iVgsIdx=2

114030.81 4 set sScriptToRunOnHangup=[] in StartLoadedVgs

114030.81 4 init StartLoadedVgs_InitLineState start

114030.81 4 rv add [$RV_STARTTIME]{17/10/2005 11:40:30}

114030.81 4 rv add [$RV_DEVICEID]{4}

114030.81 4 rv add [$RV_CIDNAME]{}

114030.81 4 rv add [$RV_DNIS]{5901}

114030.81 4 rv add [DNIS]{5901}

114030.81 4 rvns add [PathApp]{C:\Program Files\VoiceGuide\}

114030.83 4 rvns add [scriptsPath]{D:\SCRIPTS\}

114030.83 4 rv add [$RV_CIDNUMBER]{}

114030.83 4 fn RunModule start

114030.83 4 timer clear

114030.83 4 state [DNIS] Evaluate [$RV_DNIS]

114030.88 4 rv replace start: [$RV_DNIS]

114030.88 4 rvns [PathSysVoice]{C:\Program Files\VoiceGuide\system\voice\}[PathApp]{C:\Program Files\VoiceGuide\}[PathDataVm]{C:\Program Files\VoiceGuide\data\}[PathVgSys]{C:\Program Files\VoiceGuide\system\}[$RV_STARTTIME]{17/10/2005 11:40:30}[$RV_DEVICEID]{4}[$RV_CIDNAME]{}[$RV_DNIS]{5901}[DNIS]{5901}[PathApp]{C:\Program Files\VoiceGuide\}[scriptsPath]{D:\SCRIPTS\}[$RV_CIDNUMBER]{}

114030.88 4 rv replace end: [5901]

114030.88 4 eval[5901]

114030.88 4 rvns add [DNIS_Input]{5901}

114030.88 4 rvns add [DNIS]{5901}

114030.88 4 Eval Expr result:[5901]

114030.89 4 rv add [Hangup Time]{17/10/2005 11:40:30}

114030.89 4 state Hanging up call... [No path (True) to next module defined.]

114030.89 4 HangupCall_Common hCall=4

114030.89 4 rec RecSoundStop ok

114030.89 4 play PlaySoundStop ok

114030.89 4 timer set 2 EV_TIMEOUT_WAITFORIDLEAFTERLINEDROP

114030.89 4 fnHangupCall end

114032.98 4 timer fired EV_TIMEOUT_WAITFORIDLEAFTERLINEDROP

114032.98 4 event ScriptEventCode EV_TIMEOUT_WAITFORIDLEAFTERLINEDROP, code=9101, state=900

114032.98 4 state Hanging up call...(2)

114032.98 4 HangupCall_Common hCall=4

114032.98 4 rec RecSoundStop ok

114032.98 4 play PlaySoundStop ok

114032.98 4 fnHangupCall end

114032.98 4 LsAwaitingCalls EV_TIMEOUT_WAITFORIDLEAFTERLINEDROP

Share this post


Link to post

Please try using quotes around $RV_DNIS in the Evaluate Expression module, like this:

 

"$RV_DNIS"

 

and see if this makes any difference.

Share this post


Link to post

Actually... you should do this:

 

change

 

on {5901} goto [D:\SCRIPTS\MultiTalk\multitalk.vgs]

 

to:

 

on {5901} goto [D:\SCRIPTS\MultiTalk\multitalk.vgs|]

 

notice the "|" near the end!

 

After the "|" you can specify the starting module's name as well, or leave it as it is to use the script's default start module.

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
×