VoiceGuide IVR Software Main Page
Jump to content

Passing Result Variables To Outbound Call

Recommended Posts

Farzad wrote:

 

I am trying to send Caller ID to called scrip. But I keep getting Error 1032. Would you

please let me know what do I do wrong?

 

 

12750 0 tapie callstate OFFERING 66227 0 4

12750 0 tapie ring 1

12765 0 Answer the call

12765 0 lineAnswer(66227) => 66432

12765 0 tapie callstate ACCEPTED 66227 0 0

14187 0 Lev_CallerID [4086215343,]

14187 0 Lev_CallerID [4086215343,WIRELESS CALLER]

15796 0 tapi  Reply 66432 0

15796 0 tapie callstate CONNECTED 66227,0,0

15796 0 WorkingModeTAPI=

15796 0 WorkingModeScript=

15796 0 TimeoutClear

15796 0 [GetCIDNUMBER] Evaluate $RV_CIDNUMBER

15812 0 RVreplace start: [$RV_CIDNUMBER]

15812 0 RVreplace end: [4086215343]

15812 0 Eval Expr result:[4086215343]

15812 0 TimeoutClear

15812 0 [Ask for vending code] Playing

15812 0 [Ask for vending code] Playing (C:\Program Files\ivg\Scripts\PBPScript\new vend sales scrip\sound file for new vending machine\thank you for shoping.wav)

15890 0 PlaySoundStart ok [C:\Program Files\ivg\Scripts\PBPScript\new vend sales scrip\sound file for new vending machine\thank you for shoping.wav]

15890 0 TimeoutClear

15890 0 RunModule PLAY end

15890 0 wa(7777,81581200)

23734 0 Play End line[0] (id=815812)

23734 0 LsPlayMsg EV_PLAY_FINISHED

23734 0 TimeoutSet 10 EV_TIMEOUT_HANGUP

23734 0 TimeoutSet 0 EV_TIMEOUT_GOTOMODULE

23734 0 LsPlayMsgFinished EV_TIMEOUT_GOTOMODULE

23734 0 TimeoutClear

23750 0 [vend code] Number Input

23750 0 [vend code] Playing (C:\Program Files\ivg\Scripts\PBPScript\new vend sales scrip\sound file for new vending machine\.1s silince.wav)

23828 0 PlaySoundStart ok [C:\Program Files\ivg\Scripts\PBPScript\new vend sales scrip\sound file for new vending machine\.1s silince.wav]

23828 0 TimeoutClear

23828 0 wa(97,82375000)

23984 0 Play End line[0] (id=823750)

23984 0 LsGetNbrsPlayWelcMsg EV_PLAY_FINISHED

23984 0 TimeoutSet 10 EV_TIMEOUT_HANGUP

23984 0 TimeoutSet 40 EV_TIMEOUT_GOTOMODULE

25156 0 tapie monitordigits 52 2

25156 0 LsGetNbrsPlayWelcMsg [4]

25171 0 TimeoutSet 40 EV_TIMEOUT_GOTOMODULE

25171 0 PlaySoundStop ok

25171 0 [vend code] Number Input 4

25781 0 tapie monitordigits 51 2

25781 0 LsGetNbrsRxDigits [3]

25781 0 TimeoutSet 40 EV_TIMEOUT_GOTOMODULE

25781 0 LsGetNbrsRxDigits [43]

25781 0 [vend code] Number Input 43

26250 0 tapie monitordigits 50 2

26250 0 LsGetNbrsRxDigits [2]

26250 0 TimeoutSet 40 EV_TIMEOUT_GOTOMODULE

26250 0 LsGetNbrsRxDigits [432]

26250 0 [vend code] Number Input 432

26734 0 tapie monitordigits 49 2

26734 0 LsGetNbrsRxDigits [1]

26750 0 TimeoutSet 40 EV_TIMEOUT_GOTOMODULE

26750 0 LsGetNbrsRxDigits [4321]

26750 0 [vend code] Number Input 4321

26750 0 TimeoutClear

26781 0 TimeoutClear

26781 0 [Database Query] DB Query

26781 0 Jet mode used (To use ODBC mode specify ODBC Connect string)

26781 0 RVreplace start: [sELECT VendTel FROM Vendtele WHERE VendCode= $RV[vend code]]

26796 0 RVreplace end: [sELECT VendTel FROM Vendtele WHERE VendCode= 4321]

26796 0 About to execute Retrieve Operation

26796 0 [Database Query] row count=1

26796 0 TimeoutClear

26796 0 [ASK TO HUNGUP] Playing

26796 0 [ASK TO HUNGUP] Playing (C:\Program Files\ivg\Scripts\PBPScript\ask to hungup.wav)

