voip

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.

fkeys.xml

<?xml version="1.0" encoding="utf-8"?>
<functionKeys>
 <fkey idx="0" context="active" perm="">speed ekiga</fkey>
 <fkey idx="1" context="active" perm="">speed user1</fkey>
 <fkey idx="2" context="active" perm="">speed user2</fkey>
</functionKeys>

general.xml

<?xml version="1.0" encoding="utf-8"?>
 <phone-settings>
  <language perm="RW">Deutsch</language>
  <tone_scheme perm="R">GER</tone_scheme>
  <timezone perm="R">GER+1</timezone>
  <date_us_format perm="R">off</date_us_format>
  <time_24_format perm="R">on</time_24_format>
  <contrast perm="R">26</contrast>
  <user_ringer idx="1" perm="RW">Ringer7</user_ringer>
 
  <update_policy perm="R">auto_update</update_policy>
  <firmware_interval perm="R">2880 </firmware_interval>
</phone-settings>

snom3x0.xml

<?xml version="1.0" encoding="utf-8" ?>
<setting-files>
<file url="http://provisioning.snom.com/config/gui_lang.xml"/>
<file url="http://fs/snom3x0/general.xml"/>
<file url="http://fs/snom3x0/fkeys.xml"/>
<file url="http://fs/snom3x0/tbook.xml"/>
<file url="http://fs/snom3x0/snom3x0-{mac}.xml"/>
<!-- <file url="http://fs/snom3x0/firmware.xml"/> -->
</setting-files>

dhcpd.conf

host sip_001112131415 {
        hardware ethernet 00:11:12:13:14:15;
        fixed-address 192.168.0.218;
        option tftp-server-name "http://fs/snom3x0/snom3x0.xml";
       # option tftp-server-name       "192.168.0.23";
       # option bootfile-name          "snom.htm";
}

sip.conf

[general]
port = 5060
bindaddr=0.0.0.0
qualify=no
;disallow=all
allow=alaw
srvlookup=yes
language=de
progressinband=yes
 
[ekiga]
type=friend
nat=no
host=dynamic
canreinvite=no
qualify=1000
dtmfmode=rfc2833
progressinband=yes
username=ekiga
secret=ekiga
context=localphones
 
pedantic=yes

extensions.conf

[localphones]
exten => _X.,1,Dial(CAPI/ISDN1/${EXTEN}/b)
exten => _X.,n,Hangup
 
exten => 555,1,Answer()
exten => 555,n,Playback(tt-monkeys)
 
exten => 14,1,Answer()
exten => 14,n,Dial(CAPI/ISDN1/555-14/b)
 
exten => ekiga,1,Answer()
exten => ekiga,n,Dial(SIP/ekiga)
 
[directdial]
exten => 1,1,Dial(CAPI/ISDN1/${customernum}/b)

Snom 320 Firmware update from 6 to 7

http://PHONE_IP/update.htm
http://fox.snom.com/update6to7/snom320-3.38-l.bin
http://provisioning.snom.com/download/fw/snom320-6.5.15-SIP-j.bin
http://fox.snom.com/update6to7/snom320-from6to7-7.1.30-bf.bin
http://provisioning.snom.com/download/fw/snom320-7.3.14-SIP-f.bin
 
# Update to V8
http://192.168.1.9/snom3x0/snom320-8.2.29-SIP-f.bin
 
# LINKS
http://wiki.snom.com/Firmware/V7/Update_Description#Manual_Update
http://wiki.snom.com/Firmware/V7/Update_Description#Automatic_Update
http://wiki.snom.com/Firmware/V7/Update_Description

Snom 320 / 360 / 370

Provisioning / Mass Deployment
http://wiki.snom.com/Mass_Deployment
http://wiki.snom.com/Features/Mass_Deployment/Setting_Files

Firmware
http://wiki.snom.com/Firmware/ - Bootloader update
http://wiki.snom.com/Firmware/V8/Release_Notes
http://provisioning.snom.com/download/fw/
http://wiki.snom.com/Firmware/Update/Automatic_Update_Service
http://wiki.snom.com/Firmware/Update/TFTP_Update/de - firmware recovery (tftpboot flash)

