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.

Install Skype from repository

wget https://raw.githubusercontent.com/panticz/installit/master/install.skype.sh -O - | bash -

#!/bin/bash

# add partner repository
sudo add-apt-repository -y "deb http://archive.canonical.com/ $(lsb_release -sc) partner"

# update
sudo apt-get update -qq

# install
sudo apt-get install -y skype

Fix upside down webcam
wget https://raw.githubusercontent.com/panticz/scripts/master/fix_skype_upsidedown_webcam.sh -O - | bash -

#!/bin/bash

# install video4linux libraries 
sudo apt-get install libv4l-0:i386

# fix lib path
if [ ! -f /usr/lib/libv4l/v4l1compat.so ]; then
  sudo mkdir /usr/lib/libv4l
    if [ "$(uname -m)" == "x86_64" ]; then
      # 64 bit
      sudo ln -s /usr/lib/x86_64-linux-gnu/libv4l/v4l1compat.so /usr/lib/libv4l/v4l1compat.so
    else
      # 32 bit
      sudo ln -s /usr/lib/i386-linux-gnu/libv4l/v4l1compat.so /usr/lib/libv4l/v4l1compat.so
  fi
fi

# modify Skype launcher
sudo sed -i 's|env PULSE_LATENCY_MSEC=60 skype %U|env PULSE_LATENCY_MSEC=60 LD_PRELOAD=/usr/lib/i386-linux-gnu/libv4l/v4l1compat.so skype %U|g' /usr/share/applications/skype.desktop

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
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

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

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/

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
 
#include "manager.d/*.conf"

capi.conf

diff /etc/asterisk/capi.conf /etc/asterisk/capi.conf
61c61
< callgroup=1     ;PBX call group
---
> ;callgroup=1     ;PBX call group

firmware.xml

<?xml version="1.0" encoding="utf-8" ?>
<firmware-settings>
  <firmware perm="R">http://provisioning.snom.com/release/update.php</firmware>
</firmware-settings>

snom3x0-001112131415.xml

<?xml version="1.0" encoding="utf-8"?>
 <phone-settings>
  <user_pname idx="1" perm="R">ekiga</user_pname>
  <user_pass idx="1" perm="R">ekiga</user_pass>
  <user_name idx="1" perm="R">ekiga</user_name>
  <user_realname idx="1" perm="R">Ekiga</user_realname>
  <user_host idx="1" perm="R">asterisk</user_host>
</phone-settings>

tbook.xml

<?xml version="1.0" encoding="utf-8"?>
 <tbook>
  <item context="line1" type="none" index="0">
   <name>USER1</name>
   <number>555-SHOE</number>
  </item>
</tbook>
Syndicate content