26890 0 PlaySoundStart ok [C:\Program Files\ivg\Scripts\PBPScript\ask to hungup.wav]

26890 0 TimeoutClear

26890 0 RunModule PLAY end

26890 0 wa(15171,82679600)

42109 0 Play End line[0] (id=826796)

42109 0 LsPlayMsg EV_PLAY_FINISHED

42109 0 TimeoutSet 10 EV_TIMEOUT_HANGUP

42109 0 TimeoutSet 0 EV_TIMEOUT_GOTOMODULE

42109 0 LsPlayMsgFinished EV_TIMEOUT_GOTOMODULE

42109 0 TimeoutClear

42109 0 [GetCallerRef] Evaluate $RV[GetCIDNUMBER]

42109 0 RVreplace start: [$RV[GetCIDNUMBER]]

42125 0 RVreplace end: [4086215343]

42125 0 Eval Expr result:[4086215343]

42140 0 TimeoutClear

42156 0 [1 sale] Make Outbound Call

42156 0 RVreplace start: [, $RV[Database Query_1_1], 3, 2, none, C:\Program Files\ivg\Scripts\PBPScript\new vend sales scrip\sale scrp for K140 device-on and off\$RV[Database Query_1_1].vgs, [CallerRefNumber]{$RV[GetCallerRef]}]

42156 0 RVreplace end: [, 2622917, 3, 2, none, C:\Program Files\ivg\Scripts\PBPScript\new vend sales scrip\sale scrp for K140 device-on and off\2622917.vgs, [CallerRefNumber]{4086215343}]

42171 0 TimeoutClear

42171 0 Hanging up call...

42171 0 TimeoutSet 2 EV_TIMEOUT_WAITFORIDLEAFTERLINEDROP

42171 0 PlaySoundStop ok

42171 0 fnHangupCall end

42171 0 tapi  Reply 66123 0

42281 0 tapie callstate DISCONNECTED 66227,1,0

42281 0 LsAwaitingCalls EV_REMOTEPARTY_DISCONNECT

42281 0 PlaySoundStop ok

42281 0 Hanging up call...

42281 0 TimeoutSet 2 EV_TIMEOUT_WAITFORIDLEAFTERLINEDROP

42281 0 PlaySoundStop ok

42296 0 fnHangupCall end

42296 0 tapie callstate IDLE 66227 0 0

42296 0 WorkingMode@Idle=

42296 0 TimeoutClear

42312 0 TimeoutSet 1 EV_TIMEOUT_TIMETOREINITLINE

42312 0 tapi  Reply 66174 0

42328 0 tapi  Reply 66157 LINEERR_INVALCALLSTATE [8000001C]

42328 0 tapi  Reply 65936 0

42671 0 Loading from C:\Program Files\ivg\data\DialListNew.txt

42671 0 Loaded 1 entries.

42671 0 rstDialListFindNext.RecordCount=1

43312 0 Timer fired EV_TIMEOUT_TIMETOREINITLINE

43312 0 LsAwaitingCalls EV_TIMEOUT_TIMETOREINITLINE

43312 0 Initialise telephony (due to IDLE)

43312 0 tapic lineDeallocateCall(MainCall:66227) 0

43437 0 Waiting for a call...

43437 0 hLine=66261

43437 0 TimeoutSet 5 EV_TIMOUT_ATERIDLE_ALLOWOUT

44671 0 rstDialListFindNext.RecordCount=1

46671 0 rstDialListFindNext.RecordCount=1

48671 0 rstDialListFindNext.RecordCount=1

48906 0 Timer fired EV_TIMOUT_ATERIDLE_ALLOWOUT

50671 0 rstDialListFindNext.RecordCount=1

50671 0 Dialing: 2622917

50671 0 MakeCall => 66039

50671 0 TimeoutSet 60 EV_TIMEOUT_MAKECALL_NORESPONSE

50671 0 TapiCbTrigSet 66039 7002

50671 0 tapi  Reply 66039 0

50687 0 TapiCbTrigClear

50687 0 tapie callstate DIALING 66363 0 0

50687 0 tapie callstate PROCEEDING 66363 0 0

53234 0 tapie callstate CONNECTED 66363,0,0

53234 0 WorkingModeTAPI=

53234 0 WorkingModeScript=

53250 0 Dialing: Playing introduction message

53265 0 TimeoutClear

53265 0 [CallerRefNumber] Evaluate $RV[GetCallerRef]

53265 0 RVreplace start: [$RV[GetCallerRef]]

53265 0 RVreplace end: [$RV[GetCallerRef]]

