[general]
;context=default
; ***** Configuration 

bindport=5060
bindaddr=192.168.5.111
externip=1.2.3.4
localnet=192.168.5.0/255.255.255.0
localnet=192.168.50.0/255.255.255.0
localnet=192.168.146.0/255.255.255.0
srvlookup=yes
language=de
dtmfmode=rfc2833
relaxdtmf=yes
rfc2833compensate=yes
directmedia=no 
tcpenable=yes
transport=udp
session-timers=refuse

rtptimeout=120
rtpholdtimeout=300 

deny=0.0.0.0/0.0.0.0
permit=192.168.5.0/255.255.255.0
permit=192.168.50.0/255.255.255.0
permit=192.168.13.0/255.255.255.0
permit=192.168.14.0/255.255.255.0
permit=192.168.146.0/255.255.255.0

nat=no

subscribecontext=internal
allowsubscribe=yes
notifyringing = yessip reload

notifyhold=yes
limitonpeers=yes
notifycid=yes
callcounter=yes
allowtransfer=yes
;alwaysauthreject=yes
allowguest=no

mwi_from=asterisk
textsupport=yes
accept_outofcall_message=yes
outofcall_message_context=messages

;Alles nachfolgende beschreibt den Jitter Buffer
jbenable=no
jbforce=no
jbmaxsize=200
jbresyncthreshold=500
jbimpl=adaptive

;Jetzt kommen die Einstellungen fuer die zu benutzenden Sprachcodecs
disallow=all
allow=g722
allow=alaw
allow=ulaw
;allow = g726
;allow = gsm



;------------------------------------------------------------------------------------------
;  Ab hier kommen die Einträge fuer die Provider
;------------------------------------------------------------------------------------------
;------ Telekom Rufnummern
register => 08912345671:11111111:0000000000000000000000000000@tel.t-online.de/08912345671~480
register => 08912345672:11111111:0000000000000000000000000000@tel.t-online.de/08912345672~480
register => 08912345673:11111111:0000000000000000000000000000@tel.t-online.de/08912345673~480
register => 08912345674:11111111:0000000000000000000000000000@tel.t-online.de/08912345674~480
register => 08912345675:11111111:0000000000000000000000000000@tel.t-online.de/08912345675~480
register => 08912345676:11111111:0000000000000000000000000000@tel.t-online.de/08912345676~480
register => 08912345677:11111111:0000000000000000000000000000@tel.t-online.de/08912345677~480
register => 08912345678:11111111:0000000000000000000000000000@tel.t-online.de/08912345678~480
register => 08912345679:11111111:0000000000000000000000000000@tel.t-online.de/08912345679~480
register => 08912345670:11111111:0000000000000000000000000000@tel.t-online.de/08912345670~480


;------ NetVoip Rufnummern
register => 0410000000:0000000000@sip.netvoip.ch/0410000000
register => 0710000000:0000000000@sip.netvoip.ch/0710000000

;------ Sip-Gate Anbindungen
register => 000000000:XXXXXXXXXXXX@sipgate.de/00000000
register => 000000001:XXXXXXXXXXXX@sipgate.de/00000001
register => 000000002:XXXXXXXXXXXX@sipgate.de/00000002

;------ CallCentric Rufnummer
register => 17770000000:XXXXXXXX@callcentric.com/17770000000

;------ LCS46
register => user:pass@192.168.146.111/LCS46


; DTAG-Anbindung
#include sip_DTAG_post.conf

; Callcentric Anbindung
#include sip_callcentric_post.conf

; SipGate Anbindung
#include sip_SipGate_post.conf

; NetVoip Anbindung
#include sip_NetVoip_post.conf

; Woopla Anbindung
#include sip_woopla_post.conf

;------------------------------------------------------------------------------------------
;  Trunk zur Lena-Christ-Str. 46
;------------------------------------------------------------------------------------------
[LCS46]
type=friend
secret=password
host=dynamic
context=LCS46_in
qualify=yes
disallow=all
allow=g722
allow=alaw
allow=ulaw


;------------------------------------------------------------------------------------------
;  Ab hier kommen die Eintraege fuer einzelnen User
;------------------------------------------------------------------------------------------
[6011]
callerid=Basteltisch<6011>
host=dynamic
domain=192.168.5.111
deny=0.0.0.0/0.0.0.0
permit=192.168.5.0/255.255.255.0
permit=192.168.146.0/255.255.255.0
user=user
secret=password
type=friend
call-limit=5
context=dp6011
subscribecontext=dp6011

