Saturday, October 04, 2008

linux sip phone configuration working with sipgate.de

The following setup has been done using a pc dell latitude D620 running linux ubuntu gutsy and using sipgate.de provider.


root@ubuntu:~# uname -a
Linux ubuntu
2.6.22-14-generic #1 SMP Sun Oct 14 23:05:12 GMT 2007 i686 GNU/Linux
root@
ubuntu:~#


step 1: identify your sip provider settings

your number: XXXXXXXXXXXXXX ( eg a number in Germany would start with 49XXXXXXXXXXXX))
SIP-ID: YYYYYYYYY
SIP-Password: ZZZZZZ
Registry: sipgate.de
Proxy: sipgate.de
STUN: stun.sipgate.net:10000


step2: install linphone on your pc


root@ubuntu:~# apt-get install linphone
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
liblinphone1 libmediastreamer0 libortp5 libosip2-3 linphone-common
linphone-nox
The following NEW packages will be installed:
liblinphone1 libmediastreamer0 libortp5 libosip2-3 linphone linphone-common
linphone-nox
0 upgraded, 7 newly installed, 0 to remove and 219 not upgraded.
Need to get 6447kB of archives.
After unpacking 8622kB of additional disk space will be used.
Do you want to continue [Y/n]? Y
WARNING: The following packages cannot be authenticated!
libortp5 libmediastreamer0 libosip2-3 liblinphone1 linphone-common
linphone-nox linphone
Install these packages without verification [y/N]? y
Get:1 http://pt.archive.ubuntu.com gutsy/universe libortp5 1.7.1-2 [58.4kB]
Get:2 http://pt.archive.ubuntu.com gutsy/universe libmediastreamer0 1.7.1-2 [88.5kB]
Get:3 http://pt.archive.ubuntu.com gutsy/universe libosip2-3 2.2.2-3.1 [92.8kB]
Get:4 http://pt.archive.ubuntu.com gutsy/universe liblinphone1 1.7.1-2 [121kB]
Get:5 http://pt.archive.ubuntu.com gutsy/universe linphone-common 1.7.1-2 [5892kB]
Get:6 http://pt.archive.ubuntu.com gutsy/universe linphone-nox 1.7.1-2 [49.9kB]
Get:7 http://pt.archive.ubuntu.com gutsy/universe linphone 1.7.1-2 [144kB]
Fetched 6447kB in 7s (863kB/s)
Selecting previously deselected package libortp5.
(Reading database ... 102851 files and directories currently installed.)
Unpacking libortp5 (from .../libortp5_1.7.1-2_i386.deb) ...
Selecting previously deselected package libmediastreamer0.
Unpacking libmediastreamer0 (from .../libmediastreamer0_1.7.1-2_i386.deb) ...
Selecting previously deselected package libosip2-3.
Unpacking libosip2-3 (from .../libosip2-3_2.2.2-3.1_i386.deb) ...
Selecting previously deselected package liblinphone1.
Unpacking liblinphone1 (from .../liblinphone1_1.7.1-2_i386.deb) ...
Selecting previously deselected package linphone-common.
Unpacking linphone-common (from .../linphone-common_1.7.1-2_all.deb) ...
Selecting previously deselected package linphone-nox.
Unpacking linphone-nox (from .../linphone-nox_1.7.1-2_i386.deb) ...
Selecting previously deselected package linphone.
Unpacking linphone (from .../linphone_1.7.1-2_i386.deb) ...
Setting up libortp5 (1.7.1-2) ...

Setting up libmediastreamer0 (1.7.1-2) ...

Setting up libosip2-3 (2.2.2-3.1) ...

Setting up liblinphone1 (1.7.1-2) ...

Setting up linphone-common (1.7.1-2) ...
Setting up linphone-nox (1.7.1-2) ...
Setting up linphone (1.7.1-2) ...

Processing triggers for libc6 ...
ldconfig deferred processing now taking place
root@ubuntu:~#

step 3:launch linphone on gnome:

Applications -> Internet -> Linphone


step 4: configure the Linphone

Go -> Preferences -> Network
Nat traversal options -> Use this stun... : stun.sipgate.net:10000
leave all other default settings

Go -> Preferences -> SIP
Identity -> Your Sip address : sip: XXXXXXXXXXXXXX @ sipgate.de
remove the check from : Automatically guess a valid hostname
Remote services -> add proxy/registar
sip identity: sip:YYYYYYYYY@sipgate.de
sip proxy: sip:sipgate.de
leave all other default settings

you should be prompted with another box with asking for the following:
realm="sipgate.de"
username=YYYYYYYYY
userid=YYYYYYYYY
passwd=ZZZZZZ

In the end you should see an account inside the Remote services box with:
sip: YYYYYYYYY@sipgate.de

apply the configurations and close.

You should now be registered sucessfully on the provider softswitch.


step 5: check/audit your settings is by looking at the following configuration file:


root@ubuntu:~# cat .gnome2/linphone
[net]
download_bw=0
upload_bw=0
firewall_policy=2
stun_server=stun.sipgate.net:10000

[sip]
sip_port=5060
guess_hostname=0
contact=sip:XXXXXXXXXXXXXX@sipgate.de
inc_timeout=15
use_info=0
use_ipv6=0
default_proxy=0

[rtp]
audio_rtp_port=7078
video_rtp_port=9078
audio_jitt_comp=60
video_jitt_comp=60

[sound]
playback_dev_id=ALSA: default device
ringer_dev_id=ALSA: default device
capture_dev_id=ALSA: default device
local_ring=/usr/share/sounds/linphone/rings/oldphone.wav
remote_ring=/usr/share/sounds/linphone/ringback.wav
echocancelation=0

[video]
enabled=1
show_local=1

[audio_codec_0]
mime=speex
rate=16000
enabled=1

[audio_codec_1]
mime=speex
rate=8000
enabled=1

[audio_codec_2]
mime=PCMU
rate=8000
enabled=1

[audio_codec_3]
mime=GSM
rate=8000
enabled=1

[audio_codec_4]
mime=PCMA
rate=8000
enabled=1

[video_codec_0]
mime=theora
rate=90000
enabled=1

[video_codec_1]
mime=H263-1998
rate=90000
enabled=1

[video_codec_2]
mime=MP4V-ES
rate=90000
enabled=1

[proxy_0]
reg_proxy=sip:sipgate.de
reg_expires=900
reg_sendregister=1
publish=0
reg_identity=sip:YYYYYYYYY@sipgate.de

[auth_info_0]
username=YYYYYYYYY
userid=YYYYYYYYY
passwd=ZZZZZZ
realm="sipgate.de"



References
http://en.flossmanuals.net/Linphone/Configuring for configuration options of ~/.gnome2/linphone file