How to add a sip notify command to FreePBX 14 to force Yealink phones to reboot
-
If you saw my other thread about getting Yealink phones to not reboot, well that is now the default behavior.
This is honestly a good thing, because it was very, very annoying that any little change of a phone config in the EndPoint Manager forced Yealink phones to reboot.
But sadly, the dev that implemented my feature request, didn't add in a new command to only reload. I get what they did, because it was a very minimal change. Adding a new
sip notify
command would also have required editing the logic for EPM.So now the default
reboot-yealink
command will not reboot unless the phone sees a config change that it knows requires a reboot.But what if you want to force the phones to reboot.
Well the answer is the same but opposite as before.
Go to Admin -> Config Edit
Scroll down the list until you see
sip_notify_custom.conf
and select it.
In the box to the right enter this, then click Save and then Apply Config
[restart-yealink] Event=>check-sync\;reboot=true
As you can see, I also still have the
reload-yealink
as previously designed from the other thread.
After everything reloads, you can open up a
ssh
session and tell a phone to restart like this.asterisk -rx "pjsip send notify restart-yealink endpoint 110"
-
@JaredBusch said in How to add a sip notify command to FreePBX 14 to force Yealink phones to reboot:
After everything reloads, you can open up a
ssh
session and tell a phone to restart like this.asterisk -rx "pjsip send notify restart-yealink endpoint 110"
You can also do more than one phone at a time. Just space delimit them .
asterisk -rx "pjsip send notify restart-yealink endpoint 103 108 110"