ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    How to add a sip notify command to FreePBX 14 to force Yealink phones to reboot

    IT Discussion
    freepbx 14 freepbx yealink sip notify
    1
    2
    2.6k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • JaredBuschJ
      JaredBusch
      last edited by

      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"
      
      JaredBuschJ 1 Reply Last reply Reply Quote 1
      • JaredBuschJ
        JaredBusch @JaredBusch
        last edited by JaredBusch

        @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"
        
        1 Reply Last reply Reply Quote 2
        • 1 / 1
        • First post
          Last post