snom

warning: Creating default object from empty value in /data/web/1/000/027/003/273448/htdocs/panticz.de/modules/taxonomy/taxonomy.pages.inc on line 33.

Snom TFTP recovery update

# download firmware image
#wget http://provisioning.snom.com/download/fw/snom320-7.3.27-SIP-f.bin -O /var/lib/tftpboot/snom320.bin
wget http://provisioning.snom.com/download/fw/snom320-8.2.29-SIP-f.bin -O /var/lib/tftpboot/snom320.bin

1. restart phone
2. wait for "To update by TFTP, press any key: 3 - 2 - 1"
3. press a key
4. set phone IP
5. set tftp server IP
6. set gateway
7. set netmask

Links
http://wiki.snom.com/Firmware/Update/TFTP_Update#Recommended_Update_for_Snom3xx_using_Pumpkin
http://wiki.snom.com/Firmware/V7/Recovery

Java2Snom

public String getSnomSetting(String phoneIp, String field) {
    String value = "";
 
    try {
        URL url = new URL("http://" + phoneIp + "/settings.htm");
        BufferedReader in = new BufferedReader(new InputStreamReader(url.openStream()));
 
        String inputLine;
        while ((inputLine = in.readLine()) != null) {
            if (inputLine.indexOf(field) == 0) {
                value = inputLine.substring(inputLine.indexOf(":") + 1).trim();
            }
        }
 
        in.close();
    } catch (Exception e) {
        System.out.println("[!] getSnomSetting:" + 

Reboot all Phones

#!/bin/bash
 
cp /etc/asterisk/sip_notify.conf /etc/asterisk/sip_notify.conf.back.$(date -I)
 
cat <<EOF>> /etc/asterisk/sip_notify.conf
[reboot-snom]
Event=>reboot
Content-Length=>0
EOF
 
cat <<EOF> /etc/asterisk/extensions.reboot.conf
exten => 666,1,System(/usr/sbin/asterisk -rx "sip notify reboot-snom pako sip2 sip3")
exten => 666,n,Hangup()
EOF
 
add "#include extensions.reboot.conf" to /etc/asterisk/extensions.conf
 
 
# Links
http://www.voip-info.org/wiki/view/Asterisk+phone+snom
http://das-asterisk-buch.de/2.1/telefone-snom.html

rebootAllPhones.sh

#!/bin/bash
 
for IP in {210..217}; do
	echo Rebooting ${IP}
	wget -q -O /dev/null -o /dev/null http://192.168.1.${IP}/confirm.htm?REBOOT=yes &
done
Syndicate content