VoiceGuide IVR Software Main Page
Jump to content

Dialer_outdialqueadd For Forwarding Old Messages?

Recommended Posts

Hello,

 

I'm currently using VG 6.0.3335 Ent+Dialer.

 

I've successfully configured the Voicemail Manager to forward incoming vm to the number assigned to the vmbox.

 

My problem is:

 

If (during unattended hours), a message is left in a vmb which does not have forwarding enabled, the next morning, I would like to manually forward the .wav file to an outside telephone number.

 

Would the most economical solution be to add an entry to the OutDialQue.mdb? Either by the Dialer_OutDialQueAdd com function or maybe an external INSERT INTO . . . style statement.

 

Or is there a simpler solution? In searching the site, I've seen references to Vm_ForwardMsg, but I suspect this function is outdated. I don't see it in the help file.

 

As always, thank you for your continued support.

 

Chris

 

 

Share this post


Link to post

Have a look in VoiceGuide's voicemail script vmLm.vgs and vmLmHangup.vgs

 

The show how to use the Vm_Event COM function to perform a forwarding of a particular sound file as per the forwarding setup of a particular voicemail box.

 

The parameters to the function are the voicemail box number and the sound file to forward.

 

Vm_Event inserts appropriate entries into the OutDialQue and the Email Que etc.

 

Share this post


Link to post
Have a look in VoiceGuide's voicemail script vmLm.vgs and vmLmHangup.vgs

 

The show how to use the Vm_Event COM function to perform a forwarding of a particular sound file as per the forwarding setup of a particular voicemail box.

 

The parameters to the function are the voicemail box number and the sound file to forward.

 

Vm_Event inserts appropriate entries into the OutDialQue and the Email Que etc.

 

Okay. I tested with a small .vbs file like:

 

set vg = CreateObject("VoiceGuide.CommandLink")

iLineID = 1
sParam1 = "ValidFile.wav"

vg.Vm_Event iLineID, "FORWARD", "1000", sParam1, "",""

set vg = Nothing

 

It worked!

 

Also, I see in the CallQue table of OutDialQue.mdb NEWEST_VOICEMAIL_MESSAGE:1000 under Script. Is there anyway I can harness that instead of figuring out how to pass a valid vm.wav to the script?

 

If not, is there an easier way to find the filename without having to cut & paste something like,

 

sParam1 = "C:\Program Files\VoiceGuide\data\VmSave\1000_1005150004_1_1_CIDName_CIDNumber.wav"

 

Thanks,

 

Chris

 

Share this post


Link to post

Using the NEWEST_VOICEMAIL_MESSAGE keyword will result in the latest message for that particular voicemail box being forwarded (the voicemail box number is specified after the ":") If that's what you require then yes you can use that keyword. and insert an entry directly into the OutDialQue database.

 

I think that this exactly what the Vm_Event command does for you anyway.

 

The filename is created like this:

 

VoicemailBoxNumber + "_" + MDDHHNNSS + "_1_" + LineId + "_" + CallerID + "_" + ReplyVoicemialBoxNumber + ".wav"

 

the voicemail script vmLm.vgs creates the filename, so you can have a look in that script to confirm how the filename is arrived at.

Share this post


Link to post
VoicemailBoxNumber + "_" + MDDHHNNSS + "_1_" + LineId + "_" + CallerID + "_" + ReplyVoicemialBoxNumber + ".wav"

I know. That was a silly question by me, sorry. I was thinking about ways to magically generate such filename. Like maybe the NEWEST_VOICEMAIL_MESSAGE:vmbId would magically allow me to assign a variable to the newest message in a vmb without having to parse folders & filenames. ;)

 

You have some custom file parsing functions in vmAdmin & vmLogin, where I can study & learn more.

 

 

Using the NEWEST_VOICEMAIL_MESSAGE keyword will result in the latest message for that particular voicemail box being forwarded (the voicemail box number is specified after the ":") If that's what you require then yes you can use that keyword. and insert an entry directly into the OutDialQue database.

Thinking ahead, sometimes that could be exactly what I require.

 

I've been able to forward both using the Vm_Event Forward method, and inserting into the OutDialQue table using DAO. So . . . once again . . .

 

Kudos to SupportTeam

 

Chris

Share this post


Link to post

Magic to me . . .

 

set vg = CreateObject("VoiceGuide.CommandLink")
Set objDialog=CreateObject("UserAccounts.CommonDialog") 

    objDialog.Filter="All Messages|*.wav|Office Messages|0001*.wav|Rick's Messages|0002*.wav|Chris's Messages|0003*.wav|Jim's Messages|0004*.wav"
    objDialog.InitialDir="C:\Program Files\VoiceGuide\Data\VmSave" 
    intResult =objDialog.ShowOpen 

    If intResult Then 'filename returned
        'continue script
    Else
        'msgbox "You did not choose a file."
        wscript.quit 'quit the FORWARD if cancelled.
    End If

iLineID = 2
sParam1 = objDialog.FileName
mbID = Mid(sParam1,41,4) 'still have to learn how to parse after the last "\"

'msgbox "Ending Script before vg function."
'wscript.quit 'for break purposes

vg.Vm_Event iLineID, "FORWARD", mbID,sParam1,"",""

set vg = Nothing
Set objDialog = nothing

 

I just had to share that.

 

Carry on

 

Chris

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
×