voip

Install Skype from repository

wget http://installit.googlecode.com/hg/install.skype.sh -O - | bash -

#!/bin/bash

# TODO:
# disable ContactOnline / ContactOffline notification in ~/.Skype/*/config.xml

# activate partner repository
sudo sed -i "s/# \(deb .* partner\)/\1/" /etc/apt/sources.list
sudo apt-get update -qq

# install skype
sudo apt-get install -y skype

Fix upside down webcam
wget http://www.panticz.de/sites/default/files/scripts/skype.fix.webcam.sh -O - | bash -

#!/bin/bash

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

# 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|Exec=skype|Exec=env LD_PRELOAD=/usr/lib/libv4l/v4l1compat.so skype|g' /usr/share/applications/skype.desktop

Links
http://www.semanticpool.de/hidden-skype-emoticons/ - hidden skype emoticons
https://help.ubuntu.com/community/SkypeTroubleshooting
https://wiki.ubuntu.com/SkypeWebCams

Disable ContactOnline / ContactOffline notification
wget http://www.panticz.de/sites/default/files/config.xml_.diff -P /tmp/
patch -p2 ~/.Skype/*/config.xml < /tmp/config.xml_.diff

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 wget build-essential linux-headers-$(uname -r) libncurses5-dev
apt-get install -y linux-ubuntu-modules-$(uname -r)
#apt-get install -y linux-restricted-modules
#apt-get install -y capiutils
apt-get install -y wget
# apt-get install -y asterisk

#wget ftp://ftp.melware.net/divas/v3/divas4linux-melware-3.1.0-109.42-1.tar.bz2 -P /tmp
wget ftp://ftp.melware.net/divas/v3/divas4linux-melware-3.1.5-109.75-1.tar.bz2 -P /tmp
tar xjf /tmp/divas4linux-melware-*.tar.bz2 -C /tmp
cd /tmp/divas4linux-melware-*
make

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>

Do you like this page? Then support it. Please click the AD below and visit the sponsor. Thank you!


Syndicate content