#----------------------------------------------------------------# # # # Patton Electronics Company # # SN4171 (SmartNode 4171 VoIP Gateway) # # # # Copyright (c) 2018 BusinessCom # # # # BCOM Trunk voorbeeldfile # # GEBRUIKERSNAAM en WACHTWOORD vervangen door BCOM gegevens # # 413724299 vervangen door de clip van klant # # # # 192.168.5.55 vervangen door het vaste IPADRES van de PATTON # # mocht het subnet geen 255.255.255.0 zijn dan ook de /24 # # vervangen door het juiste subnetmasker # # 192.168.5.1 vervangen door de juiste default gateway op het # # netwerk # # # # Poort PRI 0/0 heeft nu CRC4 aan staan (aanbevolen) # # Voor GEEN CRC4 de regel 'framing crc4' vervangen door # # 'framing non-crc4' # # # # # # V07 q931 max-calls 30 en channel-range 0-29 naar 0-31 # # V08 long-haul gewijzigd naar short-haul # # V11 trust sip.bcom.nl toegevoegd # # V12 functie voeg kengetal toegevoegd maar wordt niet gebruikt # # V13 default CLIP toegevoegd # # V14 default nationaal bellen met 31 # # 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 e1t1 0 0 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 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 0031(.%) to \1 map 31(.%) to \1 map 0(.%) to \1 mapping-table calling-e164 to calling-e164 MAP_CALLING_IN map 0031(.%) to 0\1 map 31(.%) 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 31(.........) to 0\1 map 0(.........) to 0\1 map (.........) to 0\1 map default to 0413724299 mapping-table calling-e164 to calling-e164 MAP_CALLING_STARTALTIJDMET31 map 31(.........) to 31\1 map 0(.........) to 31\1 map (.........) to 31\1 map default to 31413724299 mapping-table called-e164 to called-e164 MAP_CALLED_STARTNATIONAALMET31 map 0031(.%) to 31\1 map 00(.%) to 00\1 map 0(.%) to 31\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_STARTALTIJDMET31 execute 2 MAP_CALLED_STARTNATIONAALMET31 interface isdn IF_ISDN_PRI_0 route call dest-table CDPN_2_IP isdn-date-time interface sip IF_SIP bind context sip-gateway GW_SIP route call dest-table INCOMING remote sip.bcom.nl 5060 privacy trust sip.bcom.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_PRI_0 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.bcom.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 registrar sip.bcom.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 e1t1 0 0 port-type e1 clock master framing crc4 application short-haul encapsulation q921 q921 permanent-layer2 uni-side net encapsulation q931 q931 protocol dss1 uni-side net bchan-number-order ascending max-calls 30 channel-range 0 31 encapsulation cc-isdn bind interface SWITCH IF_ISDN_PRI_0 port e1t1 0 0 no shutdown