53265 0 Eval Expr result:[Error: 1032]

53296 0 TimeoutClear

53296 0 [trc code] Playing

53296 0 [trc code] Playing (C:\Program Files\ivg\Scripts\PBPScript\new vend sales scrip\sound file for new vending machine\TRC code.wav)

53375 0 PlaySoundStart ok [C:\Program Files\ivg\Scripts\PBPScript\new vend sales scrip\sound file for new vending machine\TRC code.wav]

53375 0 TimeoutClear

53375 0 RunModule PLAY end

53375 0 DELETE FROM CallQue WHERE ID=1406;

53390 0 wa(12971,85329600)

54718 0 Erasing Script Id 1

61296 0 tapie monitordigits 53 2

61296 0 LsPlayMsg [5]

62953 0 tapie monitordigits 49 2

62953 0 LsPlayMsg [1]

63500 0 tapie monitordigits 35 2

63500 0 LsPlayMsg [#]

64656 0 tapie monitordigits 48 2

64656 0 LsPlayMsg [0]

66406 0 Play End line[0] (id=853296)

66406 0 LsPlayMsg EV_PLAY_FINISHED

66406 0 TimeoutSet 10 EV_TIMEOUT_HANGUP

66406 0 TimeoutSet 0 EV_TIMEOUT_GOTOMODULE

66406 0 LsPlayMsgFinished EV_TIMEOUT_GOTOMODULE

66406 0 TimeoutClear

66406 0 [count for 2 can] Evaluate 0

66421 0 Eval Expr result:[0]

66437 0 TimeoutClear

66453 0 [sold#] Playing

66453 0 [sold#] Playing (C:\Program Files\ivg\Scripts\PBPScript\new vend sales scrip\sound file for new vending machine\1s silince.wav)

66515 0 PlaySoundStart ok [C:\Program Files\ivg\Scripts\PBPScript\new vend sales scrip\sound file for new vending machine\1s silince.wav]

66531 0 TimeoutClear

66531 0 RunModule PLAY end

66531 0 wa(995,86645300)

67578 0 Play End line[0] (id=866453)

67578 0 LsPlayMsg EV_PLAY_FINISHED

67578 0 TimeoutSet 10 EV_TIMEOUT_HANGUP

67578 0 TimeoutSet 20 EV_TIMEOUT_GOTOMODULE

72375 0 Hanging up call...

72375 0 TimeoutSet 2 EV_TIMEOUT_WAITFORIDLEAFTERLINEDROP

72375 0 PlaySoundStop ok

72390 0 fnHangupCall end

72390 0 tapi  Reply 66191 0

72484 0 tapie callstate DISCONNECTED 66363,1,0

72484 0 LsAwaitingCalls EV_REMOTEPARTY_DISCONNECT

72500 0 PlaySoundStop ok

72500 0 Hanging up call...

72500 0 TimeoutSet 2 EV_TIMEOUT_WAITFORIDLEAFTERLINEDROP

72500 0 PlaySoundStop ok

72500 0 fnHangupCall end

72500 0 tapie callstate IDLE 66363 0 0

72500 0 WorkingMode@Idle=

72500 0 TimeoutClear

72515 0 TimeoutSet 1 EV_TIMEOUT_TIMETOREINITLINE

72515 0 tapi  Reply 66517 0

72515 0 tapi  Reply 65577 LINEERR_INVALCALLSTATE [8000001C]

72546 0 tapi  Reply 66483 0

73531 0 Timer fired EV_TIMEOUT_TIMETOREINITLINE

73531 0 LsAwaitingCalls EV_TIMEOUT_TIMETOREINITLINE

73531 0 Initialise telephony (due to IDLE)

73531 0 tapic lineDeallocateCall(MainCall:66363) 0

73656 0 Waiting for a call...

73656 0 hLine=65594

73656 0 TimeoutSet 5 EV_TIMOUT_ATERIDLE_ALLOWOUT

74734 0 Erasing Script Id 2

79296 0 Timer fired EV_TIMOUT_ATERIDLE_ALLOWOUT

Share this post


Link to post

In the Make Outbound Call module [1 sale] the script is passing to the outbound call a Result Variable [CallerRefNumber].

 

Its value is defined by the local Result Variable $RV[GetCallerRef], but once that is replaced by its current value all that the outbound call knows is that there is a Result Variable [CallerRefNumber] which has a value of "4086215343" assigned to it...

 

In the outbound script you need to use $RV[CallerRefNumber], not $RV[GetCallerRef]

 

In other words you are defining $RV[CallerRefNumber] in the RV parameters of the outbound call - the outbound call does not know anything about $RV[GetCallerRef]....

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
×