The Document explains how to configure automatic announcements to be played back over W-PA at the fixed time using cron schedule.
W-PA Documentation: W-PA SIP Public Announcer - Admin Manual
Created: April 2019
Permalink:
Dialplan configuration
You can use the following Custom application to play back pre-recorded messages:
- Custom application -> Page(Local/911@pbxservices,nA(00000/WPA))
Where:
91 - Feature Code "Paging"
1 - Paging Group ID where the device is present
00000/WPA - pre-recorded message
Cron file string
- Connect via SSH and run the following command to edit crontab file or create a new one if it doesn't exist:
crontab -e -u root
- In the cron file, specify the time for pre-recorded messages to be run:
*/2 * * * * my-script.sh curl -u admin:password -k -X POST --data-urlencode "channel=Local/112@users" --data-urlencode "exten=112" --data-urlencode "context=users" --data-urlencode "priority=1" --data-urlencode "callerid=\"Announcer\" <112>" https://127.0.0.1/api/v1/Originate
where:
*/2 * * * * my-script.sh - the string that runs the next command every 2 minutes. LINK
admin:password - admin credentials of your PBX
112 - the extension number of W-PA user
users - Dialplan procedure to manage calls to W-PA user
Announcer - the name of W-PA user