Content
Modify the "Lunch Ringer.bat" accordingly
- If you are not using Google Chrome as your browser you will need to change this parameter:Â SET BROWSER=chrome.exe
- You will need to modify the IP address 10.20.10.78 and enter the IP address of your PA1.
You can use any ringtone you want. I have ringtone 9 set for the PLAY_RINGER command.
How do I apply customized ringer melodies and what is the required format- 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 - Setup the custom melody with a unused Identity.Â
Then modify the batch file to use the custom ringtone, in this example it will be for Identity 4 (admin:admin is the username:password of webUI):
- 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.
Go to Start > Run and enter taskschd .msc
Once the Task Scheduler is open select the Action "Create Task"
- Give the Task a name, select "Run whether user is logged on or not"
Next, select Triggers and then New to create a New Trigger.
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 PA1Once the Trigger is created you must create the Action and link it to the Lunch Ringer.bat file.
Click on "Actions" and then select "New" to create the "New Action"
Click "Browse" and select the "Lunch Ringer.bat" file
- Once selected click "OK".
- This will bring you back to the Actions screen of the Task Scheduler. Click "OK" to complete the creation of the Task.
You may be prompted for the "Admin/User password" for the account to grant permissions to run the script. Enter the password.
Note: The custom ringer will start working via the command .bat after the second time, per PA1 power on. Thereafter it will continue to work via command as expected, so long as the PA1 stays powered on.
The custom ringer will play for the duration of 1 ring as predefined in the PA1 programming, which is roughly 3 seconds. If the wav file is less than three seconds, the ring will still fulfill the 3 seconds, thus your wav file will appear to play once and then partially starting again, with a cut off.
Further Information
Related articles