Unten sehen Sie ein Konfigurationsbeispiel für ein ISDN Anschluss (Punkt-Mehrpunkt) mit 5 Nummern mit folgenden Eigenschaften:
- Ausgehende Gespräche mit 0 als erster Ziffer gehen standardmässig über VoIP.
- Notrufe und Spezialnummern mit 1XX (z.B. 161, 171, 141) werden über ISDN geführt.
- alle Mehrwertdienste mit 080x und 090x werden über ISDN geroutet
- Fax wird über T.38 versandt
- Gespräche mit 9 als erster Ziffer werden direkt über ISDN geführt (z.B. 9 052 740 2261 für 052 740 2261)
- Steht Internet nicht zur Verfügung wird nach 5 Sekunden das Gespräch über ISDN weitergeleitet
- Eingehende Gespräche kommen über VoIP und ISDN
Damit Sie die Konfiguration verwenden können, müssen Sie folgende Anpassungen vornehmen:
- ***MSN1*** bis ***MSN5***, ***SIP-Konto1*** bis
***SIP-Konto5*** und ***Passwort1*** bis ***Passwort5*** müssen mit den
entsprechenden Informationen ersetzt werden.
#--- Smartnode 1200/4552 Konfiguration mit guest-voip.ch ---------#
# Diese Konfiguration wurde mit der Firmware R3.20 2006-02-02 SIP getestet.
dns-relay
webserver port 80
language en
snmp community public ro
sntp-client
sntp-client local-clock-offset
sntp-client gmt-offset + 01:00:00
system
ic voice 0
profile acl default
permit 1 ip any any
profile napt default
profile ppp default
profile tone-set default
profile voip default
codec 1 g711alaw64k rx-length 30 tx-length 30
codec 2 g711ulaw64k rx-length 30 tx-length 30
codec 3 g729 rx-length 30 tx-length 30
dejitter-mode static
dejitter-max-delay 120
fax transmission 1 relay t38-udp
profile pstn default
profile sip default
profile dhcp-server DHCPS_LAN
network 192.168.2.0 255.255.255.0
include 1 192.168.2.10 192.168.2.100
lease 1 days
default-router 1 192.168.2.1
domain-name smartnode4552.local
domain-name-server 1 192.168.2.1
profile aaa default
method 1 local
method 2 none
context ip router
interface IF_IP_WAN
ipaddress dhcp
use profile acl default in
use profile napt default
interface IF_IP_LAN
ipaddress 192.168.2.1 255.255.255.0
icmp router-discovery
context ip router
dhcp-server use DHCPS_LAN
context cs switch
routing-table called-e164 RT_CALL_ROUTING
route default dest-service SER_HG_PSTN_FALLBACK
route 0T3 dest-service SER_HG_PSTN_FALLBACK
route 1T3 dest-interface IF_S0_00
route 090T3 dest-interface IF_S0_00
route 080T3 dest-interface IF_S0_00
route 9T3 dest-interface IF_S0_00 MAP_REMOVE_PREFIX
routing-table called-e164 RT_INCOMING
route default dest-interface IF_S0_01 MAP_SIP_2_MSN
routing-table calling-e164 RT_PHONE_2_SIP
route default dest-interface IF_SIP_SERVICE CPFN_MSN_2_SIP
mapping-table called-e164 to called-e164 MAP_SIP_2_MSN
map ***SIP-Konto1*** to ***MSN1***
map ***SIP-Konto2*** to ***MSN2***
map ***SIP-Konto3*** to ***MSN3***
map ***SIP-Konto4*** to ***MSN4***
map ***SIP-Konto5*** to ***MSN5***
mapping-table calling-e164 to calling-uri MAP_MSN_2_SIPURI
map ***MSN1*** to sip:***SIP-Konto1***@guest2.voipgateway.org
map ***MSN2*** to sip:***SIP-Konto2***@guest2.voipgateway.org
map ***MSN3*** to sip:***SIP-Konto3***@guest2.voipgateway.org
map ***MSN4*** to sip:***SIP-Konto4***@guest2.voipgateway.org
map ***MSN5*** to sip:***SIP-Konto5***@guest2voipgateway.org
mapping-table calling-e164 to calling-e164 MAP_MSN_2_SIP
map ***MSN1*** to ***SIP-Konto1***
map ***MSN2*** to ***SIP-Konto2***
map ***MSN3*** to ***SIP-Konto3***
map ***MSN4*** to ***SIP-Konto4***
map ***MSN5*** to ***SIP-Konto5***
mapping-table called-e164 to called-e164 MAP_REMOVE_PREFIX
map 9(.%) to \1
complex-function CPFN_MSN_2_SIP
execute 1 MAP_MSN_2_SIP
execute 2 MAP_MSN_2_SIPURI
interface isdn IF_S0_00
route call dest-interface IF_S0_01
interface isdn IF_S0_01
route call dest-table RT_CALL_ROUTING
isdn-date-time
interface sip IF_SIP_SERVICE
bind gateway GW_SIP
service default
route call dest-table RT_INCOMING
use profile voip VOIP
service hunt-group SER_HG_PSTN_FALLBACK
timeout 5
drop-cause normal-unspecified
drop-cause no-circuit-channel-available
drop-cause network-out-of-order
drop-cause temporary-failure
drop-cause switching-equipment-congestion
drop-cause access-info-discarded
drop-cause circuit-channel-not-available
drop-cause resources-unavailable
drop-cause no-route-to-destination
route call 1 dest-table RT_PHONE_2_SIP
route call 2 dest-interface IF_S0_00
context cs switch
no shutdown
gateway sip GW_SIP
no transport tcp
bind interface IF_IP_WAN router
service default
domain voipgateway.org
authentication ***SIP-Konto1*** password ***Passwort1***
authentication ***SIP-Konto2*** password ***Passwort2***
authentication ***SIP-Konto3*** password ***Passwort3***
authentication ***SIP-Konto4*** password ***Passwort4***
authentication ***SIP-Konto5*** password ***Passwort5***
registration-lifetime 120
registrar voipgateway.org 5060
user ***SIP-Konto1***
user ***SIP-Konto2***
user ***SIP-Konto3***
user ***SIP-Konto4***
user ***SIP-Konto5***
use profile voip default
gateway sip GW_SIP
no shutdown
port ethernet 0 0
bind interface IF_IP_WAN router
no shutdown
port ethernet 0 1
bind interface IF_IP_LAN router
no shutdown
port bri 0 0
clock auto
encapsulation q921
q921
protocol pmp
uni-side auto
encapsulation q931
q931
protocol dss1
uni-side user
encapsulation cc-isdn
bind interface IF_S0_00 switch
port bri 0 0
no shutdown
port bri 0 1
clock auto
encapsulation q921
q921
protocol pmp
uni-side auto
encapsulation q931
q931
protocol dss1
uni-side net
encapsulation cc-isdn
bind interface IF_S0_01 switch
port bri 0 1
no shutdown