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

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

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/