Reboot a Yealink phone from the command line of a FreePBX system
-
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
-
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
-
You can make your own and put them in
sip_notify_custom.conf
-
When is it necessary to reboot a phone from a FreePBX system?
-
@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.
-
@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.
-
@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.
-
@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?
-
@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
-
@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 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?
-
@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.
-
@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.
-
I like PBX reboots over web GUI, though, because one bypasses the LAN, the other would require somehow exposing the web interface potentially.
-
@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.
-
@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.
-
@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.