VoiceGuide IVR Software Main Page
Jump to content

Ftp Upload

Recommended Posts

Hello. We are wanting to upload all of our voice messages to our support site; this will enable us to provide support even when away from our working point.

 

however, this is the message we keep getting when upload commences:

 

VoiceGuide FTP

 

ERROR DURING UPLOAD:

 

550 ftp_14_0130174237_1_0_5418998788_.wav: Permission Denied

 

File not uploaded:

 

This is not possible as our credentials on the server are working just fine.

 

here is the trace log:

 

174206.84 0 callstate OFFERING 66190 0 4

174206.84 0 Could not obtain handle to kill process. (new call) 3476, 860

174206.84 0 Answer the call at 1/30/2004 5:42:06 PM

174206.84 0 lineAnswer(66190) => 66465

174206.84 0 ring 1

174206.84 0 callstate ACCEPTED 66190 0 0

174208.11 0 Lev_CallerID [5418998788,COPPER CAULDRON]

174208.11 0 Lev_CallerID [5418998788,COPPER CAULDRON]

174211.13 0 tapi Reply (LineEvReply) ok 66465 0

174211.14 0 callstate CONNECTED 66190,0,0

174211.14 0 WorkingModeTAPI@Connected=

174211.14 0 WorkingModeScript@Connected=

174211.14 0 Inband detection not enabled

174211.14 0 StartLoadedVgs at 1/30/2004 5:42:11 PM

174211.14 0 [Main Menu] Playing

174211.14 0 [Main Menu] Playing (C:\Documents and Settings\Administrator\My Documents\vgs files\main.wav)

174211.19 0 PlaySoundStart ok [C:\Documents and Settings\Administrator\My Documents\vgs files\main.wav]

174211.19 0 RunModule PLAY end

174215.52 0 dtmf 4 (66190,52,2)

174215.52 0 LsPlayMsg 4

174216.17 0 PlaySoundStop ok

174216.17 0 [VMBBhoursbb] Evaluate [($RV_DAY >= 1) and ($RV_DAY <= 5) and ( (($RV_HOUR >= 9) and ($RV_HOUR <= 17)) or (($RV_HOUR = 8) and ($RV_MINUTE >= 30)) or (($RV_HOUR = 17) and ($RV_MINUTE < 30)) )]

174216.17 0 RVreplace start (strlen>100)

174216.17 0 .Eval((5 >= 1) and (5 <= 5) and ( ((17 >= 9) and (17 <= 17)) or ((17 = 8) and (42 >= 30)) or ((17 = 17) and (42 < 30)) ))

174216.17 0 Eval Expr result:[True]

174216.19 0 [bB TransferPause] Playing

174216.19 0 [bB TransferPause] Playing (C:\Documents and Settings\Administrator\My Documents\vgs files\tpetransferpause.wav)

174216.22 0 PlaySoundStart ok [C:\Documents and Settings\Administrator\My Documents\vgs files\tpetransferpause.wav]

174216.23 0 RunModule PLAY end

174219.16 0 dtmf 4 (66190,52,2)

174219.16 0 LsPlayMsg 4

174219.97 0 PlaySoundStop ok

174219.97 0 [bB Transfer] Playing

174219.97 0 [bB Transfer] Playing (C:\Documents and Settings\Administrator\My Documents\vgs files\bbtxfr.wav)

174220.02 0 PlaySoundStart ok [C:\Documents and Settings\Administrator\My Documents\vgs files\bbtxfr.wav]

174220.02 0 RunModule PLAY end

174234.28 0 Play End line[0] (id=28125)

174234.28 0 LsPlayMsg EV_PLAY_FINISHED

174235.28 0 LsPlayMsgFinished EV_TIMEOUT_GOTOMODULE

174235.28 0 voicemail used: Scripted

174235.28 0 stack idx=1

174235.28 0 LoadedVgs_Find C:\Program Files\VoiceGuide\system\vm\VmLm.vgs at idx=1

174235.28 0 [VmLmStart] Running vb script:[VmLmHangup.vgs]

174247.23 0 LoadedVgs_Find C:\Program Files\VoiceGuide\system\vm\VmLmHangup.vgs at idx=3

174247.23 0 [VmLmHangup_ForwardLastMsg] Running VB Script...

174247.25 0 RVreplace start (strlen>100)

174247.27 0 Run Script waiting... (shellid=1496, process=940)

174247.27 0 tapi Reply (LineEvReply) ok 65815 0

174247.28 0 tapi Reply (LineEvReply) ok 66173 0

174247.33 0 cl Vm_VmbConfig_Get 14, MsgLenMin

174247.33 0 vm RecLen100ms=60, MinLength for VMB14=1

