LAN Network: 10.1.1.0/24 LAN IP: 10.1.1.5/24 CUCM Publisher: 10.1.1.20/24 CUCM Subscriber: 10.1.1.21/24 WAN IP: DHCP ITSP: 5.5.5.5/32 ! voice service voip ip address trusted list ipv4 10.1.1.0 255.255.255.0 ipv4 5.5.5.5 address-hiding mode border-element media bulk-stats media disable-detailed-stats allow-connections sip to sip fax protocol pass-through g711ulaw sip bind control source-interface GigabitEthernet0/0/0 bind media source-interface GigabitEthernet0/0/0 header-passing registrar server expires max 600 min 60 asserted-id pai midcall-signaling passthru no call service stop support-path-header ! ! voice class uri 10 sip host ipv4:10.1.1.20 voice class codec 1 codec preference 1 g711ulaw ! ! ! ! voice class e164-pattern-map 100 description PSTN DIDs e164 4165551234 e164 4165552345 e164 4165553456 e164 4165554567 e164 4165555678 e164 4165556789 ! ! voice class e164-pattern-map 102 description PSTN patterns e164 9011T e164 91[2-9]..[2-9]......$ e164 9[2-8]11$ e164 9[2-9]..[2-9]......$ e164 9[2-9]......$ ! ! voice class server-group 100 ipv4 10.1.1.20 preference 2 ipv4 10.1.1.21 preference 1 description CUCM Cluster ! voice class sip-options-keepalive 100 description OPTIONS Ping for CUCM servers ! voice class tenant 100 registrar 1 dns:sbc.itsp.com expires 300 credentials username user1 password password realm sbc.itsp.com authentication username user1 password password realm sbc.itsp.com retry invite 2 retry response 4 retry register 10 sip-server dns:sbc.itsp.com host-registrar session transport udp bind control source-interface GigabitEthernet0/0/1 bind media source-interface GigabitEthernet0/0/1 no pass-thru content custom-sdp early-offer forced ! ! voice iec syslog ! voice register global default mode no allow-hash-in-dn timeouts interdigit 4 system message "Backup mode" max-dn 100 max-pool 50 timezone 13 ! voice register pool 1 translation-profile outgoing SRST-DID-translation id network 10.1.1.0 mask 255.255.255.0 alias 1 4165551234 to 1001 alias 2 4165552345 to 1002 alias 3 4165553456 to 1003 alias 4 4165554567 to 1004 alias 5 4165555678 to 1005 presence call-list dtmf-relay rtp-nte sip-kpml voice-class codec 1 no vad ! ! ! voice translation-rule 1 rule 1 /^911$/ /911/ rule 2 /^9/ // ! voice translation-rule 9 rule 1 /^9\(..........\)$/ /\1/ rule 2 /^9\(1..........\)$/ /\1/ rule 3 /^9\(011\)/ /\1/ rule 4 /^....$/ /9055551234/ ! voice translation-rule 1000 rule 1 /^4165551234$/ /1001/ rule 1 /^4165552345$/ /1002/ rule 1 /^4165553456$/ /1003/ rule 1 /^4165554567$/ /1004/ rule 1 /^4165555678$/ /1005/ ! ! voice translation-profile 9-strip translate calling 9 translate called 1 ! voice translation-profile SRST-DID_translation translate called 1000 ! ! interface GigabitEthernet0/0/0 description LAN ip address 10.1.1.5 255.255.255.0 negotiation auto ! interface GigabitEthernet0/0/1 ip address dhcp ip access-group ITSP-SIP-Trunk in media-type rj45 negotiation auto no lldp transmit no lldp receive ! ip route 0.0.0.0 0.0.0.0 10.1.1.1 ip route 5.5.5.5 255.255.255.255 GigabitEthernet0/0/1 ! ip access-list extended ITSP-SIP-Trunk 10 remark PERMIT DHCP 10 permit udp any any eq bootpc 20 permit udp any any eq bootps 30 remark PERMIT SIP ports 30 permit udp host 5.5.5.5 any eq 5060 40 remark PERMIT UDP RTP ports 40 permit udp host 5.5.5.5 any range 1024 65535 50 deny ip any any ! dial-peer voice 1 voip description incoming calls from SIP Trunk session protocol sipv2 incoming called e164-pattern-map 100 voice-class sip tenant 100 dtmf-relay rtp-nte codec g711ulaw no vad ! dial-peer voice 10 voip description incoming calls from CUCM session protocol sipv2 session transport tcp incoming uri from 10 voice-class codec 1 dtmf-relay sip-kpml rtp-nte no vad ! dial-peer voice 100 voip description DIDs to CUCM session protocol sipv2 session transport tcp session server-group 100 destination e164-pattern-map 100 voice-class codec 1 voice-class sip options-keepalive profile 100 dtmf-relay sip-kpml rtp-nte no vad ! dial-peer voice 101 voip description SIP Trunk Emergency calls translation-profile outgoing 9-strip destination-pattern 9911$ session protocol sipv2 session target ipv4:5.5.5.5 voice-class codec 1 voice-class sip tenant 100 dtmf-relay rtp-nte no vad ! dial-peer voice 102 voip description SIP Trunk PSTN calls translation-profile outgoing 9-strip session protocol sipv2 session target ipv4:5.5.5.5 destination e164-pattern-map 102 voice-class codec 1 voice-class sip tenant 100 dtmf-relay rtp-nte no vad ! ! sip-ua retry invite 2 !