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
    0_1543283333063_1b531790-6f89-4efb-9898-658695323677-image.png

    Scroll down the list until you see sip_notify_custom.conf and select it.
    0_1543283355098_6a28c693-6619-4daf-bf0a-9176bf30e8c4-image.png

    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.
    0_1543283441424_3e662ede-d12b-40e5-93e1-071d1d17b75d-image.png

    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"