Configuring a PSTN dialplan

In this post we are going to describe a sample dialplan that could be used with PSTN simulator in your voice lab. Let’s start by looking at the following diagram to get basic understanding of the lab topology. In the diagram YY stands for two-digit rack number, for example 01 and 02 for racks 1 and 2, and Y is the last digit of the rack number for example 1 and 2 for racks 11 and 12.
pstn-dialplan-diagram

There are three sites: HQ and BR1 are in the US and BR2 is in the UK. The PSTN router simulates a PSTN cloud with three ISDN connections. Note the dialing patterns on the diagram. The next thing to figure out is how various types of dialing patters are signaled to the PSTN are. In our case, the agreement is as follows:
  1. Local area PSTN calls are placed to 7-digit numbers at the HQ and BR1 locations, and to 8-digit numbers at BR2 location.
  2. Long-distance (national) calls at the HQ and BR1 are placed to 10-digit numbers using code “1” for toll-alert
  3. Long-distance calls at BR2 are placed to 10 digit numbers at BR2 using code “0” for toll-alert.
  4. International calls at the HQ and BR1 sites are signaled using access code “011” along with the variable length number.
  5. International calls at BR2 are placed using toll-alert code “00” and variable length number.
The above requirements provide quite a mix of different dialing patterns. What we are going to do, is configure dial-peers for full E.164 patterns corresponding to each site first, and then use translation rules to handle other types of dialing patterns, by expanding them to full E.164 numbers. Here is the configuration for E.164 numbers:
!
! Voice ports to BR1
!
voice-port 0/0/0:23

!
! Voice port to BR2
!
voice-port 0/1/0:15

!
! Voice port to HQ
!
voice-port 0/3/0:23

!
! Handle DID
!
dial-peer voice 1 pots
 incoming called-number .
 direct-inward-dial
!
! BR1 E.164
!
dial-peer voice 100 pots
 description == BR1 3123YYXXXX
 destination-pattern ^13123YY....
 port 0/0/0:23
 forward-digits 10
!
! BR2 E.164
!
dial-peer voice 200 pots
 description == BR2 232Y3YXXXX
 destination-pattern ^44232Y3Y....
 port 0/1/0:15
 forward-digits 8
!
! HQ E.164
!
dial-peer voice 300 pots
 description == HQ 7752YYXXXX
 destination-pattern ^17752YY....
 port 0/3/0:23
 forward-digits 10
Note that every pattern is unique thanks to E.164 number structure (country-code, area-code etc). Note that the PSTN router forwards 10 digits to HQ and BR1 endpoints while only 8 digits are forwarded over BR2 connection. Next we need to design the translation rules to transform various types of dialing (local, long-distance, international) to E.164 patterns. For example, look at the translation rule for BR1 site.
voice translation-rule 10
 rule 1 /^1[2-9]..[2-9]....../ /�/
 rule 2 /^011(.*)/ /1/
 rule 3 /^[2-9]....../ /1312�/
