Yealink Forums

Full Version: how to send request to all devices same time for autoprovision..
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Hello Gilb, sorry for the late reply as I was on holiday. Here is an example of how to implement this for 3 phones, but you can easily add more.

In your Asterisk sip_notify.conf file you can add these lines:
Code:
[reboot-yealink]
Event=>check-sync\;reboot=true

[reconfig-yealink]
Event=>check-sync

Then in your dialplan extensions.conf file, you add these lines:
Code:
[rebootphones]
1234 => 1,System(/usr/sbin/asterisk -rx "sip notify reboot-yealink telA telB telC")

This will reboot phonew telA telB telC when you dial 1234 from within the rebootphones context.

Additional measures should be taken that prevent any user from dialing that extension, so make sure only an admin phone can do this from the rebootphones context, ask for a PIN code or both... Also don't use any user variables in the System() call, as this can jeopardise the security of your PBX.
Pages: 1 2
Reference URL's