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

    Reboot a Yealink phone from the command line of a FreePBX system

    IT Discussion
    yealink command line reboot
    5
    17
    6459
    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.
    • JaredBusch
      JaredBusch last edited by JaredBusch

      This is something I do, but rarely, so I forgot about it until I needed to do it again tonight.

      I will make a script on github later, but for now, here is the command using extension 103 as an example

      #Log into the Asterisk CLI
      asterisk -r
      
      #send a notify command to a pjsip extension
      pjsip send notify reboot-yealink endpoint 103
      
      #send a notify command to a sip extension
      sip notify yealink-reboot 103
      
      1 Reply Last reply Reply Quote 3
      • JaredBusch
        JaredBusch last edited by

        This requires a FreePBX system because the command there is listed in the file sip_notify_additional.conf

        Here are more examples of what you can do by default

        ;--------------------------------------------------------------------------------;
        ;          Do NOT edit this file as it is auto-generated by FreePBX.             ;
        ;--------------------------------------------------------------------------------;
        ; For information on adding additional paramaters to this file, please visit the ;
        ; FreePBX.org wiki page, or ask on IRC. This file was created by the new FreePBX ;
        ; BMO - Big Module Object. Any similarity in naming with BMO from Adventure Time ;
        ; is totally deliberate.                                                         ;
        ;--------------------------------------------------------------------------------;
        [aastra-check-cfg]
        Event=>check-sync
        
        [aastra-xml]
        Event=>aastra-xml
        
        [cisco-check-cfg]
        Event=>check-sync
        
        [cortelco-check-cfg]
        Event=>check-sync
        
        [digium-check-cfg]
        Event=>check-sync
        
        [grandstream-check-cfg]
        Event=>check-sync
        
        [htek-check-cfg]
        Event=>check-sync
        
        [linksys-cold-restart]
        Event=>reboot_now
        
        [linksys-warm-restart]
        Event=>restart_now
        
        [obihai-check-cfg]
        Event=>sync
        
        [polycom-check-cfg]
        Event=>check-sync
        
        [polycom-reboot]
        Event=>check-sync
        
        [sangoma-check-cfg]
        Event=>check-sync
        
        [sync-noreboot-sangoma]
        Event=>check-sync\;reboot=false
        
        [sync-reboot-sangoma]
        Event=>check-sync\;reboot=true
        
        [sync-hints-sangoma]
        Event=>server_restart
        
        [reboot-sangoma]
        Event=>reboot
        
        [sipura-check-cfg]
        Event=>resync
        
        [reboot-snom]
        Event=>reboot
        
        [spa-reboot]
        Event=>reboot
        
        [reboot-yealink]
        Event=>check-sync\;reboot=true
        
        1 Reply Last reply Reply Quote 2
        • JaredBusch
          JaredBusch last edited by

          You can make your own and put them in sip_notify_custom.conf

          1 Reply Last reply Reply Quote 0
          • black3dynamite
            black3dynamite last edited by

            When is it necessary to reboot a phone from a FreePBX system?

            dbeato JaredBusch scottalanmiller 3 Replies Last reply Reply Quote 0
            • dbeato
              dbeato @black3dynamite last edited by

              @black3dynamite said in Reboot a Yealink phone from the command line of a FreePBX system:

              When is it necessary to reboot a phone from a FreePBX system?

              When the user doesnโ€™t want to or know how to do it, or even when you sre trying to see if the phone is registering properly on the server. Those are my cases or when you do a feature added or some changes to the configuration of the phone.

              JaredBusch 1 Reply Last reply Reply Quote 2
              • JaredBusch
                JaredBusch @black3dynamite last edited by

                @black3dynamite said in Reboot a Yealink phone from the command line of a FreePBX system:

                When is it necessary to reboot a phone from a FreePBX system?

                Your have magic users that know how to do anything?

                Seriously, I had a user ask me how to reboot their phone today.

                1 Reply Last reply Reply Quote 3
                • JaredBusch
                  JaredBusch @dbeato last edited by

                  @dbeato said in Reboot a Yealink phone from the command line of a FreePBX system:

                  some changes to the configuration of the phone.

                  This is one reason I want it done, but rarely do i need to do it from the PBX itself.

                  Because I create my own config files, I do not get the magic "rebuild config and reboot" button that the paid EPM has in FreePBX.

                  Generally I only need this when things happen like today when an internal FreePBX system went unexpectedly offline and was rebooted along with the entire Hyper-V server.

                  BLF subscriptions seem to not update real well to events like that.

                  dbeato 1 Reply Last reply Reply Quote 1
                  • dbeato
                    dbeato @JaredBusch last edited by

                    @jaredbusch said in Reboot a Yealink phone from the command line of a FreePBX system:

                    @dbeato said in Reboot a Yealink phone from the command line of a FreePBX system:

                    some changes to the configuration of the phone.

                    This is one reason I want it done, but rarely do i need to do it from the PBX itself.

                    Because I create my own config files, I do not get the magic "rebuild config and reboot" button that the paid EPM has in FreePBX.

                    Generally I only need this when things happen like today when an internal FreePBX system went unexpectedly offline and was rebooted along with the entire Hyper-V server.

                    BLF subscriptions seem to not update real well to events like that.

                    Understood, talking about the Paid EPM, Do you see a reason to use it in the Small Business World?

                    JaredBusch scottalanmiller 2 Replies Last reply Reply Quote 0
                    • scottalanmiller
                      scottalanmiller @black3dynamite last edited by

                      @black3dynamite said in Reboot a Yealink phone from the command line of a FreePBX system:

                      When is it necessary to reboot a phone from a FreePBX system?

                      Nearly anytime you are supporting one that is having a problem ๐Ÿ™‚

                      1 Reply Last reply Reply Quote 0
                      • JaredBusch
                        JaredBusch @dbeato last edited by

                        @dbeato said in Reboot a Yealink phone from the command line of a FreePBX system:

                        @jaredbusch said in Reboot a Yealink phone from the command line of a FreePBX system:

                        @dbeato said in Reboot a Yealink phone from the command line of a FreePBX system:

                        some changes to the configuration of the phone.

                        This is one reason I want it done, but rarely do i need to do it from the PBX itself.

                        Because I create my own config files, I do not get the magic "rebuild config and reboot" button that the paid EPM has in FreePBX.

                        Generally I only need this when things happen like today when an internal FreePBX system went unexpectedly offline and was rebooted along with the entire Hyper-V server.

                        BLF subscriptions seem to not update real well to events like that.

                        Understood, talking about the Paid EPM, Do you see a reason to use it in the Small Business World?

                        That decision is based on who is managing.

                        dbeato 1 Reply Last reply Reply Quote 0
                        • scottalanmiller
                          scottalanmiller @dbeato last edited by

                          @dbeato said in Reboot a Yealink phone from the command line of a FreePBX system:

                          @jaredbusch said in Reboot a Yealink phone from the command line of a FreePBX system:

                          @dbeato said in Reboot a Yealink phone from the command line of a FreePBX system:

                          some changes to the configuration of the phone.

                          This is one reason I want it done, but rarely do i need to do it from the PBX itself.

                          Because I create my own config files, I do not get the magic "rebuild config and reboot" button that the paid EPM has in FreePBX.

                          Generally I only need this when things happen like today when an internal FreePBX system went unexpectedly offline and was rebooted along with the entire Hyper-V server.

                          BLF subscriptions seem to not update real well to events like that.

                          Understood, talking about the Paid EPM, Do you see a reason to use it in the Small Business World?

                          Loads. Even for internal staff, why walk to a phone if you can reboot from your desk?

                          JaredBusch bbigford 2 Replies Last reply Reply Quote 1
                          • JaredBusch
                            JaredBusch @scottalanmiller last edited by

                            @scottalanmiller said in Reboot a Yealink phone from the command line of a FreePBX system:

                            @dbeato said in Reboot a Yealink phone from the command line of a FreePBX system:

                            @jaredbusch said in Reboot a Yealink phone from the command line of a FreePBX system:

                            @dbeato said in Reboot a Yealink phone from the command line of a FreePBX system:

                            some changes to the configuration of the phone.

                            This is one reason I want it done, but rarely do i need to do it from the PBX itself.

                            Because I create my own config files, I do not get the magic "rebuild config and reboot" button that the paid EPM has in FreePBX.

                            Generally I only need this when things happen like today when an internal FreePBX system went unexpectedly offline and was rebooted along with the entire Hyper-V server.

                            BLF subscriptions seem to not update real well to events like that.

                            Understood, talking about the Paid EPM, Do you see a reason to use it in the Small Business World?

                            Loads. Even for internal staff, why walk to a phone if you can reboot from your desk?

                            I disagree with this. Because there are other ways to reboot a phone remotely, namely with the web GUI.

                            The paid EPM is a good product but it has a number of limitations that make it clunky for any experienced admin. It is designed for the untrained masses, and does a good job for that target.

                            scottalanmiller 1 Reply Last reply Reply Quote 1
                            • scottalanmiller
                              scottalanmiller @JaredBusch last edited by

                              @jaredbusch said in Reboot a Yealink phone from the command line of a FreePBX system:

                              @scottalanmiller said in Reboot a Yealink phone from the command line of a FreePBX system:

                              @dbeato said in Reboot a Yealink phone from the command line of a FreePBX system:

                              @jaredbusch said in Reboot a Yealink phone from the command line of a FreePBX system:

                              @dbeato said in Reboot a Yealink phone from the command line of a FreePBX system:

                              some changes to the configuration of the phone.

                              This is one reason I want it done, but rarely do i need to do it from the PBX itself.

                              Because I create my own config files, I do not get the magic "rebuild config and reboot" button that the paid EPM has in FreePBX.

                              Generally I only need this when things happen like today when an internal FreePBX system went unexpectedly offline and was rebooted along with the entire Hyper-V server.

                              BLF subscriptions seem to not update real well to events like that.

                              Understood, talking about the Paid EPM, Do you see a reason to use it in the Small Business World?

                              Loads. Even for internal staff, why walk to a phone if you can reboot from your desk?

                              I disagree with this. Because there are other ways to reboot a phone remotely, namely with the web GUI.

                              The paid EPM is a good product but it has a number of limitations that make it clunky for any experienced admin. It is designed for the untrained masses, and does a good job for that target.

                              Oh sorry, got confused, thought we were still discussing why to remotely reboot the phone not the module speceifically.

                              1 Reply Last reply Reply Quote 0
                              • scottalanmiller
                                scottalanmiller last edited by

                                I like PBX reboots over web GUI, though, because one bypasses the LAN, the other would require somehow exposing the web interface potentially.

                                JaredBusch 1 Reply Last reply Reply Quote 0
                                • JaredBusch
                                  JaredBusch @scottalanmiller last edited by

                                  @scottalanmiller said in Reboot a Yealink phone from the command line of a FreePBX system:

                                  I like PBX reboots over web GUI, though, because one bypasses the LAN, the other would require somehow exposing the web interface potentially.

                                  Certainly the better way to do it. Just saying there is more than one way.

                                  1 Reply Last reply Reply Quote 0
                                  • dbeato
                                    dbeato @JaredBusch last edited by

                                    @jaredbusch said in Reboot a Yealink phone from the command line of a FreePBX system:

                                    @dbeato said in Reboot a Yealink phone from the command line of a FreePBX system:

                                    @jaredbusch said in Reboot a Yealink phone from the command line of a FreePBX system:

                                    @dbeato said in Reboot a Yealink phone from the command line of a FreePBX system:

                                    some changes to the configuration of the phone.

                                    This is one reason I want it done, but rarely do i need to do it from the PBX itself.

                                    Because I create my own config files, I do not get the magic "rebuild config and reboot" button that the paid EPM has in FreePBX.

                                    Generally I only need this when things happen like today when an internal FreePBX system went unexpectedly offline and was rebooted along with the entire Hyper-V server.

                                    BLF subscriptions seem to not update real well to events like that.

                                    Understood, talking about the Paid EPM, Do you see a reason to use it in the Small Business World?

                                    That decision is based on who is managing.

                                    Understandably so.

                                    1 Reply Last reply Reply Quote 0
                                    • bbigford
                                      bbigford @scottalanmiller last edited by

                                      @scottalanmiller said in Reboot a Yealink phone from the command line of a FreePBX system:

                                      @dbeato said in Reboot a Yealink phone from the command line of a FreePBX system:

                                      @jaredbusch said in Reboot a Yealink phone from the command line of a FreePBX system:

                                      @dbeato said in Reboot a Yealink phone from the command line of a FreePBX system:

                                      some changes to the configuration of the phone.

                                      This is one reason I want it done, but rarely do i need to do it from the PBX itself.

                                      Because I create my own config files, I do not get the magic "rebuild config and reboot" button that the paid EPM has in FreePBX.

                                      Generally I only need this when things happen like today when an internal FreePBX system went unexpectedly offline and was rebooted along with the entire Hyper-V server.

                                      BLF subscriptions seem to not update real well to events like that.

                                      Understood, talking about the Paid EPM, Do you see a reason to use it in the Small Business World?

                                      Loads. Even for internal staff, why walk to a phone if you can reboot from your desk?

                                      I like the exercise. ๐Ÿ™‚

                                      1 Reply Last reply Reply Quote 0
                                      • First post
                                        Last post