The first rule handles long-distance numbers 1-[2-9XX-[2-9]XXXXXX by simply leaving them unmodified. This maps every LD number directly to the respective E.164 pattern (HQ or BR1). Next, rule 2 handles international dialing (011 + variable string) by stripping the prefix “011” and sending the remaining E.164 number along. The last rule handles local dialing ([2-9]XX-XXXX) (dialing within BR1 area by prepending the country and area code corresponding to this location). Now look at the complete set of translation rules – note that we apply the rules directly to the respective voice-ports.
!
! BR1 translation rule
!
voice translation-rule 10
 rule 1 /^1[2-9]..[2-9]....../ /�/
 rule 2 /^011(.*)/ /1/
 rule 3 /^[2-9]....../ /1312�/

!
! BR2 translation rule
!
voice translation-rule 20
 rule 1 /^0([1-8].........)/ /441/
 rule 2 /^00(.*)/ /1/
 rule 3 /^[1-8]......./ /4423�/

!
! HQ translation rule
!
voice translation-rule 30
 rule 1 /^1[2-9]..[2-9]....../ /�/
 rule 2 /^011(.*)/ /1/
 rule 3 /^[2-9]....../ /1775�/

!
! Create voice translation profiles
!
voice translation-profile FROM_BR1
 translate called 10
!
voice translation-profile FROM_BR2
 translate called 20
!
voice translation-profile FROM_HQ
 translate called 30

!
! Apply the voice translation profiles to the voice ports
!
voice-port 0/0/0:23
 translation-profile incoming FROM_BR1
!
voice-port 0/1/0:15
 translation-profile incoming FROM_BR2
!
voice-port 0/3/0:23
 translation-profile incoming FROM_HQ
Now the final part of the PSTN router configuration – the PSTN phone. First, look at the older post which demonstrates how a PSTN router could be configured to simulate a PSTN phone using the RTP loopback feature:
Using RTP Loopback for PSTN Call Testing
However, most people prefer to register a softphone (or a hardware phone) with the PSTN router and use it to place test calls. Here is how you could do this easily. First, configure the router as CME system and allow ephones registration. Then, create ephone-dns corresponding to the patterns specified on the diagram demonstrated before. Finally, create a ephone and set its MAC-address to a value matching your setup. Note that thanks to the translation rules, you can always dial the PSTN phone numbers using their “local” (7 digits) or national (10 digits) variants.
interface Loopback0
 ip address 177.Y.254.254 255.255.255.255
!
! CME configuration
!
telephony-service
 max-ephones 10
 max-dn 20
 ip source-address 177.Y.254.254 port 2000
 create cnf-files
 max-conferences 8 gain -6
!
! Ephone-DNs
!
ephone-dn  1
 number 911 secondary 999
 description PSTN Phone
 name PSTN Phone
!
!
ephone-dn  2
 number 5YY1111 secondary 17755YY1111
!
!
ephone-dn  3
 number 2YY2222 secondary 13122YY2222
!
!
ephone-dn  4
 number 232Y3Y3333 secondary 01144232Y3Y3333
!
!
ephone-dn  5
 number 13105551234
!
!
ephone-dn  6
 number 19005550001
!
!
ephone-dn  7
 number 411 secondary 611
!
!
ephone  1
 mac-address 000C.294C.F1D4
 button  1:1 2:2 3:3 4:4 5:5 6o6,7
This final part of code completes the configuration of the PSTN router.

0 comments:

About US

Network Bulls is Best Institute for Cisco CCNA, CCNA Security, CCNA Voice, CCNP, CCNP Security, CCNP Voice, CCIP, CCIE RS, CCIE Security Version 4 and CCIE Voice Certification courses in India. Network Bulls is a complete Cisco Certification Training and Course Coaching Institute in Gurgaon/Delhi NCR region in India. Network Bulls has Biggest Cisco Training labs in India. Network Bulls offers all Cisco courses on Real Cisco Devices. Network Bulls has Biggest Team of CCIE Trainers in North India, with more than 90% of passing rate in First Attempt for CCIE Security Version 4 candidates.
  • Biggest Cisco Training Labs in India
  • More than 90% Passing Rate in First Attempt
  • CCIE Certified Trainers for All courses
  • 24x7 Lab Facility
  • 100% Job Guaranteed Courses
  • Awarded as Best Network Security Institute in 2011 by Times
  • Only Institute in India, to provide CCIE Security Version 4.0 Training
  • CCIE Security Version 4 Training available
  • Latest equipments available for CCIE Security Version 4

Network Bulls Institute Gurgaon

Network Bulls Institute in Gurgaon is one of the best Cisco Certifications Training Centers in India. Network Bulls has Biggest Networking Training and Networking courses labs in North India. Network Bulls is offering Cisco Training courses on real Cisco Routers and Switches. Labs of Network Bulls Institute are 24x7 Available. There are many coaching Centers in Delhi, Gurgaon, Chandigarh, Jaipur, Surat, Mumbai, Bangalore, Hyderabad and Chennai, who are offering Cisco courses, but very few institutes out of that big list are offering Cisco Networking Training on real Cisco devices, with Live Projects. Network Bulls is not just an institute. Network Bulls is a Networking and Network Security Training and consultancy company, which is offering Cisco certifications Training as well support too. NB is awarded in January 2012, by Times, as Best Network Security and Cisco Training Institute for the year 2011. Network Bulls is also offering Summer Training in Gurgaon and Delhi. Network Bulls has collaboration with IT companies, from which Network Bulls is offering Networking courses in Summer Training and Industrial Training of Btech BE BCA MCA students on real Live projects. Job Oriented Training and Industrial Training on Live projects is also offered by network bulls in Gurgaon and Delhi NCR region. Network Bulls is also providing Cisco Networking Trainings to Corporates of Delhi, Gurgaon, bangalore, Jaipur, Nigeria, Chandigarh, Mohali, Haryana, Punjab, Bhiwani, Ambala, Chennai, Hyderabad.
Cisco Certification Exams are also conducted by Network Bulls in its Gurgaon Branch.
Network Bulls don't provide any Cisco CCNA, CCNP simulations for practice. They Provide High End Trainings on Real topologies for high tech troubleshooting on real Networks. There is a list of Top and best Training Institutes in India, which are providing CCNA and CCNP courses, but NB has a different image from market. Many students has given me their feedbacks and reviews about Network bulls Institute, but there were no complaints about any fraud from this institute. Network Bulls is such a wonderful place to get trained from Industry expert Trainers, under guidance of CCIE Certified Engineers.

About Blog

This Blog Contains Links shared by sites: Cisco Guides, Dumps collection, Exam collection, Career Cert, Ketam Mehta, GodsComp.co.cc.

NB

NB
Cisco Networking Certifications Training

Cisco Training in Delhi

ccna training in gurgaon. ccnp course institute in gurgaon, ccie coaching and bootcamp training near gurgaon and delhi. best institute of ccna course in delhi gurgaon india. network bulls provides ccna,ccnp,ccsp,ccie course training in gurgaon, new delhi and india. ccsp training new delhi, ccie security bootcamp in delhi.

Testimonials : Network Bulls

My Name is Rohit Sharma and i Have done CCNA and CCNP Training in Gurgaon Center of Network Bulls and it was a great experience for me to study in Network Bulls.

Cisco Networking Certifications

Myself Komal Verma and i took CCSP Training from Network Bulls in Gurgaon. The day i joined Network Bulls, the day i get addicted with Networking Technologies and I thank Mr. Vikas Sheokand for this wonderful session of Networking. :)
I must say that Network Bulls is Best Institute of CCNA CCNP CCSP CCIE Course Training in Gurgaon, New Delhi and in India too.
Komal Verma