SNMP on Snom phones
http://wiki.snom.com/Category:HowTo:SNMP

Reboot
wget -q -O /dev/null -o /dev/null http://PHONE_IP/confirm.htm?REBOOT=yes

Functions
http://wiki.snom.com/Functions/Call/Call_Transfer - Call Transfer

configrue over url
http://PHONE_IP/dummy.htm?settings=save&redirect_number=TARGET_PHONE&redirect_event=all

LEDs
http://das-asterisk-buch.de/2.1/blf-leds.html - BLF, Hints, Pickup
http://www.jodler.ch/bstocker/?p=400 - HowTo controll LEDs on SNOM phones

Display
http://YOUR_PHONE_IP/dummy.htm?settings=save&user_idle_text1=Hello_World - set display text
sipsak -i -M -O desktop -B "test test" -s sip:pako@192.168.1.220

Reboot all phones

#!/bin/bash

for IP in {210..220}; do
	echo Rebooting ${IP}
	wget -q -O /dev/null -o /dev/null http://192.168.1.${IP}/confirm.htm?RESET=yes &
done
1

(Re)Register all phones

#!/bin/bash

for IP in {210..220}; do
	echo Rebooting ${IP}
	wget -q -O /dev/null -o /dev/null --post-data="REREGISTER:1=Re-Registrieren" http://192.168.1.${IP}/line_login.htm?l=1
done
1

View firmware version

#!/bin/bash

NET=192.168.1

for IP in {210..220}; do
    FW=$(wget http://${NET}.${IP}/info.htm -q -O - | grep -e 'snom3.0-SIP '  | cut -d">" -f7 | cut -d"<" -f1 | cut -d" " -f2)
    HOST=$(host ${NET}.${IP} | cut -d" " -f5)    

    echo "${HOST} - ${FW}"
done
1

Links
http://wiki.snom.com/Snom320/Documentation - Snom 320 Documentation
http://www.voip-info.org/wiki-Asterisk+phone+snom
http://wiki.snom.com/Snom320
http://www.linux-magazin.de/heft_abo/ausgaben/2008/04/gemeinschaft_an_der_strippe
http://www.das-asterisk-buch.de/2.1/telefone-snom.html
https://addons.mozilla.org/de/firefox/addon/12127/
http://kb.snom.com/kb/index.php?View=entry&CategoryID=21&EntryID=40 - KEYEVENTs
http://snom.co.uk/screen-viewer/view/ - Snom Screen Monitoring
http://wiki.snom.com/Interoperability/PBX/Nortel - Settings for Arcor VoIP

Asterisk auto-dial out with Java (asterisk-java)

# configure manager
/etc/asterisk/manager.conf
[general]
enabled = yes
port = 5038
bindaddr = 0.0.0.0 
 
[manager]
secret=pa55w0rd
permit=0.0.0.0/0.0.0.0
read=system,call,log,verbose,agent,command,user
write=system,call,log,verbose,agent,command,user
 
# create extension
/etc/asterisk/extensions.conf
[directdial]
exten => 1,1,Dial(CAPI/ISDN1/${customernum}/b)
 
# reload asterisk
/etc/init.d/asterisk restart
 
# download java class
wget http://maven.reucon.com/public-snapshot/org/asteriskjava/asterisk-java/1.0.0-SNAPSHOT/asterisk-java-1.0.0-20090303.204542-422.jar
 
# HelloMa

Asterisk

asterisk console
asterisk -r

set output to verbose
core set verbose 10

CLI commands
core show channels
capi show channels
capi info
reload
sip show peers

asterisk -rx "sip show registry"

end / destroy channel
core show channels
soft hangup SIP/XXXXXX

MOH
wget http://downloads.digium.com/pub/telephony/sounds/asterisk-moh-freeplay-wav.tar.gz -P /tmp
tar xzf /tmp/asterisk-moh-freeplay-wav.tar.gz -C /tmp
cp /tmp/fpm-sunshine.wav /var/lib/asterisk/moh/
# extensions.conf

Syndicate content