Sometimes somebody locks your SNOM phone down to user mode and also sets credentials for the webinterface. You can revoke those changes either by using the HTTP provisioning mechanism or by flashing a recovery image via TFTP.
If you already have a working provisioning mechanism (e.g. by setting the option in your DHCP server) to unlock your phone then it wasn’t a problem in the first place.
Flashing a recovery image via TFTP is no fun either as you need physical access to the phone (for setting up a static ip address, etc) and also it deletes all settings (especially those you might be interested in…).
Fortunately SNOM phones have a plug and play mode which can be (ab)used by somebody on the local network. By default, a phone will send a SIP Subscribe message to the multicast ip address 22.214.171.124 after each boot. A provisioning server can then send a SIP Notify message containg a HTTP URL for provisioning.
I made a small node.js application that listens for those SIP Subscribe messages and feeds them a XML configuration that resets the HTTP username and password to “admin” and also switches from user mode to admin mode.
Just start it with “node snomreset.js <yourIpAddress>” and have fun:
SIP listening 126.96.36.199:5060Received SUBSCRIBE from MAC 0004134001F4Sending OkSending NOTIFY with provisioning URLResetting HTTP user and password to “admin”, enabling admin mode.Resetting HTTP user and password to “admin”, enabling admin mode.Resetting HTTP user and password to “admin”, enabling admin mode.
You can download the snomreset.js application here.