Schlußkommentar:
Letztendlich musste ich noch ein bisschen rumprobieren, weil es einfach nicht klingeln wollte.
Nun habe ich die richtige Konfiguration für mich gefunden.
[general]
allowguest=no
port = 5060
bindaddr = 0.0.0.0
qualify = no
disable = all
allow = alaw
allow = ulaw
videosupport = no
dtmfmode = rfc2833
srvlookup = yes
localnet=10.4.70.0/255.255.255.0
directmedia = no
nat = no
[1000]
; DoorPi
permit=10.4.70.0/255.255.255.0
type=friend
context=phones
host=dynamic
secret=geheim
[2000]
; Tablet
permit=10.4.70.0/255.255.255.0
type=friend
context=phones
host=dynamic
secret=geheim
Alles anzeigen
[globals]
[general]
[internal]
exten => _XXXX,1,Dial(SIP/${EXTEN})
[phones]
include => internal
Alles anzeigen
[SIP-Phone]
firewallpolicy = PolicyNoFirewall
audio_codecs = PCMA,PCMU
call_timeout = 40
playback_device = ALSA: USB PnP Sound Device
capture_device = ALSA: USB PnP Sound Device
dialtone = !BASEPATH!/media/ShortDialTone.wav
dialtone_renew_every_start = False
dialtone_volume = 35
echo_cancellation_enabled = False
identity = DoorPi
local_port = 5061
max_call_time = 120
playback_device = ALSA: default device
record_while_dialing = False
records = !BASEPATH!/records/%Y-%m-%d_%H-%M-%S.wav
sipphonetyp = linphone
sipserver_password = geheim
sipserver_realm = localhost
sipserver_server = 127.0.0.1
sipserver_username = 1000
stun_server =
ua.max_calls = 2
max_call_time = 120
video_codecs = VP8
video_device = StaticImage: Static picture
video_display_enabled = False
video_size = vga
Alles anzeigen
Testen kann man einen Anruf an das Tablet dann über folgenden Weg:
root@raspberrypi:~# asterisk -vvvvvr
Asterisk 11.13.1~dfsg-2+b1, Copyright (C) 1999 - 2013 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
Connected to Asterisk 11.13.1~dfsg-2+b1 currently running on raspberrypi (pid = 5687)
-- Registered SIP '1000' at 127.0.0.1:5061
> Saved useragent "(belle-sip/1.4.2)" for peer 1000
raspberrypi*CLI>
raspberrypi*CLI> console dial 2000
No such extension '2000' in context 'default'
raspberrypi*CLI> console dial 2000@internal
[May 10 08:55:55] WARNING[6115]: chan_oss.c:488 setformat: Unable to re-open DSP device /dev/dsp: No such file or directory
[May 10 08:55:55] NOTICE[6115]: console_video.c:137 console_video_start: voice only, console video support not present
-- Executing [2000@internal:1] Dial("Console/dsp", "SIP/2000") in new stack
== Using SIP RTP CoS mark 5
-- Called SIP/2000
-- SIP/2000-00000000 is ringing
Alles anzeigen