Ich nutze Asterisk im Moment für eine MSN. Das funktioniert soweit problemlos. Nun wolle ich eine weitere MSN hinzufügen. Ausgehende Anrufe funktionieren problemlos mit beiden MSN. Nur eingehende Anrufe kommen nur bei der 1.MSN an. Entferne ich diese aus der sip.conf, funktionieren nun auch eingehende Anrufe bei der 2.MSN. Wo liegt mein Fehler bzw wie erreiche ich es, dass beide MSN für einhegende Anrufe funktionieren?
sip.conf
extensions.conf
Code:
root@sip:~# rasterisk
Asterisk 13.18.3~dfsg-1ubuntu4, Copyright (C) 1999 - 2014, Digium, Inc. and others.
Created by Mark Spencer <[email protected]>
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 13.18.3~dfsg-1ubuntu4 currently running on sip (pid = 2891)
sip*CLI> sip show peers
Name/username Host Dyn Forcerport Comedia ACL Port Status Description
2000/2000 192.168.178.94 D Yes Yes A 65060 OK (6 ms)
2002/2002 192.168.178.91 D Yes Yes A 65060 OK (1 ms)
2003/2003 192.168.178.91 D Yes Yes A 7338 OK (4 ms)
2004/2004 192.168.178.38 D Yes Yes A 65060 OK (24 ms)
2006/2006 192.168.178.95 D Yes Yes A 65060 OK (3 ms)
MSN1/123456789-0001 217.0.27.52 Yes No 5060 OK (26 ms)
MSN1-in 217.0.27.52 Yes No 5060 OK (25 ms)
MSN2/123456789-0001 217.0.27.52 Yes No 5060 OK (25 ms)
MSN2-in 217.0.27.52 Yes No 5060 OK (25 ms)
sip.conf
Code:
[general]
bindport=65060
bindaddr=0.0.0.0
context = default
nat=force_rport,comedia
localnet=192.168.178.0/255.255.255.0
alwaysauthreject=yes
allowguest=no
language=de
srvlookup=yes
videosupport=yes
allow=h263
allow=h264
register => +49MSN1:mein_passwort:[email protected]@tel.t-online.de/+49MSN1
register => +49MSN2:mein_passwort:[email protected]@tel.t-online.de/+49MSN2
[MSN1]
[email protected]
[email protected]
secret=mein_passwort
host=tel.t-online.de
fromdomain=tel.t-online.de
qualify=yes
trustrpid=no
context=phones_buero
type=friend
insecure=invite
usereqphone=no
t38pt_udptl=no
nat=force_rport
disallow=all
allow=ulaw
allow=alaw
dtmfmode=inband
call-limit=10
[MSN1-in]
qualify=yes
trustrpid=no
context=phones_buero
type=peer
insecure=port,invite
usereqphone=no
t38pt_udptl=no
nat=force_rport
disallow=all
allow=ulaw
allow=alaw
dtmfmode=inband
fromdomain=tel.t-online.de
host=tel.t-online.de
disallow=all
allow=ulaw
call-limit=10
[MSN2]
[email protected]
[email protected]
secret=mein_passwort
host=tel.t-online.de
fromdomain=tel.t-online.de
qualify=yes
trustrpid=no
context=phones_wohnung
type=friend
insecure=invite
usereqphone=no
t38pt_udptl=no
nat=force_rport
disallow=all
allow=ulaw
allow=alaw
dtmfmode=inband
call-limit=10
[MSN2-in]
qualify=yes
trustrpid=no
context=phones_wohnung
type=peer
insecure=port,invite
usereqphone=no
t38pt_udptl=no
nat=force_rport
disallow=all
allow=ulaw
allow=alaw
dtmfmode=inband
fromdomain=tel.t-online.de
host=tel.t-online.de
disallow=all
allow=ulaw
call-limit=10
...
extensions.conf
Code:
[default]
[phones_wohnung]
include => voicebox
include => intern
[phones_buero]
include => voicebox
include => intern
[intern]
exten => _[2]XXX,1,Dial(SIP/${EXTEN},120)
exten => _[2]XXX,n,Hangup()
[voicebox]
exten => 2999,1,VoicemailMain(${CALLERID(num)})
[phones_buero]
exten => +49MSN1,1,Dial(SIP/2002,180,tr)
...
[phones_wohnung]
exten => +49MSN2,1,Dial(SIP/2006,180,tr)
...