174247.33 0 cl Vm_ForwardMsg 0, 14, C:\Program Files\VoiceGuide\data\VmSave\14_0130174237_1_0_5418998788_.wav

174247.33 0 vm frwrd vmb 14

174247.33 0 vm ftp upload start

174247.33 0 RVreplace start (strlen>100)

174247.36 0 vm ftp upload started [wscript "C:\Program Files\VoiceGuide\data\vbs_0_ftp_14_0130174237_1_0_5418998788__wav.vbs" //I //T:3600]

174247.36 0 RVreplace start: [Voicemail received from $RV_CIDNAME, $RV_CIDNUMBER at $RV_HOUR:$RV_NN on $RV_DATE $RV_MONTHNAME]

174247.36 0 RVreplace end: [Voicemail received from COPPER CAULDRON, 5418998788 at 17:42 on 30 January]

174247.38 0 RVreplace start (strlen>100)

174247.38 0 vm frwrd vmb 14 email to zackrspv@yahoo.com (wav attached)

174247.38 0 vm frwrd vmb 14 end

174247.41 0 cl Run_ResultReturn >>success<<

174247.41 0 path {success} not found

174247.41 0 Hanging up call... [RunResultReturn could not find module...]

174247.41 0 HangupCall_Common Mode=AfterHangupRun

174247.41 0 ReinitTelephony due to IDLE start

174247.42 0 tapic lineDeallocateCall(MainCall:66190) 0

174248.06 0 lineOpen(0) => 0

174248.06 0 Waiting for a call...

174248.06 0 lineOpen(0)LineHandle=65644

174343.63 0 vm ftp result {C:\Program Files\VoiceGuide\data\VmSave\ftp_14_0130174237_1_0_5418998788_.wav}:VoiceGuide FTP ERROR DURING UPLOAD: 550 ftp_14_0130174237_1_0_5418998788_.wav: Permission deniedFile not uploaded:

 

Any help would be greatly appriciated :)

 

Phillip

Share this post


Link to post

To better see why the FTP upload is failing please edit the file vm_ftp.vbs in VoiceGuide's \system\vm\ subdirectory.

Find the section which is:

'InFile : Temporary file - stores FTP commands to execute
InFile     = fso.GetSpecialFolder(TemporaryFolder) & "\" & fso.GetTempName
Set ftp    = fso.OpenTextFile(InFile, 2, True)

'OutFile : Temporary file - stores FTP responses
OutFile    = fso.GetSpecialFolder(TemporaryFolder) & "\" & fso.GetTempName

and change it to:

'InFile : Temporary file - stores FTP commands to execute
InFile     = "c:\ftp_cmds.txt"
Set ftp    = fso.OpenTextFile(InFile, 2, True)

'OutFile : Temporary file - stores FTP responses
OutFile    = "c:\ftp_results.txt"

As you can see from above this will let you see exactly what commands are sent to ftp.exe (c:\ftp_cmds.txt) and what responses ftp.exe gave (c:\ftp_results.txt)

 

This allows you to try repeating the upload yourself using the following command at the command prompt:

 

ftp -i -s c:\ftp_cmds.txt > c:\ftp_results.txt

 

After doing your testing change the vm_ftp.vbs back to what it was originally (else multiple lines will not be able to ftp at the same time...)

Share this post


Link to post

Hello.

 

I modified the file as you requested, however the ftp -i command is not a valid ftp.exe command, or at the very least is NOT listed in the help section for ftp.exe. As it stands, even AFTER modifying the file and running the script again, it still failed.

 

 

T/S Log:

 

 

132655.42 0 callstate OFFERING 65921 0 4

132655.42 0 Could not obtain handle to kill process. (new call) 3704, 1236

132655.42 0 Answer the call at 1/31/2004 1:26:55 PM

132655.42 0 lineAnswer(65921) => 66398

132655.42 0 ring 1

132655.42 0 callstate ACCEPTED 65921 0 0

132656.69 0 Lev_CallerID [5418998788,COPPER CAULDRON]

132656.69 0 Lev_CallerID [5418998788,COPPER CAULDRON]

132659.72 0 tapi Reply (LineEvReply) ok 66398 0

132659.72 0 callstate CONNECTED 65921,0,0

132659.72 0 WorkingModeTAPI@Connected=

132659.72 0 WorkingModeScript@Connected=

132659.73 0 Inband detection not enabled

132659.73 0 StartLoadedVgs at 1/31/2004 1:26:59 PM

132659.73 0 [Main Menu] Playing

132659.73 0 [Main Menu] Playing (C:\Documents and Settings\Administrator\My Documents\vgs files\main.wav)

132659.77 0 PlaySoundStart ok [C:\Documents and Settings\Administrator\My Documents\vgs files\main.wav]