[6012]
callerid=Büro Guido<6012>
host=dynamic
domain=192.168.5.111
deny=0.0.0.0/0.0.0.0
permit=192.168.5.0/255.255.255.0
permit=192.168.146.0/255.255.255.0
user=user
secret=password
type=peer
mailbox=6012@default
subscribecontext=dp6012
call-limit=5
context=dp6012

[6013]
callerid=Bett Guido<6013>
host=dynamic
domain=192.168.5.111
deny=0.0.0.0/0.0.0.0
permit=192.168.5.0/255.255.255.0
permit=192.168.146.0/255.255.255.0
user=user
secret=password
type=peer
call-limit=5
context=dp6013
subscribecontext=dp6013

[6014]
callerid=Büro Claudia<6014>
host=dynamic
domain=192.168.5.111
deny=0.0.0.0/0.0.0.0
permit=192.168.5.0/255.255.255.0
permit=192.168.146.0/255.255.255.0
user=user
secret=password
type=peer
call-limit=5
context=dp6014
subscribecontext=dp6014

[6015]
callerid=Wohnzimmer<6015>
host=dynamic
domain=192.168.5.111
deny=0.0.0.0/0.0.0.0
permit=192.168.5.0/255.255.255.0
permit=192.168.146.0/255.255.255.0
user=user
secret=password
type=peer
mailbox=6015@default
call-limit=5
context=dp6015
subscribecontext=dp6015

[6016]
callerid=Bett Claudia<6016>
host=dynamic
domain=192.168.5.111
deny=0.0.0.0/0.0.0.0
permit=192.168.5.0/255.255.255.0
permit=192.168.146.0/255.255.255.0
user=user
secret=password
type=friend
call-limit=3
context=dp6016
subscribecontext=dp6016

[6017]
callerid=Esszimmer<6017>
host=dynamic
domain=192.168.5.111
deny=0.0.0.0/0.0.0.0
permit=192.168.5.0/255.255.255.0
permit=192.168.146.0/255.255.255.0
user=user
secret=password
type=friend
call-limit=5
directmedia=no
context=dp6017
subscribecontext=dp6017

[6018]
callerid=Fax Kopierer<6018>
host=dynamic
domain=192.168.5.111
deny=0.0.0.0/0.0.0.0
permit=192.168.5.0/255.255.255.0
permit=192.168.146.0/255.255.255.0
user=user
secret=password
type=friend
call-limit=5
context=dp6018
subscribecontext=dp6018
disallow=all
allow=alaw

[6019]
callerid=Kueche<6019>
host=dynamic
domain=192.168.5.111
deny=0.0.0.0/0.0.0.0
permit=192.168.5.0/255.255.255.0
permit=192.168.146.0/255.255.255.0
user=user
secret=password
type=friend
call-limit=5
context=dp6019
subscribecontext=dp6019

[6020]
callerid=ISDN 6020<6020>
host=dynamic
domain=192.168.5.111
deny=0.0.0.0/0.0.0.0
permit=192.168.5.0/255.255.255.0
permit=192.168.146.0/255.255.255.0
user=user
secret=password
type=friend
call-limit=3
context=dp6020
subscribecontext=dp6020

[6022]
callerid=Basteltisch <6022>
host=dynamic
domain=192.168.5.111
deny=0.0.0.0/0.0.0.0
permit=192.168.5.0/255.255.255.0
permit=192.168.146.0/255.255.255.0
user=user
secret=password
type=peer
call-limit=5
context=dp6022
subscribecontext=dp6022

[6023]
callerid=Analog 1<6023>
host=dynamic
domain=192.168.5.111
deny=0.0.0.0/0.0.0.0
permit=192.168.5.0/255.255.255.0
permit=192.168.146.0/255.255.255.0
user=user
secret=password
type=friend
nat=no
call-limit=5
context=dp6023
subscribecontext=dp6023
disallow=all
allow=alaw

[6024]
callerid=ISDN 6024<6024>
host=dynamic
domain=192.168.5.111
deny=0.0.0.0/0.0.0.0
permit=192.168.5.0/255.255.255.0
permit=192.168.146.0/255.255.255.0
user=user
secret=password
type=friend
call-limit=5
context=dp6024
subscribecontext=dp6024

