PSTN-FR#show running-config ! card type e1 0 0 card type e1 0 1 ! no aaa new-model ! network-clock-participate wic 0 network-clock-participate wic 1 ! isdn switch-type primary-net5 ! voice translation-rule 10 rule 1 /^61[2-9]..[2-9]...../ /\0/ rule 2 /^0011\(.*\)/ /\1/ rule 3 /^[2-9]......./ /612\0/ ! voice translation-rule 20 rule 1 /^1[2-9]..[2-9]....../ /\0/ rule 2 /^011\(.*\)/ /\1/ rule 3 /^[2-9]....../ /1212\0/ ! voice translation-rule 30 rule 1 /^61[2-9]..[2-9]...../ /\0/ rule 2 /^0011\(.*\)/ /\1/ rule 3 /^[2-9]......./ /618\0/ ! voice translation-profile FROM_ADELAIDE translate called 30 ! voice translation-profile FROM_NEW_YORK translate called 20 ! voice translation-profile FROM_SYNDEY translate called 10 ! voice-card 0 ! controller E1 0/0/0 pri-group timeslots 1-10,16 description **VOICE CIRCUIT TO SYDNEY** ! controller E1 0/1/0 pri-group timeslots 1-10,16 description **VOICE CIRCUIT TO NEW YORK** ! interface Serial0/0/0:15 no ip address encapsulation hdlc isdn switch-type primary-net5 isdn protocol-emulate network isdn incoming-voice voice no cdp enable ! interface Serial0/1/0:15 no ip address encapsulation hdlc isdn switch-type primary-net5 isdn protocol-emulate network isdn incoming-voice voice no cdp enable ! voice-port 0/0/0:15 translation-profile incoming FROM_SYDNEY ! voice-port 0/1/0:15 translation-profile incoming FROM_NEW_YORK ! mgcp profile default ! dial-peer voice 1 pots incoming called-number . direct-inward-dial ! dial-peer voice 168 pots description **SYDNEY 248195XXX** destination-pattern ^61224815... port 0/0/0:15 forward-digits 9 ! dial-peer voice 169 pots description **NEW YORK 2125165XXX** destination-pattern ^12125165... port 0/1/0:15 forward-digits 10
SYD-RTR#show running-config ! card type e1 0 0 ! network-clock-participate wic 0 ! isdn switch-type primary-net5 ! voice translation-rule 1 rule 1 /^248192\(...\)$/ /2\1/ ! voice translation-profile PSTN-STRIP translate called 1 ! voice-card 0 ! controller E1 0/0/0 pri-group timeslots 1-10,16 description **VOICE CIRCUIT TO PSTN** ! interface Serial0/0/0:15 description **VOICE CHANNEL TO PSTN** no ip address encapsulation hdlc isdn switch-type primary-net5 isdn incoming-voice voice no cdp enable ! dial-peer voice 1 voip destination-pattern 248. session protocol sipv2 session target ipv4:192.168.10.5 dtmf-relay rtp-nte sip-notify codec g711alaw ! dial-peer voice 2 pots incoming called-number . port 0/0/0:15
NY-RTR#show running-config ! card type e1 0 0 ! isdn switch-type primary-net5 ! network-clock-participate wic 0 ! voice translation-rule 1 voice translation-rule 1 rule 1 /^2125165\(...\)$/ /5\1/ ! voice translation-profile PSTN-STRIP translate called 1 ! voice-card 0 ! controller E1 0/0/0 pri-group timeslots 1-10,16 description **VOICE CIRCUIT TO PSTN** ! interface Serial0/0/0:15 description **VOICE CIRCUIT TO PSTN** no ip address encapsulation hdlc isdn switch-type primary-net5 isdn incoming-voice voice no cdp enable ! dial-peer voice 10 pots description **9-DIGIT LOCAL DIALING** destination-pattern 9[^1]......... port 0/0/0:15 forward-digits 10 ! dial-peer voice 11 pots description **LONG DISTANCE DIALING** destination-pattern 91.......... port 0/0/0:15 forward-digits 11 ! dial-peer voice 12 pots description **INTERNATIONAL CALLS** destination-pattern 9011T port 0/0/0:15 forward-digits all
Jul 3 09:26:31.043: %ISDN-6-DISCONNECT: Interface Serial0/1/0:9 disconnected from unknown , call lasted 0 seconds Jul 3 09:26:31.107: %ISDN-6-DISCONNECT: Interface Serial0/1/0:9 disconnected from unknown , call lasted 0 seconds
dial-peer voice 1 pots description **INBOUND DIAL PEER** incoming called-number . direct-inward-dial port 0/0/0:15 ! dial-peer voice 10 pots description **10-DIGIT LOCAL DIALING** port 0/0/0:15 forward-digits 10 ! dial-peer voice 11 pots description **LONG DISTANCE DIALING** destination-pattern 91[2-9]..[2-9]...... port 0/0/0:15 forward-digits 0 prefix 1 ! dial-peer voice 12 pots description **INTERNATIONAL CALLS** destination-pattern 9011T port 0/0/0:15 forward-digits 0 prefix 011 ! dial-peer voice 2480 voip description **OUTGOING CALLS TO SYD OVER WAN** destination-pattern 248. session protocol sipv2 session target sip-server ! dial-peer voice 5510 voip description **INCOMING CALLS FROM SYD OVER WAN** session protocol sipv2 session target sip-server incoming called-number .
dial-peer voice 3 pots description Example International Dial-Peer to the US. destination-pattern 000111T prefix 0011 port 0/0/0:15
SYD-RTR#show running-config | i translation ! voice translation-rule 1 rule 1 /248192\(...\)$/ /2\1/ ! voice translation-profile PSTN-STRIP translate called 1 ! voice-port 0/0/0:15 translation-profile incoming PSTN-STRIP
NY-RTR#show running-config | i translation voice translation-rule 1 rule 1 /2125165\(...\)$/ /5\1/ ! voice translation-profile PSTN-STRIP translate called 1 ! voice-port 0/0/0:15 translation-profile incoming PSTN-STRIP
PSTN#sh run voice translation-rule 10 rule 1 /^61[2-9]..[2-9]...../ /\0/ rule 2 /^0011\(.*\)/ /\1/ rule 3 /^[2-9]......./ /612\0/ ! voice translation-rule 30 rule 1 /^61[2-9]..[2-9]...../ /\0/ rule 2 /^0011\(.*\)/ /\1/ rule 3 /^[2-9]......./ /618\0/ ! voice translation-profile FROM_NEW_YORK translate called 20 ! voice translation-profile FROM_SYDNEY translate called 10 ! voice-port 0/0/0:15 translation-profile incoming FROM_SYDNEY ! voice-port 0/1/0:15 translation-profile incoming FROM_NEW_YORK ! dial-peer voice 1 pots incoming called-number . direct-inward-dial ! dial-peer voice 2 pots description **SYDNEY 24819XXXX** destination-pattern ^61248192... incoming called-number ^61248192... direct-inward-dial port 0/0/0:15 forward-digits 9 ! dial-peer voice 3 pots description **NEW YORK 212516XXXX** destination-pattern ^12125165... incoming called-number ^12125165... direct-inward-dial port 0/1/0:15 forward-digits 10 ! ephone-dn 2 dual-line number 31802875 secondary 61231802875 description **SYDNEY NUMBER** ! ephone-dn 4 dual-line number 2127114905 secondary 12127114905 description **NEW YORK NUMBER**
SYD-RTR#sh run ! voice translation-rule 1 rule 1 /248192\(...\)$/ /2\1/ ! voice translation-profile PSTN-STRIP translate called 1 ! voice-port 0/0/0:15 translation-profile incoming PSTN-STRIP cptone AU ! dial-peer voice 1 voip description **FROM PSTN TO CUCM** destination-pattern 2... session protocol sipv2 session target ipv4:192.168.10.5 dtmf-relay rtp-nte sip-notify codec g711ulaw ! dial-peer voice 2 pots description **INBOUND DIAL PEER** incoming called-number . direct-inward-dial port 0/0/0:15 ! dial-peer voice 3 pots description **INTERNATIONAL DIAL-PEER** destination-pattern 00011T port 0/0/0:15 prefix 0011 ! dial-peer voice 4 pots description **SYDNEY LOCAL 8-DIGIT NUMBERS** destination-pattern 0........ port 0/0/0:15 forward-digits 8
NY-RTR#sh run ! voice translation-rule 1 rule 1 /2125165\(...\)$/ /5\1/ ! voice translation-profile PSTN-STRIP translate called 1 ! voice-port 0/0/0:15 translation-profile incoming PSTN-STRIP ! dial-peer voice 1 pots description **INBOUND DIAL PEER** incoming called-number . direct-inward-dial port 0/0/0:15 ! dial-peer voice 10 pots description **10-DIGIT LOCAL DIALING** destination-pattern 9[2-9]......... port 0/0/0:15 forward-digits 10 ! dial-peer voice 11 pots description **LONG DISTANCE DIALING** destination-pattern 91[2-9]..[2-9]...... port 0/0/0:15 forward-digits 0 prefix 1 ! dial-peer voice 12 pots description **INTERNATIONAL CALLS** destination-pattern 9011T port 0/0/0:15 forward-digits 0 prefix 011