voip

Install Skype from repository

<?php
$URL="https://raw.githubusercontent.com/panticz/installit/master/install.skype.sh";
echo "wget $URL -O - | bash -";
echo "

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

";
?>

Fix upside down webcam
<?php
$URL="https://raw.githubusercontent.com/panticz/scripts/master/fix_skype_upsidedown_webcam.sh";
echo "wget $URL -O - | bash -";
echo "

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

";
?>

Install with snap
sudo snap install skype --classic

Disable "contacts comes online" notification
# Notify
sed -i 's|1|0|g' /home/${USER}/.Skype/*/config.xml
sed -i 's|1|0|g' /home/${USER}/.Skype/*/config.xml

# Sound
sed -i 's|1|0|g' /home/${USER}/.Skype/*/config.xml
sed -i 's|1|0|g' /home/${USER}/.Skype/*/config.xml

Links
https://www.linuxbabe.com/ubuntu/install-skype-ubuntu-18-04-lts-desktop
http://wiki.ubuntuusers.de/Canonical_Partner - Ubuntu partner repository
http://www.semanticpool.de/hidden-skype-emoticons/ - hidden skype emoticons
https://help.ubuntu.com/community/SkypeTroubleshooting
https://wiki.ubuntu.com/SkypeWebCams

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

Pirelli DP-L10 / Arcor TwinTel

Links
http://www.kessler-design.com/speedport-w700v/tc300.html
http://twintel-fw.arcor.de/
http://www.ip-phone-forum.de/showthread.php?t=132162
http://www.sipgate.de/faq/index.php?do=displayArticle&article=1038&id=184
(Hilfe-Center > Endgeräte - Konfiguration und Problemlösungen > Weitere Endgeräte > Pirelli DualPhone DP-L10)
http://www.sipgate.de/downloads/pirelli/Firmware.zip

Codes
###000#: help screen
###09000#: Log script on/off
###09010#: Timer Log script on/off
###4444#: Super reset
###520#: display version number

Cisco 7960

Reboot phone
"*" and "6" and "settings"

telnet
password: Cisco

Directory

External Directory
External Directory

USER_NAME
USER_PHONE

cat /var/lib/tftpboot/OS79XX.TXT
P003-08-2-00

cat /var/lib/tftpboot/SIP0007EB26EEBB.cnf
phone_label: "pako"
proxy1_address: "asterisk"
proxy1_port: 5060
line1_name: "pako"

Cisco 7960 upgrade firmware

Upgrade firmware

#download firmware
wget http://www.cisco.com/pcgi-bin/tablebuild.pl/sip-ip-phone7960
 
# unzip files
unzip P0S3-08-2-00.zip
 
# set rights
chmod a+r P0* OS79XX.TXT
 
# move files to /tftpboot
mv ./P0S3-08-2-00/* /tftpboot/
 
# add link
??? ln -s /tftpboot/P003-08-2-00.bin /tftpboot/P0S3-08-2-00.bin
 
# edit Global config
vi /tftpboot/SIPDefault.cnf
image_version: P0S3-08-2-00

[LINKS]
http://www.ip-phone-forum.de/