I’ve only ever been able to get mine to reboot by issuing a sip notify command. I’m going to keep an eye on this thread to see if there’s a way to do it from the endpoint manager. I have the commercial endpoint installed, but there is also a “phone reboot” module, which I suspect also uses the sip notify command, because if a phone isn’t registered, it doesn’t show in that menu. I used to manage old Linksys/Cisco phones that had a URL you could send to the phone to cause it to reboot. (assuming you were authenticated.) I could never find such a URL for the Grandstream phones, although I’m pretty sure such a URL exists.
In the PHP code it appears to login to the phone then issue the reboot URL. I suppose you could put somekind of network monitor software up and see what the browser is sending the phone when you press the reboot button. I think it is a confirmation popup… “Are you sure you want to reboot this phone” something like that.
I found the URL that does the reboot:
The problem is getting the sid, this is the session id from the login. Should be from the response to the login. I will mess around with this and see what I can find.
I have a hard coded version working. I am getting everything but the admin password for the phone. the original reboot() method in phone.php for the gxphd phones gets the admin password from $this->options[‘admin_pass’] if this is blank then it defaults to ‘admin’ Well it is blank for me despite having set it to something else in the template. Any direction with this would be helpful. I will post my reboot() function after I figure this last piece out.
I have never submitted a pull request. Looks complicated.
This change has only been tested in my environment. Now granted there is no way the current reboot method for this phone type is working and this at least has a chance of working if the password is still the default password for the phone. I have not been able to figure out that last piece… where the admin password is coming from.
I have also made some changes specific to the gxp2124 to allow for setting of all the multipurpose keys and line keys. This could also be useful I would guess.
I know this is almost a year old, but I am still having a problem rebooting Grandstream GSX280 and GXP2010.
While searching I located a perl script here http://www.pkts.ca/gsutil.shtml which helped me and I hope will help anyone reading this wishing to remote reboot Grandstream phones.
This works and will work on several phones from one command line.
Can this be incorporated into the OSS Endpoint Manager to reboot these phones?
in sip_notify_custom.conf add the lines:
APPLY CONFIG and go to the Asterisk CLI (asterisk -r)
then type: sip notify gsreboot 'device MAC address’
e.g. sip notify gsreboot 000B8210000
wait about 60 seconds before rebooting another device.
You should see it in the CLI i.e. device becomes unreachable / reachable.