132659.77 0 RunModule PLAY end

132702.55 0 dtmf 2 (65921,50,2)

132702.55 0 LsPlayMsg 2

132703.09 0 PlaySoundStop ok

132703.11 0 [TCC] Playing

132703.11 0 [TCC] Playing (C:\Documents and Settings\Administrator\My Documents\vgs files\tpetransferpause.wav)

132703.14 0 PlaySoundStart ok [C:\Documents and Settings\Administrator\My Documents\vgs files\tpetransferpause.wav]

132703.14 0 RunModule PLAY end

132704.83 0 dtmf 4 (65921,52,2)

132704.83 0 LsPlayMsg 4

132705.64 0 PlaySoundStop ok

132705.64 0 [TCCFailABH] Playing

132705.64 0 [TCCFailABH] Playing (C:\Documents and Settings\Administrator\My Documents\vgs files\tccfailabh.wav)

132705.69 0 PlaySoundStart ok [C:\Documents and Settings\Administrator\My Documents\vgs files\tccfailabh.wav]

132705.69 0 RunModule PLAY end

132718.80 0 Play End line[0] (id=113796)

132718.80 0 LsPlayMsg EV_PLAY_FINISHED

132718.80 0 LsPlayMsgFinished EV_TIMEOUT_GOTOMODULE

132718.80 0 voicemail used: Scripted

132718.80 0 stack idx=1

132718.80 0 LoadedVgs_Find C:\Program Files\VoiceGuide\system\vm\VmLm.vgs at idx=1

132718.80 0 [VmLmStart] Running vb script:[VmLmHangup.vgs]

132727.80 0 LoadedVgs_Find C:\Program Files\VoiceGuide\system\vm\VmLmHangup.vgs at idx=3

132727.80 0 tapi Reply (LineEvReply) ok 66177 0

132727.80 0 [VmLmHangup_ForwardLastMsg] Running VB Script...

132727.80 0 RVreplace start (strlen>100)

132727.83 0 Run Script waiting... (shellid=2240, process=964)

132727.83 0 tapi Reply (LineEvReply) ok 66417 0

132727.88 0 cl Vm_VmbConfig_Get 12, MsgLenMin

132727.88 0 vm RecLen100ms=30, MinLength for VMB12=1

132727.89 0 cl Vm_ForwardMsg 0, 12, C:\Program Files\VoiceGuide\data\VmSave\12_0131132721_1_0_5418998788_.wav

132727.89 0 vm frwrd vmb 12

132727.89 0 vm ftp upload start

132727.89 0 RVreplace start (strlen>100)