[6025]
callerid=Wohnzimmer<6025>
host=dynamic
domain=192.168.5.111
deny=0.0.0.0/0.0.0.0
permit=192.168.5.0/255.255.255.0
permit=192.168.146.0/255.255.255.0
user=user
secret=password
type=friend
call-limit=3
context=dp6025
subscribecontext=dp6025

[6026]
callerid=Bett Claudia<6026>
host=dynamic
domain=192.168.5.111
deny=0.0.0.0/0.0.0.0
permit=192.168.5.0/255.255.255.0
permit=192.168.146.0/255.255.255.0
user=user
secret=password
type=friend
call-limit=5
context=dp6016
subscribecontext=dp6016

[6027]
transport=udp,tcp
callerid=Licinia<6027>
host=dynamic
domain=192.168.5.111
deny=0.0.0.0/0.0.0.0
permit=192.168.50.0/255.255.255.0
permit=192.168.146.0/255.255.255.0
user=user
secret=password	
type=friend
call-limit=5
context=dp6027
subscribecontext=dp6027
directmedia=no 



[6028]
transport=udp,tcp
callerid=Sandro<6028>
host=dynamic
domain=192.168.5.111
deny=0.0.0.0/0.0.0.0
permit=192.168.50.0/255.255.255.0
permit=192.168.146.0/255.255.255.0
user=user
secret=password
type=friend
call-limit=5
context=dp6028
subscribecontext=dp6028
directmedia=no 


[6030]
callerid=Sandro DECT<6030>
host=dynamic
domain=192.168.5.111
deny=0.0.0.0/0.0.0.0
permit=192.168.5.0/255.255.255.0
permit=192.168.146.0/255.255.255.0
user=user
secret=password
type=friend
nat=no
call-limit=5
context=dp6030
subscribecontext=dp6030

[6043]
callerid=Serverraum<6043>
host=dynamic
domain=192.168.5.111
deny=0.0.0.0/0.0.0.0
permit=192.168.5.0/255.255.255.0
permit=192.168.146.0/255.255.255.0
user=user
secret=password
type=friend
call-limit=5
context=dp6043
subscribecontext=dp6043

[6050]
callerid=ISDN 6050<6050>
host=dynamic
domain=192.168.5.111
deny=0.0.0.0/0.0.0.0
permit=192.168.5.0/255.255.255.0
permit=192.168.146.0/255.255.255.0
user=user
secret=password
type=friend
call-limit=5
context=dp6050
subscribecontext=dp6050

[6053]
callerid=Münztelefon<6053>
host=dynamic
domain=192.168.5.111
deny=0.0.0.0/0.0.0.0
permit=192.168.5.0/255.255.255.0
permit=192.168.146.0/255.255.255.0
user=user
secret=password
type=friend
context=dp6053
subscribecontext=dp6053

[6100]
callerid=Türruf<6100>
host=dynamic
domain=192.168.5.111
deny=0.0.0.0/0.0.0.0
permit=192.168.5.0/255.255.255.0
permit=192.168.146.0/255.255.255.0
user=user
secret=password
type=friend
call-limit=3
context=dp6100
subscribecontext=dp6100

[6101]
transport=udp,tcp
callerid=Guido Weckwerth <6012>
host=dynamic
domain=192.168.5.111
deny=0.0.0.0/0.0.0.0
permit=192.168.5.0/255.255.255.0
permit=192.168.13.0/255.255.255.0
permit=192.168.14.0/255.255.255.0
permit=192.168.146.0/255.255.255.0
user=user
secret=password
type=friend
mailbox=6012@default
call-limit=5
context=dp6012
subscribecontext=dp6012
disallow=all
allow=alaw


[6114]
transport=udp,tcp
callerid=Claudia Weckwerth<6014>
host=dynamic
domain=192.168.5.111
deny=0.0.0.0/0.0.0.0
permit=192.168.5.0/255.255.255.0
permit=192.168.146.0/255.255.255.0
user=user
secret=password
type=peer
call-limit=5
mailbox=6015@default
context=dp6014
subscribecontext=dp6014
disallow=all
allow=alaw


[6102] ;Raspberry PI GSM Gateway
callerid=Guido D1<6102>
host=dynamic
domain=192.168.5.111
fromuser=6102
deny=0.0.0.0/0.0.0.0
permit=192.168.5.0/255.255.255.0
permit=192.168.146.0/255.255.255.0
user=user
secret=password
type=peer
call-limit=5
context=Guido_D1_in
disallow=all
allow=ulaw
allow=alaw
qualify=yes

