Skip to end of metadata
Go to start of metadata


Apr 01, 2020 11:29

How to automatically broadcast messages over W-PA at the fixed time

The Document explains how to configure automatic announcements to be played back over W-PA at the fixed time using cron schedule.

Initial W-PA Documentation (how to provision, assign to user etc.): W-PA SIP Public Announcer - Admin Manual

Created: April 2019

Permalink: https://confluence.wildix.com/x/LAFOAg

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:

911 - Feature Code "Paging" + Paging Group ID where the device is present

00000/WPA - pre-recorded message

Cron file setting up

  • 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 at which pre-recorded messages have to be played back (1 line) and run the command applying API Originate (2 line) :
*/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. More information about crontab syntax: LINK

admin:password - admin credentials of your PBX

112 - the extension number of W-PA user

users - Dialplan procedure where the called number is matched

Announcer - the name of W-PA user

Not finding the help you need?
Join the Facebook group to ask a question!
facebook_tech-wizards