08-16-2015, 05:06 AM
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:
Then in your dialplan extensions.conf file, you add these lines:
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.
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.