Up until a few days ago, I don’t think it was possible to reboot a Cisco 7960 or Cisco 7970 remotely, unless you are using Cisco Call manager software. Great, where does that leave us Asterisk users?
The other day I was fortunate enough to be contacted by Dave Gibbons who was also tired of dealing with Cisco to try and find a method to do this. He’s gone ahead and made a script that remotely “pushes the buttons” on the phone so it will automatically reboot with a simple command line utility.
His posting on it is located here:
Remotely Reboot a Cisco 79xx Phone (without SIP NOTIFY)
The gist of it is:
Read the information on the Voip-Info wiki, about pushing XML services to your Cisco 79xx phone. This information can be found here.
Download David’s script, which I’ve mirrored Locally on our servers to help spread the abilities.
File is located here: Remote Reboot Cisco 79xx PHP Script
Unzip the contents of said file to your local webserver that has access to your phones. We put it in /var/www/cisco/reboot.php
Now, you will need to modify the script to include your phone information, by changing the following lines:
$username = "jf903jsmfld93"; $password = "94jisdnhjdyw2euha";
To run the script is quite simple, just give it the extension, and the action.
# php reboot.php <extension> reboot like this # php reboot.php 8080 reboot
That’s it. You should see the services window popup on the phone, and then a few seconds later it’ll reset itself.
Thanks for the great script David, we hope to see many ideas stem from this since Cisco is no help to us Asterisk users.
Comment by Youza on 2008-09-15 05:01:13 -0500
Hello this is very goot tip, but i heve the cisco 7906G and this script doesnt work. The key sequence Key:Settings is not work.
The phone response
Can i have next way to restart the phone ?
Comment by Geert on 2009-08-28 11:17:40 -0500
Rebooting a Cisco 7940 can be done in PHP by setting up a telnet connection to the phone and issuing the ‘reset’ command once logged in. In code:
‘cisco’ is the (default) password of these phones. 10.10.10.190 is the IP address of the phone I was testing with, you should change both values of course to your situation.