Jalson International Inc.
  • Home
  • Services
    • Managed Services
    • Consulting and Professional Services
  • Contact
  • Blog

Notes to self and to help others along the way...

Cisco IOS Voice Dial-Peers Example

3/5/2017

7 Comments

 
This is an example of Dial-Peers how they are configured on an Cisco IOS Gateway which is registered to CUCM.

A rule of thumb, each call has two call-legs, hence two dial-peer have to be matched with incoming and outgoing call.

! This example assumes that PRI is being used for PSTN calls. If SIP is the service used, it would be similar dial-peers but voip and some other changes like dtmf, destination IPv4, etc.


Inbound from PSTN (Dial-peers 1 and 2 below - 2 call legs)

! Incoming Dial-Peer to receive calls from outside PSTN.

dial-peer 1 pots
 incoming called-number .  ! '.' will match any digit and any preceding digits. If this was a .$ then only one digit would be matched
​ direct-inward-dial

! Other leg of the incoming call going towards CUCM
! This dial-plan assumes that telco send 4 digit calls to the customer in the format 2XXX.
​
dial-peer 2 voip
 destination-pattern 2...$
 session target ipv4:10.1.1.2 ! CUCM IP
 dtmf-relay h245-signal

Outbound from CUCM to PSTN (Dial-peers 3 to recieve calls from CUCM and rest of dial-peers to send to PSTN - 2 call legs)

! Incoming Dial-Peer to receive calls from CUCM. 

dial-peer 3 voip
 incoming called-number .

 session target ipv4:10.1.1.2 ! CUCM IP
 dtmf-relay h245-signal

! For emergency calls

! Other leg of the outgoing call going towards PSTN - based on the number dialed. One of these will be used to call PSTN.

dial-peer 911 pots
 destination-pattern 911$ 
 no digit strip <OR> prefix 911 <OR> forward-digits 3 !Anything that is explicitly matched on POTS dial-peer is removed.     ! This isn't true for VOIP. VOIP Dial-peer doesn't remove anything that is explicitly matched.
 port 0/0/0:23 
 
! 10 digit North American calls

dial-peer 9 pots
 destination-pattern 9[2-9]XX[2-9]XXXXXX$
 port 0/0/0:23
 ! no need for any prefix or any forward digits as only number explicitly matched is 9 which we want removed as its our      ! PSTN code.
 
! 11 digit North American Long Distance calls

dial-peer 91 pots
 destination-pattern  91[2-9]XX[2-9]XXXXXX$
 prefix 1 <OR> forward-digits 11 ! 1 is being explicitly matched and we want it to go out as its our long distance code used by the PSTN.
 port 0/0/0:23

! International Calls
 
dial-peer 9011 pots
 destination-pattern 9011T ! International calls dialed with # in the end would be matched too. It would be automatically matched because of the next dial-peer. Next dial-peer is default so it isn't visible in the config.
 prefix 011 ! can't use forward-digits as we don't know the extension length that would be dialed. 
 port 0/0/0:23
 
dial-peer terminator # ! Its a default command and any call with # is already a terminator for interdigit timeout, unless changed by someone.

Note: On CUCM, in Service Parameters "Strip # Sign from Called Party Number" is "True" by Default - Meaning it would remove # as the trailing number.
7 Comments
Joint health gummies link
11/12/2024 05:22:35 am

They’re tasty and convenient, making it easy to stay consistent. I’ve had less joint pain, especially in the mornings. Gummies are a fantastic alternative for those who want easy, effective joint support.

Reply
Pearl earrings link
11/12/2024 05:30:49 am

Black pearl offers a wonderful opportunity to add something unique and luxurious to your jewelry collection. Black pearls have a mysterious charm that adds elegance to any look. With their dark tones and reflective luster, they stand out beautifully.

Reply
Uae jewellery brands link
11/12/2024 05:40:12 am

The UAE is home to many reputable jewellery brands that set trends in the industry. From high-end brands to emerging designers, these brands emphasize quality and attention to detail, with a strong focus on gold and diamond jewelry.

Reply
Sandalwood Face Mask link
11/12/2024 05:56:30 am

It’s gentle, hydrating, and gives a natural glow. The scent is absolutely calming, and my skin feels soft and fresh after using it. I’ve noticed fewer breakouts and smoother skin texture. Highly recommend it for anyone who wants a relaxing and effective mask."

Reply
White Party Dress link
11/12/2024 06:27:23 am

It’s simple yet striking, giving you an elegant and timeless look. I love how you can style it in so many ways, whether you’re going for a classy or edgy vibe. Plus, white is so versatile—you can pair it with any color accessory.

Reply
Can you plug a ps5 into a laptop link
11/12/2024 06:38:59 am

Laptops aren’t designed with HDMI input, so they can’t receive signals from the PS5. Instead, using a capture card is a practical workaround that allows you to display the PS5’s output on your laptop for gaming.

Reply
is popcorn good for diarrhea link
11/15/2024 07:22:35 am

Carbohydrate-free foods are a staple for managing weight and blood sugar levels and are found primarily in natural animal products. By understanding the options available, you can create a balanced diet that meets your health goals while ensuring adequate energy and nutrient intake.

Reply



Leave a Reply.

    Author

    Saad is a Senior Collaboration Engineer. He is CCIE x 3 (Collaboration, R&S and Data Center)
    ​

    Picture

    Categories

    All
    Cisco
    Collaboration
    IOS
    Microsoft
    Pakistan
    Politics
    Virtualization
    Webex

    Archives

    May 2022
    April 2022
    March 2022
    June 2020
    July 2018
    April 2018
    March 2018
    January 2018
    April 2017
    March 2017
    February 2017

    RSS Feed

Powered by Create your own unique website with customizable templates.
  • Home
  • Services
    • Managed Services
    • Consulting and Professional Services
  • Contact
  • Blog