cli version 3.20
clock local offset +01:00
webserver port 80 language en
sntp-client
sntp-client server primary 129.132.2.21 port 123 version 4
sntp-client poll-interval 600
sntp-client root-delay-compensation
system
ic voice 0
low-bitrate-codec g729
profile ppp default
profile tone-set default
profile voip default
codec 1 g711alaw64k rx-length 20 tx-length 20
codec 2 g711ulaw64k rx-length 20 tx-length 20
profile pstn default
profile sip default
profile aaa default
method 1 local
method 2 none
context ip router
interface IF_ETH_LAN
ipaddress 192.168.10.2 255.255.0.0
tcp adjust-mss rx mtu
tcp adjust-mss tx mtu
context cs switch
digit-collection timeout 2
national-prefix 0
international-prefix 00
# von lokalen FXS Anschlüssen
routing-table called-e164 RT_FROMLOCAL
route .T dest-interface GW_SIP
# von "außen" via SIP
routing-table called-e164 RT_FROMSIP
route 199 dest-interface IF_FXS_00
interface sip IF_SIP
bind gateway GW_SIP
service default
route call dest-table RT_FROMSIP
early-connect
early-disconnect
# Sonst beschwert sich der Asterisk wenn hier plötzlich ein anderer User telefonieren will
address-translation outgoing-call from-header user-part fix patton host-part call
interface fxs IF_FXS_00
route call dest-table RT_FROMLOCAL
call-transfer
subscriber-number 199
interface fxs IF_FXS_01
route call dest-table RT_FROMLOCAL
interface fxs IF_FXS_02
route call dest-table RT_FROMLOCAL
interface fxs IF_FXS_03
route call dest-table RT_FROMLOCAL
context cs switch
no shutdown
gateway sip GW_SIP
bind interface IF_ETH_LAN router
service default
# "domain" war ungültig! Hier darf keine IP stehen, sondern muss eine Domain hin!
# Und zwar die selbe die im Asterisk konfiguriert ist! Die Domain muss es übrigens nicht wirklich im DNS geben!
# Üblicherweise gilt realm = domain (siehe aber nochmal Asterisk -> sip.conf)
# Siehe Patton Smartnode 4.2 Manual, Seite 547:
# Note: Do not confuse the SIP domain name with normal DNS domain names.
# Note: Never specify an IP address as the domain name.
domain meinsip.lan
realm meinsip.lan
defaultserver manual 192.168.10.1 5060 loose-router
# Hier registration auf manual, Redirections kommen hier eher nicht vor
registration manual 192.168.10.1 5060
# Hinten ein register dran, sonst registriert sich der User nicht am Asterisk!
user patton authenticate password Otx2vJCEWP+8Bb6tqoGkwA== encrypted register
gateway sip GW_SIP
no shutdown
port ethernet 0 0
medium auto
encapsulation ip
bind interface IF_ETH_LAN router
no shutdown
port fxs 0 0
encapsulation cc-fxs
bind interface IF_FXS_00 switch
no shutdown
port fxs 0 1
encapsulation cc-fxs
bind interface IF_FXS_01 switch
shutdown
port fxs 0 2
encapsulation cc-fxs
bind interface IF_FXS_02 switch
shutdown
port fxs 0 3
encapsulation cc-fxs
bind interface IF_FXS_03 switch
shutdown