Guest mmckenna_itpro@hotmail.com Report post Posted 03/27/2004 10:08 PM How do I use the 'send pager message' block in a script as a callout function? I want to be able to activeate this block if an alarm occcurs in a monitoring syste. Mike. Share this post Link to post
SupportTeam Report post Posted 03/27/2004 11:30 PM When the module is executed it will just insert an entry in the OutDialQue.mdb database in VG's \data\ subdirectory, and then VG Dialer will place the call and deliver the pager message. You can of course insert the entry into the OutDialQue.mdb yourself, and as soon as the entry is placed there VG Dialer will make the call. you need to use "DIAL_PAGER_NUMERIC" for the sScript and sAnswerMachineMsg fields. You can use VG's Dialer_OutDialQueAdd COM function to do the insert as well - here is an example of the VB Script to run: set vg = CreateObject("VoiceGuide.CommandLink") vg.Dialer_OutDialQueAdd "0,5551234", 0, 0, 0, "", "", "123456789", "DIAL_PAGER_NUMERIC", "DIAL_PAGER_NUMERIC", "", 0, 2, 5, "" set vg = Nothing Where "123456789" is the pager message and "0,5551234" is the telephone number to dial. Just place the quoted script into a file with a suffix of ".vbs" and then to run the VB Script run this command: Wscript myname.vbs The VB Script will then be ran... Share this post Link to post