friend ist für rein und raus, siehe doc.
[general]
srvlookup=yes
bindport=5061
bindaddr=0.0.0.0
language=de
register => XXXXXXX:[email protected]/XXXXXXX
register => 49XXXXXXXXXX:[email protected]/49XXXXXXXXXX
register => 49XXXXXXXXXX:[email protected]/49XXXXXXXXXX
disallow=all ; First disallow all codecs
allow=alaw ; Allow codecs in order of choice
allow=ulaw
allow=gsm
localnet=192.168.0.0/255.255.0.0
externhost=XXXXXXXXXXXXXX.dyndns.org
externrefresh=30
maxexpirey=3600
defaultexpirey=1800
ignoreregexpire=yes
rtpkeepalive=10
t38pt_udptl=yes
t38pt_rtp=no
t38pt_tcp=no
context=incoming
[49XXXXXXXXXX-1]
type=peer
username=49XXXXXXXXXX
fromuser=49XXXXXXXXXX
secret=YYYYYYYY
host=sip.1und1.de
host=1und1.de
host=sipgw01.bmcag.com
host=sipbalance1-1.1und1.de
host=sipbalance2-1.1und1.de
host=sipbalance1-2.1und1.de
host=sipbalance2-2.1und1.de
host=sipbalance1-3.1und1.de
host=sipbalance2-3.1und1.de
host=sipbalance1-4.1und1.de
host=sipbalance2-4.1und1.de
fromdomain=sip.1und1.de
qualify=yes
insecure=port,invite
caninvite=no
canreinvite=no
nat=yes
context=incoming
[49XXXXXXXXXX-2]
type=peer
username=49XXXXXXXXXX
fromuser=49XXXXXXXXXX
secret=YYYYYYYY
host=sip.1und1.de
host=1und1.de
host=sipgw01.bmcag.com
host=sipbalance1-1.1und1.de
host=sipbalance2-1.1und1.de
host=sipbalance1-2.1und1.de
host=sipbalance2-2.1und1.de
host=sipbalance1-3.1und1.de
host=sipbalance2-3.1und1.de
host=sipbalance1-4.1und1.de
host=sipbalance2-4.1und1.de
fromdomain=sipgw01.bmcag.com
qualify=yes
insecure=port,invite
caninvite=no
canreinvite=no
nat=yes
context=incoming
[general]
context=sip ; Default context for incoming calls
bindport=5060 ; UDP Port to bind to (SIP standard port is 5060)
bindaddr=0.0.0.0 ; IP address to bind to (0.0.0.0 binds to all)
callevents=yes
;srvlookup=yes ; Enable DNS SRV lookups on outbound calls
; Note: Asterisk only uses the first host
; in SRV records
; Disabling DNS SRV lookups disables the
; ability to place SIP calls based on domain
; names to some other SIP users on the Internet
disallow=all ; First disallow all codecs
allow=ulaw
allow=alaw ; Allow codecs in order of preference
allow=gsm
allow=g723
allow=g729
externhost=zuhause.homeip.net
maxexpiry=3600
defaultexpiry=1800
localnet=192.168.X.Z/255.255.255.0
localnet=192.168.Y.Z/255.255.255.0
register = 49284XXXXXX:[email protected]/49284XXXXXX
session-timers=refuse
externrefresh=120
[outgoing]
context=outgoing
type=peer
username=49284XXXXXX
secret=meinpwd
host=sip.1und1.de
fromuser=49284XXXXXX
fromdomain=1und1.de
canreinvite=no
qualify=2000
disallow=all
allow=alaw
allow=ulaw
diallow=g726
allow=gsm
insecure=port,invite
nat=yes
language=de
dtmfmode=info
tos_sip=0x18
[incoming]
context=incoming
type=peer
username=49284XXXXXX
secret=meinpwd
host=sip.1und1.de
fromuser=49284XXXXXX
fromdomain=1und1.de
canreinvite=no
qualify=2000
insecure=port,invite
nat=yes
tos_sip=0x18
[1000]
type=friend
context=outgoing
secret=phonepwd
host=192.168.X.Y
username=1000
nat=no
[1und1-template](!)
type=peer
context=incoming
insecure=port,invite
nat=yes
canreinvite=no
qualify=yes
disallow=all
allow=alaw
[1und1_in_1-1](1und1-template)
host=sipbalance1-1.1und1.de
[1und1_in_1-2](1und1-template)
host=sipbalance1-2.1und1.de
[1und1_in_2-1](1und1-template)
host=sipbalance2-1.1und1.de
[1und1_in_2-2](1und1-template)
host=sipbalance2-2.1und1.de
[1und1_in_3-1](1und1-template)
host=sipbalance3-1.1und1.de
[1und1_in_3-2](1und1-template)
host=sipbalance3-2.1und1.de
[1und1_in_4-1](1und1-template)
host=sipbalance4-1.1und1.de
[1und1_in_4-2](1und1-template)
host=sipbalance4-2.1und1.de
[general]
srvlookup=yes
bindport=5061
bindaddr=0.0.0.0
language=de
register => 49xxxxyyyyyy:[email protected]/49xxxxyyyyyyyy
disallow=all ; First disallow all codecs
allow=alaw ; Allow codecs in order of choice
allow=ulaw
allow=gsm
localnet=192.168.0.0/255.255.0.0
externhost=nnnnn.dyndns.org ; aus meiner Sicht besser als externip
externrefresh=30
maxexpirey=3600
defaultexpirey=1800
ignoreregexpire=yes
rtpkeepalive=10
t38pt_udptl=yes
t38pt_rtp=no
t38pt_tcp=no
context=incoming
[0xxxxyyyyyy]
type=peer
username=49xxxxyyyyyy
fromuser=49xxxxyyyyyy
secret=zzzzzzz
host=sip.1und1.de
fromdomain=1und1.de
qualify=yes
insecure=port,invite
caninvite=no
canreinvite=no
nat=yes
context=incoming
[telefonica-1](0xxxxyyyyyy)
context = incoming
host=1und1-1.sip.mgc.voip.telefonica.de
[telefonica-2](0xxxxyyyyyy)
context = incoming
host=1und1-2.sip.mgc.voip.telefonica.de
[telefonica-3](0xxxxyyyyyy)
context = incoming
host=1und1-3.sip.mgc.voip.telefonica.de
;mit absicht auskommentiert, da nicht erreichbar
;[telefonica-4](0xxxxyyyyyy)
;context = incoming
;host=1und1-4.sip.mgc.voip.telefonica.de
[telefonica-5](0xxxxyyyyyy)
context = incoming
host=1und1-5.sip.mgc.voip.telefonica.de
[telefonica-6](0xxxxyyyyyy)
context = incoming
host=1und1-6.sip.mgc.voip.telefonica.de
[telefonica-7](0xxxxyyyyyy)
context = incoming
host=1und1-7.sip.mgc.voip.telefonica.de
[telefonica-8](0xxxxyyyyyy)
context = incoming
host=1und1-8.sip.mgc.voip.telefonica.de
[1und1_in_1-1](0xxxxyyyyyy)
context = incoming
host=sipbalance1-1.1und1.de
[1und1_in_1-2](0xxxxyyyyyy)
context = incoming
host=sipbalance1-2.1und1.de
[1und1_in_1-3](0xxxxyyyyyy)
context = incoming
host=sipbalance1-3.1und1.de
[1und1_in_1-4](0xxxxyyyyyy)
context = incoming
host=sipbalance1-4.1und1.de
[1und1_in_2-1](0xxxxyyyyyy)
context = incoming
host=sipbalance2-1.1und1.de
[1und1_in_2-2](0xxxxyyyyyy)
context = incoming
host=sipbalance2-2.1und1.de
[1und1_in_2-3](0xxxxyyyyyy)
context = incoming
host=sipbalance2-3.1und1.de
[1und1_in_2-4](0xxxxyyyyyy)
context = incoming
host=sipbalance2-4.1und1.de
[1und1_in_3-1](0xxxxyyyyyy)
context = incoming
host=sipbalance3-1.1und1.de
[1und1_in_3-2](0xxxxyyyyyy)
context = incoming
host=sipbalance3-2.1und1.de
[1und1_in_3-3](0xxxxyyyyyy)
context = incoming
host=sipbalance3-3.1und1.de
[1und1_in_3-4](0xxxxyyyyyy)
context = incoming
host=sipbalance3-4.1und1.de
[1und1_in_4-1](0xxxxyyyyyy)
context = incoming
host=sipbalance4-1.1und1.de
[1und1_in_4-2](0xxxxyyyyyy)
context = incoming
host=sipbalance4-2.1und1.de
[1und1_in_4-3](0xxxxyyyyyy)
context = incoming
host=sipbalance4-3.1und1.de
[1und1_in_4-4](0xxxxyyyyyy)
context = incoming
host=sipbalance4-4.1und1.de
[1und1_in_5-1](0xxxxyyyyyy)
context = incoming
host=sipbalance5-1.1und1.de
[1und1_in_5-2](0xxxxyyyyyy)
context = incoming
host=sipbalance5-2.1und1.de
[1und1_in_5-3](0xxxxyyyyyy)
context = incoming
host=sipbalance5-3.1und1.de
[1und1_in_5-4](0xxxxyyyyyy)
context = incoming
host=sipbalance5-4.1und1.de
[1und1_in_6-1](0xxxxyyyyyy)
context = incoming
host=sipbalance6-1.1und1.de
[1und1_in_6-2](0xxxxyyyyyy)
context = incoming
host=sipbalance6-2.1und1.de
[1und1_in_6-3](0xxxxyyyyyy)
context = incoming
host=sipbalance6-3.1und1.de
[1und1_in_6-4](0xxxxyyyyyy)
context = incoming
host=sipbalance6-4.1und1.de
[1und1_in_7-1](0xxxxyyyyyy)
context = incoming
host=sipbalance7-1.1und1.de
[1und1_in_7-2](0xxxxyyyyyy)
context = incoming
host=sipbalance7-2.1und1.de
[1und1_in_7-3](0xxxxyyyyyy)
context = incoming
host=sipbalance7-3.1und1.de
[1und1_in_7-4](0xxxxyyyyyy)
context = incoming
host=sipbalance7-4.1und1.de
[1und1_in_8-1](0xxxxyyyyyy)
context = incoming
host=sipbalance8-1.1und1.de
[1und1_in_8-2](0xxxxyyyyyy)
context = incoming
host=sipbalance8-2.1und1.de
[1und1_in_8-3](0xxxxyyyyyy)
context = incoming
host=sipbalance8-3.1und1.de
[1und1_in_8-4](0xxxxyyyyyy)
context = incoming
host=sipbalance8-4.1und1.de
[1und1_in_9-1](0xxxxyyyyyy)
context = incoming
host=sipbalance9-1.1und1.de
[1und1_in_9-2](0xxxxyyyyyy)
context = incoming
host=sipbalance9-2.1und1.de
[1und1_in_9-3](0xxxxyyyyyy)
context = incoming
host=sipbalance9-3.1und1.de
[1und1_in_9-4](0xxxxyyyyyy)
context = incoming
host=sipbalance9-4.1und1.de
Code:[telefonica-1](0xxxxyyyyyy) context = incoming host=1und1-1.sip.mgc.voip.telefonica.de [telefonica-2](0xxxxyyyyyy) context = incoming host=1und1-2.sip.mgc.voip.telefonica.de [telefonica-3](0xxxxyyyyyy) context = incoming host=1und1-3.sip.mgc.voip.telefonica.de ;mit absicht auskommentiert, da nicht erreichbar ;[telefonica-4](0xxxxyyyyyy) ;context = incoming ;host=1und1-4.sip.mgc.voip.telefonica.de [telefonica-5](0xxxxyyyyyy) context = incoming host=1und1-5.sip.mgc.voip.telefonica.de [telefonica-6](0xxxxyyyyyy) context = incoming host=1und1-6.sip.mgc.voip.telefonica.de [telefonica-7](0xxxxyyyyyy) context = incoming host=1und1-7.sip.mgc.voip.telefonica.de [telefonica-8](0xxxxyyyyyy) context = incoming host=1und1-8.sip.mgc.voip.telefonica.de
May 28 20:03:31 NOTICE[3051527056]: chan_sip.c:15903 do_monitor: Delaying call destroy (stun active) on call '[email protected]' [1]