132727.92 0 vm ftp upload started [wscript "C:\Program Files\VoiceGuide\data\vbs_0_ftp_12_0131132721_1_0_5418998788__wav.vbs" //I //T:3600]

132727.92 0 RVreplace start: [Voicemail received from $RV_CIDNAME, $RV_CIDNUMBER at $RV_HOUR:$RV_NN on $RV_DATE $RV_MONTHNAME]

132727.92 0 RVreplace end: [Voicemail received from COPPER CAULDRON, 5418998788 at 13:27 on 31 January]

132727.92 0 RVreplace start (strlen>100)

132727.92 0 vm frwrd vmb 12 email to zackrspv@yahoo.com (wav attached)

132727.92 0 vm frwrd vmb 12 end

132727.94 0 cl Run_ResultReturn >>success<<

132727.94 0 path {success} not found

132727.94 0 Hanging up call... [RunResultReturn could not find module...]

132727.94 0 HangupCall_Common Mode=AfterHangupRun

132727.94 0 ReinitTelephony due to IDLE start

132727.97 0 tapic lineDeallocateCall(MainCall:65921) 0

132728.61 0 lineOpen(0) => 0

132728.61 0 Waiting for a call...

132728.61 0 lineOpen(0)LineHandle=65543

132735.23 0 vm ftp result {C:\Program Files\VoiceGuide\data\VmSave\ftp_12_0131132721_1_0_5418998788_.wav}:VoiceGuide FTP ERROR DURING UPLOAD: 550 ftp_12_0131132721_1_0_5418998788_.wav: Permission deniedFile not uploaded:

132739.88 0 btn Hangup on line 0

132739.88 0 Hanging up call...

132739.88 0 RecSoundStop ok

132739.88 0 PlaySoundStop ok

132739.88 0 HangupCall : lCallHandle& = 0 - lets close and open line

132739.88 0 ReinitTelephony due to IDLE start

132740.50 0 lineOpen(0) => 0

132740.50 0 Waiting for a call...

132740.50 0 lineOpen(0)LineHandle=65973

132740.50 0 Waiting for a call...

132740.50 0 fnHangupCall end

 

Contents of txt file:

 

Text file NOT found.

Share this post


Link to post

If the vm_ftp.vbs was modified to use c:\ftp_cmds.txt and c:\ftp_results.txt instead of the temporary files then these two files should have been created in "C:\"...

 

You can confirm what files are getting created for the ftp task by looking at the VB SCript which was ran to start the ftp - the line in the VG Debug Log indicates the filename of the VB Script file used:

132727.92 0 vm ftp upload started [wscript "C:\Program Files\VoiceGuide\data\vbs_0_ftp_12_0131132721_1_0_5418998788__wav.vbs" //I //T:3600]

 

Can you please modify the vm_ftp.vbs and post the files c:\ftp_cmds.txt and c:\ftp_results.txt - the ftp upload log is in c:\ftp_results.txt and the list of commands used will in ftp session be in c:\ftp_cmds.txt

 

Which version of Windows are you using?

 

Win2000 and XP allow the "-i" option as part of the command. Here is the printout fro running "ftp -?" on a Win2000 system:

C:\>ftp -?

 

Transfers files to and from a computer running an FTP server service

(sometimes called a daemon). Ftp can be used interactively.

 

FTP [-v] [-d] [-i] [-n] [-g] [-s:filename] [-a] [-w:windowsize] [-A] [host]

 

  -v             Suppresses display of remote server responses.

  -n             Suppresses auto-login upon initial connection.

  -i             Turns off interactive prompting during multiple file

                 transfers.

  -d             Enables debugging.

  -g             Disables filename globbing (see GLOB command).

  -s:filename    Specifies a text file containing FTP commands; the

                 commands will automatically run after FTP starts.

  -a             Use any local interface when binding data connection.

  -A             login as anonymous.

  -w:buffersize  Overrides the default transfer buffer size of 4096.

  host           Specifies the host name or IP address of the remote

                 host to connect to.

 

Notes:

  - mget and mput commands take y/n/q for yes/no/quit.

  - Use Control-C to abort commands.

 

C:\>

Share this post


Link to post

I had the same problem also. I have the 5.2.5003 version. My file vm_ftp.vbs showed,

 

(lines numbered for show purposes only)

 

1 'InFile : stores FTP commands to execute

2 'InFile = fso.GetSpecialFolder(TemporaryFolder) & "\" & fso.GetTempName

3 InFile = "$RV[PathDataVm]" & "vm_ftp_cmd_$RV_MM$RV_DD$RV_HH$RV_NN$RV_SS_$RV_LINEID.txt"

 

Set ftpcmds = fso.OpenTextFile(InFile, ForWriting, True)

 

1 'OutFile : stores FTP responses

2 'OutFile = fso.GetSpecialFolder(TemporaryFolder) & "\" & fso.GetTempName

3 OutFile = "$RV[PathDataVm]" & "vm_ftp_ret_$RV_MM$RV_DD$RV_HH$RV_NN$RV_SS_$RV_LINEID.txt"

4 OutFile_SaveLog = "$RV[PathApp]" & "log\$RV_MM$RV_DDftp.txt"

 

the 3rd line in each paragraph was uncommented orginally.

I just commented the 3rd line and uncommented the 2nd. it works fine now.

 

1 'InFile : stores FTP commands to execute

2 InFile = fso.GetSpecialFolder(TemporaryFolder) & "\" & fso.GetTempName

3 'InFile = "$RV[PathDataVm]" & "vm_ftp_cmd_$RV_MM$RV_DD$RV_HH$RV_NN$RV_SS_$RV_LINEID.txt"

 

Set ftpcmds = fso.OpenTextFile(InFile, ForWriting, True)

 

1 'OutFile : stores FTP responses

2 OutFile = fso.GetSpecialFolder(TemporaryFolder) & "\" & fso.GetTempName

3 'OutFile = "$RV[PathDataVm]" & "vm_ftp_ret_$RV_MM$RV_DD$RV_HH$RV_NN$RV_SS_$RV_LINEID.txt"

4 OutFile_SaveLog = "$RV[PathApp]" & "log\$RV_MM$RV_DDftp.txt"

Share this post


Link to post

Dont change this FTP file!!!

If you read http://voiceguide.com/forums/index.php?sho...t=0entry13188, i was having a problem with the buttons not working in VG. Well after reinstalling the OS, VG worked fine, but the FTP was not working as dicussed in this topic. So i commented & uncommented as i said, then the buttons stopped working again. I put it back to the way it was orginally, and it the buttons in VG have the same error. or dont work. Confused?!

Share this post


Link to post

Perhaps you have some Windows' permission restrictions here...

 

Are you logged in with Administrator privileges?

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
×