voip

Diva Server 4BRI-8M 2.0 PCI

Compile Driver for Debian / Ubuntu
apt-get install -y linux-headers-$(uname -r)
apt-get install -y wget build-essential libncurses5-dev

# apt-get install -y linux-ubuntu-modules-$(uname -r)
# apt-get install -y linux-restricted-modules
# apt-get install -y apt-get install isdnactivecards

apt-get install -y capiutils
apt-get install -y asterisk
apt-get install -y asterisk-chan-capi

# fix /bin/sh on ubuntu
# ln -sf /bin/bash /bin/sh

# check for new downloads
ftp://ftp.melware.net/divas/v3/

Snom 320 / 360 / 370

Provisioning / Mass Deployment
# Default url:
http://provisioning.snom.com/snom320/snom320.php?mac={mac}
http://wiki.snom.com/Mass_Deployment
http://wiki.snom.com/Features/Mass_Deployment/Setting_Files
http://wiki.snom.com/Settings/setting_server
http://wiki.snom.com/Features/Auto_Provisioning/Bootup
http://wiki.snom.com/Features/Auto_Provisioning/DHCP/Options

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)
http://wiki.snom.com/wiki/index.php/Settings/setting_server

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
# show phone display content
http://192.168.1.220/screen.bmp

Press key remote
http://wiki.snom.com/FAQ/Can_I_control_my_snom_phone_remotely
http://192.168.1.21/command.htm?key=RETRIEVE
http://192.168.1.21/command.htm?key=P12

Reboot all phones
<?php
$URL="http://www.panticz.de/sites/default/files/snom/rebootAllPhones.sh";
echo "

";
$c = curl_init();
curl_setopt($c, CURLOPT_URL, $URL);
echo htmlspecialchars(curl_exec($c));
curl_close($c);
echo "

";
?>

(Re)Register all phones
<?php
$URL="http://www.panticz.de/sites/default/files/snom/registerAllPhones.sh";
echo "

";
$c = curl_init();
curl_setopt($c, CURLOPT_URL, $URL);
echo htmlspecialchars(curl_exec($c));
curl_close($c);
echo "

";
?>

View firmware version
<?php
$URL="http://www.panticz.de/sites/default/files/snom/viewFirmwareVersion.sh";
echo "

";
$c = curl_init();
curl_setopt($c, CURLOPT_URL, $URL);
echo htmlspecialchars(curl_exec($c));
curl_close($c);
echo "

";
?>

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

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