! -------------------------------------------------------------------------------- ! NETWORK INTERFACE / ROUTING / DNS ! -------------------------------------------------------------------------------- ! This is the ethernet connected to the firewall (172.16.14.254) interface GigabitEthernet0/1 description VoIP Gateway Interface ip address 172.16.14.2 255.255.255.0 ip helper-address 172.16.8.16 no ip redirects no ip unreachables duplex auto speed auto no mop enabled ! ! optional - Management Network interface FastEthernet0/0/0 description Management Interface ip address 172.16.4.4 255.255.255.0 duplex auto speed auto ! ip route 0.0.0.0 0.0.0.0 172.16.14.254 ip route 172.16.0.0 255.255.240.0 172.16.4.1 ! ip domain name mydomain.com ip name-server 172.16.8.8 ip name-server 172.16.8.9 ! ! -------------------------------------------------------------------------------- ! VOICE SERVICE CONFIGURATION ! -------------------------------------------------------------------------------- ! voice service voip ip address trusted list ! ITSP POP addresses - set as appropriate ipv4 POP1_address 255.255.255.240 ipv4 POP2_address 255.255.255.240 ipv4 POP3_address 255.255.255.240 ipv4 POP4_address 255.255.255.240 ! Internal network for VoIP devices ipv4 172.16.14.0 255.255.255.0 ! allow-connections sip to sip no supplementary-service sip moved-temporarily no supplementary-service sip refer ! ! ! -------------------------------------------------------------------------------- ! TRANSLATION RULES / PROFILES ! -------------------------------------------------------------------------------- ! ! DIDs for SIP Trunk voice translation-rule 3 rule 1 /^1../ /9015551234/ ! voice translation-rule 4 rule 1 /^1../ /9015551235/ ! voice translation-rule 10 rule 1 /^9\(1..........\)/ /\1/ rule 2 /^9973\(.......\)/ /\1/ rule 3 /^9\(011.*\)/ /\1/ rule 4 /^9\([2-9]11\)/ /\1/ ! ! !voice translation-profile SIP_IN ! translate calling 2 ! voice translation-profile SIP_1A translate calling 3 translate called 10 ! voice translation-profile SIP_1B translate calling 4 ! ! -------------------------------------------------------------------------------- ! SIP-UA CONFIGURATION ! -------------------------------------------------------------------------------- ! sip-ua credentials username 123456 password P@ssw0rd realm sip.itsp.com authentication username 123456 password P@ssw0rd realm sip.itsp.com registrar 1 dns:us-east.sip.itsp.com expires 90 refresh-ratio 60 auth-realm sip.itsp.com sip-server dns:us-east.sip.itsp.com retry invite 3 retry response 3 retry bye 3 retry cancel 3 retry register 3 timers connect 300 ! ! ! -------------------------------------------------------------------------------- ! TELEPHONY SERVICE CONFIGURATION ! -------------------------------------------------------------------------------- ! telephony-service max-ephones 16 max-dn 99 max-conferences 4 gain -6 system message Family Phones sdspfarm conference mute-on *1 mute-off *3 sdspfarm units 4 sdspfarm transcode sessions 4 sdspfarm tag 1 XCD-00 sdspfarm tag 2 CFB-00 sdspfarm tag 3 MTP-00 conference hardware em logout 0:0 0:0 0:0 fxo hook-flash no auto-reg-ephone ip source-address 172.16.14.2 port 2000 timeouts interdigit 3 cnf-file location flash: load 7916-12 cmterm-7916.1-0-4-2.cop.sgn load 7960-7940 P00308010200 load 7970 SCCP70.8-5-3S.loads time-zone 12 voicemail 399 moh music-on-hold.au web admin system name admin password SuperSecret! dn-webedit time-webedit transfer-system full-consult secondary-dialtone 9 ! after-hours block pattern 1 1900 7-24 after-hours block pattern 2 1976 7-24 night-service code *78 night-service day Sun 22:00 07:59 night-service day Mon 22:00 06:59 night-service day Tue 22:00 06:59 night-service day Wed 22:00 06:59 night-service day Thu 22:00 06:59 night-service day Fri 22:00 06:59 night-service day Sat 22:00 06:59 ! directory first-name-first directory entry 1 101 name Mary directory entry 2 102 name Tom create cnf-files version-stamp 7960 ! ! ------------------------------ ! 700 Series - SIP Trunks ! ------------------------------ dial-peer voice 700 voip description SIP Trunk (incoming) translation-profile incoming SIP_IN session target sip-server session protocol sipv2 incoming called-number .% voice-class sip dtmf-relay force rtp-nte voice-class codec 1 dtmf-relay rtp-nte no vad ! dial-peer voice 701 voip description SIP Trunk (3-digit Services) translation-profile outgoing SIP_1A preference 1 destination-pattern 9[2-8]11 session protocol sipv2 session target sip-server voice-class codec 1 voice-class sip dtmf-relay force rtp-nte dtmf-relay rtp-nte no vad ! dial-peer voice 702 voip description SIP Trunk (10-digit dial) translation-profile outgoing SIP_1A preference 1 destination-pattern 91[2-9]......... session protocol sipv2 session target sip-server voice-class codec 1 voice-class sip dtmf-relay force rtp-nte ! voice-class sip reset timer expires 183 dtmf-relay rtp-nte no vad ! dial-peer voice 703 voip description SIP Trunk (10-digit dial) translation-profile outgoing SIP_1A preference 1 destination-pattern 9[2-9]......... session protocol sipv2 session target sip-server voice-class codec 1 voice-class sip dtmf-relay force rtp-nte dtmf-relay rtp-nte no vad ! dial-peer voice 709 voip description SIP Trunk (Intl LD) translation-profile outgoing SIP_1A preference 1 destination-pattern 9011T session protocol sipv2 session target sip-server voice-class codec 1 voice-class sip dtmf-relay force rtp-nte dtmf-relay rtp-nte no vad ! ! -------------------------------------------------------------------------------- ! EPHONE DNs FOR EXTENSIONS ! -------------------------------------------------------------------------------- ! ephone-dn 4 dual-line number 104 no-reg both label Barn description 104 name Barn ! ! ephone-dn 6 dual-line number 106 no-reg both label Kitchen description 106 name Kitchen night-service bell ! ! ephone-dn 11 dual-line number 111 no-reg both label Mary description 111 name Mary Smity snr 91cellphone delay 5 timeout 40 cfwd-noan 399 call-forward busy 399 mwi-type both night-service bell ! ! -------------------------------------------------------------------------------- ! EPHONE DNs FOR DIDs ! -------------------------------------------------------------------------------- ! ephone-dn 70 number 19015551234 no-reg primary label Home description Home call-forward noan 390 timeout 30 ! ! ephone-dn 71 number 19015551235 no-reg label Home 2 description Home 2 call-forward noan 390 timeout 30 ! ! -------------------------------------------------------------------------------- ! EPHONE DNs FOR PAGING ! -------------------------------------------------------------------------------- ! ephone-dn 40 number 330 no-reg both name Page All paging ip 239.1.1.3 port 2000 paging group 41,42 ! ! ephone-dn 41 number 331 no-reg both name Page Office paging ip 239.1.1.1 port 2000 ! ! ephone-dn 42 number 332 no-reg both name Page Home paging ip 239.1.1.2 port 2000 ! ! ! -------------------------------------------------------------------------------- ! EPHONE CONFIGURATION FOR EXTENSIONS ! -------------------------------------------------------------------------------- ! ephone 4 device-security-mode none description Barn mac-address 0015.ABCD.0123 ephone-template 1 paging-dn 42 type 7970 keep-conference button 1:4 3:70 4:71 ! ! ! ephone 6 device-security-mode none description Kitchen mac-address 0007.ABCD.0124 ephone-template 1 paging-dn 42 type 7960 keep-conference button 1:6 3:70 4:71 night-service bell ! ! ! ephone 11 device-security-mode none description Mary's desk mac-address 0023.ABCD.0125 ephone-template 2 username "Mary" paging-dn 41 type 7975 keep-conference button 1:11 4:70 5:71 night-service bell