Child pages
  • Using Microsoft Task Scheduler to Run Script Daily to use PA1 as Bell/Ringer

Contents


  1. Modify the "Lunch Ringer.bat" accordingly

    1. If you are not using Google Chrome as your browser you will need to change this parameter: SET BROWSER=chrome.exe
    2. You will need to modify the IP address 10.20.10.78 and enter the IP address of your PA1.
    3. You can use any ringtone you want. I have ringtone 9 set for the PLAY_RINGER command.

      Lunch Ringer.bat
      @ECHO OFF
      SET BROWSER=chrome.exe
      SET WAIT_TIME=2
      START %BROWSER% -new-tab "http://10.20.10.78/line_login.htm?PLAY_RINGER:9=Play+Ringer"
      @ping 127.0.0.1 -n %
      WAIT_TIME% -w 1000 > nul
      pause?
    You can also create a custom ringtone if you would like and use it by doing the following;
    How do I apply customized ringer melodies and what is the required format
    1. Use the custom_melody_url setting and point to the .wav file hosted on an HTTP Server. You can set the setting using this format
      http://PA1sIP/dummy.htm?settings=save&custom_melody_url=http://downloads.snom.com/documentation/melody1.wav
    2. Then modify the batch file to use the custom ringtone:

      Lunch Ringer.bat
      @ECHO OFF
      SET BROWSER=chrome.exe
      SET WAIT_TIME=2
      START %BROWSER% -new-tab "http://10.20.10.78/line_login.htm?PLAY_RINGER:CUSTOM=Play+Ringer"
      @ping 127.0.0.1 -n %
      WAIT_TIME% -w 1000 > nul
      pause?
  2. Once you have the batch file script created, use Windows Task Manager on your Laptop, PC or Server to run the script daily at the time of your choosing.
  3. Go to Start > Run and enter taskschd .msc



  4. Once the Task Scheduler is open select the Action "Create Task"



  5. Give the Task a name, select "Run whether user is logged on or not"

  6. Next, select Triggers and then New to create a New Trigger.



  7. You can now create the schedule for when you want the script to run and have the PA1 play a tone.

    Example:
     Daily at noon time the script will activate the ringer on the PA1



  8. Once the Trigger is created you must create the Action and link it to the Lunch Ringer.bat file.



  9. Click on "Actions" and then select "New" to create the "New Action"



  10. Click "Browse" and select the "Lunch Ringer.bat" file



  11. Once selected click "OK".

  12. This will bring you back to the Actions screen of the Task Scheduler. Click "OK" to complete the creation of the Task.

  13. You may be prompted for the "Admin/User password" for the account to grant permissions to run the script. Enter the password.