VoiceGuide IVR Software Main Page
Jump to content

Problem With Recording Module

Recommended Posts

Hi all,

 

VG give me this log file.

As you can see, it doesn't find the path {silence} and so hang up early.

 

Have you any ideas?

Tnx.

 

 

 

184843,05 6 linedevstate 2048 0 0

184843,06 6 callstate OFFERING 66287 0 4

184843,08 6 callinfo CALLEDID

184843,08 6 callinfo ORIGIN

184843,08 6 ring 0

184849,08 6 ring 2

184849,08 6 Answer the call at 12/11/2003 18.48.49

184849,08 6 lineAnswer(66287) => 66288

184849,61 6 callstate CONNECTED 66287,1,0

184849,62 6 WorkingModeTAPI@Connected=

184849,62 6 WorkingModeScript@Connected=

184849,65 6 Inband detection not enabled

184849,66 6 StartLoadedVgs at 12/11/2003 18.48.49

184849,66 6 tapi Reply (LineEvReply) ok 66288 0

184849,66 6 [Record 16] Recording

184849,70 6 PlaySoundStart ok [C:\Program Files\VoiceGuide\system\voice\beep1.wav]

184849,93 6 wb(64996200)

184849,98 6 Play End line[6] (id=649962)

184849,98 6 LsRecPlayBeep EV_PLAY_FINISHED

184849,00 6 RecSoundStart file[C:\prova.wav] ok

184850,01 6 RecFile[C:\prova.wav]

184857,71 6 monitortone 1

184857,71 6 LsRecRecording EV_SILENCE_DETECTED

184857,72 6 Silence Detected while recording.

184857,77 6 Record 16_RecLen100ms = 47

184857,78 6 path {silence} not found

184857,78 6 Hanging up call... [{silence} path not defined]

184857,79 6 RecSoundStop ok

184857,79 6 PlaySoundStop ok

184857,80 6 fnHangupCall end

184857,84 6 linedevstate 2048 0 0

184857,84 6 callstate IDLE 66287 0 0

184857,85 6 WorkingMode@Idle=

184857,98 6 tapi Reply (LineEvReply) ok 66253 0

184858,89 6 LsAwaitingCalls EV_TIMEOUT_TIMETOREINITLINE

184858,89 6 ReinitTelephony due to IDLE start

184858,90 6 tapic lineDeallocateCall(MainCall:66287) 0

184859,06 6 lineOpen(6) => 0

184859,07 6 Waiting for a call...

184859,07 6 lineOpen(6)LineHandle=66270

184910,60 0 sys cleanup Start

184910,60 0 sys cleanup End

Share this post


Link to post

Don't look up...I solved the problem....now i have new one!! :)

 

i run this VB Script after using the recording module

 

dim Conn, rs, ado_stream

set Conn=CreateObject("ADODB.Connection")

Conn.ConnectionString="driver={SQL server};server=SRVName"

Conn.Open()

Conn.Defaultdatabase="dbName"

 

filename="$RV[Record]"

 

set rs = CreateObject ("ADODB.recordset")

 

set ado_stream = createObject("ADODB.Stream")

ado_stream.Type = 1

ado_stream.Open()

ado_stream.LoadFromFile(filename)

 

rs.LockType = 3

rs.Open "select top 0 * from table", Conn

rs.AddNew "wavFile", ado_stream.Read()

ado_stream.Close()

rs.Close()

conn.close()

 

 

The script run...the new record is inserted but the path of the VB module is failed...why?

 

 

Thanks a lot...

Share this post


Link to post

To take the "Success" path a result must be returned to VoiceGuide.

 

Please see the COM interface function Run_ResultReturn.

 

From VG Help file's section on VB Script module:

VB Script can send responses back to VoiceGuide while it is executing by calling one VoiceGuide's ActiveX/COM functions. The functions which are considered to return a result back to VoiceGuide are: Run_ResultReturn(), Script_Gosub(), Script_Goto(), Script_Return(). For more information on VoiceGuide's ActiveX/COM interface please see the COM Interface section of Help file.

 

Once VoiceGuide detects that a VB Script has completed (and no COM response was received beforehand) then VoiceGuide will see if a "Result File" has been created by the script. If one has been created then VoiceGuide will read in it's contents and then determine what to do next based on the contents of the file.

 

The syntax of the Result File is the same as that used by the Run Program module. The Result Files must be placed in VoiceGuide's data subdirectory. Please refer to the Run Program module Help file's section for more information.

 

If the 'Wait until VB Script completes' option is selected, and no result file is created then the "Fail" path is taken after the VB script completes.

ie: if the 'Wait until VB Script completes' option is selected then an explicit "Success" result must be returned to VoiceGuide in order for it to go down the Success path.

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
×