Guest scoful Report post Posted 02/29/2008 02:19 PM I would like to set up my script so that it changes how many rings until it answers by the time of day. Currently Voiceguide answers the call if it rings 3 times. If someone is here they answer the call directly. I would like Voiceguide to answer immediately after hours. I currently have Voiceguide scripted with an open/closed date/time evaluation. I presume a programatic change to the number of rings may only be available after the line rings and that is OK (ie: the first call after 5:00 PM still answers at 3 rings, but subsequent calls answer immediately and the first call after 8:00 AM is answered immediately but subsequent calls are answered at 3 rings). Is there a way to do this? Share this post Link to post
SupportTeam Report post Posted 02/29/2008 11:43 PM Yes, there is a way to do this. from http://www.voiceguide.com/vghelp/source/ht...ltvariables.htm : $RV_RINGCOUNT Number of rings an incoming call has rung so far. This variable can be used to determine at which point to answer the call if the script was started with the "Start the script before answering the call" option. Probably best to have a VBScript as the first module in the script and have the VBScript use the RvGet COM command to query the value of RV_RINGCOUNT every second or so. Then get the time of day and day of week and decide if to wait longer of if to go to a Play module etc which will answer the call. If you have problems setting this up please post your script here and we can assist in getting it working. Share this post Link to post
Guest scoful Report post Posted 03/01/2008 03:10 PM Not quite sure but it appears you're suggesting running a VB script the checks the current number of rings received against the open/closed time/date criteria and wait until the appropriate number of rings is reached. How do you make the script run all the time? Is there no way to just change the number of rings in the script? Sounds a little complicated to me. Attached is my current script. CurrentScript.vgs Share this post Link to post
SupportTeam Report post Posted 03/02/2008 02:48 AM the VBScript should be something like this: set vg = CreateObject("VoiceGuide.CommandLink") iRingCount = 0 iWaitCount = 0 sReturnValue = "Fail" do while (iWaitCount < 30) iRingCount = vg.RvGet($RV_LINEID, "RV_RINGCOUNT") if CInt(iRingCount) >= 4 then sReturnValue = "Success" Exit Do end if WScript.Sleep(1000) iWaitCount = iWaitCount + 1 loop vg.Run_ResultReturn $RV_LINEID, sReturnValue set vg = Nothing The modified script is attached. We did not test this, bit this script should be pretty close to what you need I think. CurrentScript.vgs Share this post Link to post
Guest scoful Report post Posted 03/02/2008 01:13 PM The modified script you have attached appears to wait 4 rings and either answwer or hang up if the line has stopped ringing. If I move the VBS after the my open/closed evaluation will this still work? Do I need to set my line configs 0 rings? Is there any other configuration change I need to make for the script to start running before the call is actually answered? Share this post Link to post
SupportTeam Report post Posted 03/02/2008 09:44 PM If I move the VBS after the my open/closed evaluation will this still work? Yes. Do I need to set my line configs 0 rings? No. Is there any other configuration change I need to make for the script to start running before the call is actually answered? No. Share this post Link to post