About a wonderfull CCIE Training Institute in Gurgaon

I am Kiran shah from New Delhi. I have recently completed my CCNA CCNP & CCIE Training in Gurgaon from Network Bulls and i recommend Network Bulls for Cisco Training in India.

Kiran Shah

Cisco Coaching and Learning Center

Disclaimer: This site does not store any files on its server. I only index and link to content provided by other sites. If you see any file on server that is against copy right you can inform me at (sidd12341 [at] gmail.com). I will delete that materials within two days. This Website is not official Website of any Institute like INE, Network Bulls, IP Expert. Thanks

CCIE Security Version 4

Cisco Finally updated CCIE Security Lab exam blueprint. WSA Ironport and ISE devices are added in CCIE Security Version 4 Lab Exam Syllabus Blueprint. In Updated CCIE Security Version 4 Syllabus blueprint, new technologies like Mobile Security, VoIP Security and IPV6 Security along with Network Security, are added. As in CCIE Security Version 3 blueprint, Cisco had focused on Network Security only, but now as per market demand, Cisco is looking forward to produce Internet gear Security Engineer, not only Network Security engineers.
In CCIE Security Version 4 Bluerpint, Lab Exam is going to be more interested than before. What is Difference in CCIE Security Version 3 and Version 4? Just go through the CCIE Security Version 4 Lab Equipment and Lab Exam Syllabus Blueprints and find out!