#----------------------------------------------------------------# # # # Patton Electronics Company # # SN4131/4BIS8VHP v1.7 (SmartNode 4131 VoIP Gateway) # # # # Copyright (c) 2018 BusinessCom # # # # SIP.PROVIDER.NL vervangen door provider gegevens # # GEBRUIKERSNAAM en WACHTWOORD vervangen door provider gegevens # # # # 192.168.5.55 vervangen door het vaste IPADRES van de PATTON # # mocht het subnet geen 255.255.255.0 zijn dan ook het /24 # # vervangen door het juiste subnetmasker # # 192.168.5.1 vervangen door de juiste default gateway op het # # netwerk # # # # Poorten BRI 0/0 tm 0/7 staan nu op Point-to-Point # # Wanneer dit P-MP moet zijn dan de regels met protocol pp # # veranderen naar protocol pmp # # Wij adviseren zo veel mogelijk P-P te gebruiken # # # # Faxen over SIP wordt niet actief door BusinessCom ondersteund # # dus gebruik op eigen risico en zeker eerst testen met de # # gebruikte sipprovider # # # # V14 0032 omvorming naar 32 toegevoegd # # V15 Cloudconnect nodems bgp rip default shutdown # # V16 DST Rule van derde naar laatste zondag maart en oktober # # # #----------------------------------------------------------------# cli version 4.00 clock local default-offset +01:00 clock local dst-rule NETHERLANDS +1:00 from mar last sunday 02:00 2000 until oct last sunday 03:00 2036 profile aaa DEFAULT method 1 local method 2 none console use profile aaa DEFAULT telnet-server use profile aaa DEFAULT no shutdown ssh-server use profile aaa DEFAULT no shutdown snmp-server shutdown web-server protocol http port 80 protocol https port 443 use profile aaa DEFAULT no shutdown ntp server nl.pool.ntp.org no shutdown bgp shutdown rip shutdown nodems-client resource any shutdown system clock-source 1 bri 0 0 clock-source 2 bri 0 1 clock-source 3 bri 0 2 clock-source 4 bri 0 3 clock-source 5 bri 0 4 clock-source 6 bri 0 5 clock-source 7 bri 0 6 clock-source 8 bri 0 7 profile napt NAPT_WAN dns-server relay dns-client shutdown dns-client name-server 208.67.222.222 name-server 208.67.220.220 profile tls DEFAULT authentication incoming authentication outgoing private-key pki:private-key/DEFAULT own-certificate 1 pki:certificate/DEFAULT diffie-hellman-parameters pki:diffie-hellman-parameters/DEFAULT-2048 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 fax transmission 1 relay t38-udp fax transmission 2 bypass g711alaw64k rx-length 20 tx-length 20 profile pstn DEFAULT profile sip DEFAULT context ip ROUTER interface WAN ipaddress WAN_STATIC 192.168.5.55/24 use profile napt NAPT_WAN WAN_STATIC routing-table DEFAULT route 0.0.0.0/0 gateway 192.168.5.1 metric 0 profile packetsmart DEFAULT profile ppp DEFAULT cwmp-client bind ipaddress ROUTER WAN WAN_STATIC session-retry-maximum 1 no shutdown stun shutdown context cs SWITCH national-prefix 0 international-prefix 00 no shutdown mapping-table called-e164 to called-e164 MAP_CALLED_IN map 0032(.%) to \1 map 32(.%) to \1 map 0(.%) to \1 mapping-table calling-e164 to calling-e164 MAP_CALLING_IN map 0032(.%) to 0\1 map 32(.%) to 0\1 mapping-table called-type-of-number to called-type-of-number MAP_TON_IN map default to national mapping-table called-numbering-plan to called-numbering-plan MAP_NRPLAN_IN map default to isdn-telephony mapping-table calling-e164 to calling-e164 MAP_CALLING_STARTALTIJDMET0 map 0(.%) to 0\1 map (.%) to 0\1 mapping-table calling-e164 to calling-e164 MAP_CALLING_STARTALTIJDMET32 map 0(.%) to 32\1 map (.%) to 32\1 mapping-table called-e164 to called-e164 MAP_CALLED_STARTNATIONAALMET32 map 0032(.%) to 32\1 map 00(.%) to 00\1 map 0(.%) to 32\1 mapping-table called-e164 to called-e164 MAP_CALLED_VOEGKENGETALTOE map ([2-9].%) to 0413\1 routing-table called-e164 INCOMING route default dest-service OUT_ISDN MAP_IN routing-table called-e164 CDPN_2_IP route .T dest-service OUT_IP MAP_OUT complex-function MAP_IN execute 1 MAP_CALLED_IN execute 2 MAP_CALLING_IN execute 3 MAP_TON_IN execute 4 MAP_NRPLAN_IN complex-function MAP_OUT execute 1 MAP_CALLING_STARTALTIJDMET0 interface isdn IF_ISDN_S0_0 route call dest-table CDPN_2_IP no call-waiting isdn-date-time interface isdn IF_ISDN_S0_1 route call dest-table CDPN_2_IP no call-waiting isdn-date-time interface isdn IF_ISDN_S0_2 route call dest-table CDPN_2_IP no call-waiting isdn-date-time interface isdn IF_ISDN_S0_3 route call dest-table CDPN_2_IP no call-waiting isdn-date-time interface isdn IF_ISDN_S0_4 route call dest-table CDPN_2_IP no call-waiting isdn-date-time interface isdn IF_ISDN_S0_5 route call dest-table CDPN_2_IP no call-waiting isdn-date-time interface isdn IF_ISDN_S0_6 route call dest-table CDPN_2_IP no call-waiting isdn-date-time interface isdn IF_ISDN_S0_7 route call dest-table CDPN_2_IP no call-waiting isdn-date-time interface sip IF_SIP bind context sip-gateway GW_SIP route call dest-table INCOMING privacy # voor RoutIT in de onderstaande regel het IPadres invullen aangezien de trunktest.voipit.nl NIET door DNS geresolved kan worden # remote SIP.PROVIDER.NL 5060 # voor providers die gebruik maken van het RoutIT netwerk moet de domain-name in registratie zien dus trunktest.voipit.nl vervangen # # address-translation outgoing-call from-header user-part call host-part fix trunktest.voipit.nl # # Om een vast nummer mee naar buiten te sturen hier 31413724200 als voorbeeld # # address-translation outgoing-call from-header user-part fix 31413724200 host-part call # service hunt-group OUT_ISDN 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 route call 1 dest-interface IF_ISDN_S0_0 route call 2 dest-interface IF_ISDN_S0_1 route call 3 dest-interface IF_ISDN_S0_2 route call 4 dest-interface IF_ISDN_S0_3 route call 5 dest-interface IF_ISDN_S0_4 route call 6 dest-interface IF_ISDN_S0_5 route call 7 dest-interface IF_ISDN_S0_6 route call 8 dest-interface IF_ISDN_S0_7 service hunt-group OUT_IP 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 route call 1 dest-interface IF_SIP authentication-service AS_PROVIDER username GEBRUIKERSNAAM password WACHTWOORD location-service SL_PROVIDER domain 1 SIP.PROVIDER.NL identity-group DEFAULT authentication outbound authenticate 1 authentication-service AS_PROVIDER username GEBRUIKERSNAAM identity GEBRUIKERSNAAM authentication outbound authenticate 1 authentication-service AS_PROVIDER registration outbound # voor RoutIT in de onderstaande regel het IPadres invullen aangezien de trunktest.voipit.nl NIET door DNS geresolved kan worden # registrar SIP.PROVIDER.NL lifetime 180 register auto sip web-display-registration-status context sip-gateway GW_SIP bind location-service SL_PROVIDER interface BIND_WAN_SIP transport-protocol udp+tcp 5060 no transport-protocol tls bind ipaddress ROUTER WAN WAN_STATIC context sip-gateway GW_SIP no shutdown sip-survivability shutdown port ethernet 0 0 bind interface ROUTER WAN no shutdown port bri 0 0 q921 permanent-layer2 protocol pp uni-side auto q931 protocol dss1 uni-side net max-calls 2 channel-range 0 1 bind interface SWITCH IF_ISDN_S0_0 port bri 0 0 no shutdown port bri 0 1 q921 permanent-layer2 protocol pp uni-side auto q931 protocol dss1 uni-side net max-calls 2 channel-range 0 1 bind interface SWITCH IF_ISDN_S0_1 port bri 0 1 no shutdown port bri 0 2 q921 permanent-layer2 protocol pp uni-side auto q931 protocol dss1 uni-side net max-calls 2 channel-range 0 1 bind interface SWITCH IF_ISDN_S0_2 port bri 0 2 no shutdown port bri 0 3 q921 permanent-layer2 protocol pp uni-side auto q931 protocol dss1 uni-side net max-calls 2 channel-range 0 1 bind interface SWITCH IF_ISDN_S0_3 port bri 0 3 no shutdown port bri 0 4 q921 permanent-layer2 protocol pp uni-side auto q931 protocol dss1 uni-side net max-calls 2 channel-range 0 1 bind interface SWITCH IF_ISDN_S0_4 port bri 0 4 no shutdown port bri 0 5 q921 permanent-layer2 protocol pp uni-side auto q931 protocol dss1 uni-side net max-calls 2 channel-range 0 1 bind interface SWITCH IF_ISDN_S0_5 port bri 0 5 no shutdown port bri 0 6 q921 permanent-layer2 protocol pp uni-side auto q931 protocol dss1 uni-side net max-calls 2 channel-range 0 1 bind interface SWITCH IF_ISDN_S0_6 port bri 0 6 no shutdown port bri 0 7 q921 permanent-layer2 protocol pp uni-side auto q931 protocol dss1 uni-side net max-calls 2 channel-range 0 1 bind interface SWITCH IF_ISDN_S0_7 port bri 0 7 no shutdown