Harry L. Roberts Report post Posted 02/14/2006 06:40 PM Help File Says: Run What program to run after a message has been left for this voicemail box. This can be used to start 3rd party command line utilities to forward alerts to alphanumeric pagers, or to mobile phones via SMS. Another possible use is for post-processing of recorded message or forwarding of the recorded message through other means. (The filename of the just recorded message can be accessed using the $RV[VoicemailMesasgeXXXX] Result Variable - it returns the filename of the last recorded voicemail message in a particular voicemail box - which is specified by replacing XXXX with the number of the voicemail box.) I've been trying this with a very simple VBS with only one line of code. The code is "msgBox". This should popup a message box. Works fine when I run it by double clicking on the file. Doesn't run at all after a message is left in the voicemail box. I've been using the full path and file name. Here is the trace. I didn't zip it because it is so short. 115014.36 0 cl Vm_VmbConfig_Get 1001, MsgLenMin 115014.38 4 cl Vm_Event 4, FORWARD, 1001, C:\Program Files\VoiceGuide\data\VmSave\1001_0214115010_1_4__.wav, , 115014.41 4 vm frwrd vmb start 115014.44 4 vm frwrd vmb 1001 115014.45 4 Run (VMB specific):C:\Program Files\VoiceGuide\Args.vbs 115014.48 4 vm frwrd vmb 1001 end 115014.50 4 cl Vm_Event 4, MSG_NEW, 1001, , , 115014.53 4 vm MsgLamp control set to [DISABLE] 115014.56 4 cl Script_Return [VmLmRec]{} The trace indicates that it ran the file but the message box never appears. Is there a better way to test this? What I ultimately want to do is to setup notification via telephone that a voicemail message has arrived using the escalation feature. Is there a simply way to do this? What I'm thinking of doing is using the Voicemail Run Command to call a VBS or a program and pass to it two arguments. One being [VmFileToPlay] and the second being [VmbId]. Then I will use these in an OutDial_New.xml file as the RV's available to the script I will run. The script I intend to run is vmMsgDeliver.vgs. I want my system to do exactly what the voicemail "Forward Tel" does except add the esclation feature to it. What is the proper way to pass these two arguments to another program? Would I do this: Args.vbs "$RV[VoicemailMessageXXXX]" "$RV[VmbId]" or would I leave off the quotation marks? Any help would be greatly appreciated. Share this post Link to post
Harry L. Roberts Report post Posted 02/14/2006 07:20 PM Further testing has shown that I can run NotePad.exe with no trouble from the voicemail run command. I still can't get my VBS file to run. The one and only line of code reads msgBox "Hello World". Share this post Link to post
SupportTeam Report post Posted 02/15/2006 01:08 AM The Run option allows you to run a 'command line' type command - like what you can run at a DOS prompt in the Windows' "Command Prompt". To run a VBScript from a command line prompt you have to use wscript.exe in Windows' "Command Prompt" run this: wscript /? to see all the options, but basically you should be able to just use: wscript myscript.vbs $RV[VoicemailMesasge1001] (above example would apply for voicemail box 1001) Share this post Link to post