
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-04-2014 05:09 PM - edited 03-16-2019 11:37 PM
dial-peer voice 1 pots
destination-pattern 9T
incoming called-number .
direct-inward-dial
port 0/2/0:23
We have this dial peer configured in our 2811 voice gateway at work and I don't have a full understanding of it. I understand that the destination-pattern command is used for outbound calls, so anything that matches the pattern 9T will go to port 0/2/0:23. Is this correct?
What about inbound calls? What happens when a call matches the pattern . ? Where does the call go?
As for the direct-inward-dial command, I understand that this enables the router to use the DNIS to match an outbound dial peer (going to CUCM). Is this correct?
Thank you very much for your time and I appreciate the help.
Solved! Go to Solution.
- Labels:
-
Other IP Telephony
Accepted Solutions

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-04-2014 05:55 PM
Hi,
You are correct, the destination-pattern is used to match a dial peer according to the dialed string, in this case anything beginning with 9 and with that config, the call will be sent to port 0/2/0:23.
The router selects a dial peer for a call leg by matching the string that is defined by using the answer-address, destination-pattern, or incoming called-number command in the dial peer configuration.
The "." is supported only for incoming called-number and answer-address. In your case this dial-peer can be selected as the inbound dial-peer that matches a DNIS.
An incoming dial peer configured with DID direct-inward-dial looks like this:
dial-peer voice 1 pots incoming called-number 81690 voice-port 0:D direct-inward-dial
On DID calls, also referred to as one-stage dialing, the setup message contains all the digits necessary to route the call, and the router or gateway should not do subsequent digit collection. When the router or gateway searches for an outbound dial peer, the device uses the entire incoming dial string. This matching is variable-length by default. This match is not done digit-by-digit because by DID definition, all digits have been received. This example helps clarify this concept:
Assume the DID dial-string is "81690". In this case, the router matches dial peer 4 and forwards the complete dial-string "81690".
dial-peer voice 3 voip destination-pattern 816 session target ipv4:172.22.10.1 ! dial-peer voice 4 voip destination-pattern 81690 session target ipv4:172.22.10.1For more information refer to:
http://www.cisco.com/c/en/us/td/docs/ios/12_2/voice/configuration/guide/fvvfax_c/vvfpeers.html
http://www.cisco.com/c/en/us/support/docs/voice/call-routing-dial-plans/14074-in-dial-peer-match.html#topic8
Regards,
Tere.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-05-2014 09:30 AM
Hi Randy,
A voice call comprises four call legs, two from the perspective of the originating router/gateway and two from the perspective of the terminating router/gateway. In an incoming call, the call can match this dial-peer (inbound dial-peer), but it also needs an outbound dial-peer to be routed. The Inbound dial-peer matching process is explained below and it can be matched against incoming called-number, answer-address or destination-pattern.
http://www.cisco.com/c/en/us/support/docs/voice/call-routing-dial-plans/14074-in-dial-peer-match.html#topic3
You'll be able to see the inbound and outbound dial-peer matched on a call with a debug voice ccapi in out
For example, imagine you have this:
dial-peer voice 1 pots
destination-pattern 9T
incoming called-number .
direct-inward-dial
port 0/2/0:23
dial-peer voice 10 voip
destination-pattern 1...
session target ipv4:10.0.0.1
And you receive an incoming call to 4089021001 and Telco sends the last 4 digits that match your local DNs. In this call the inbound dial-peer is dp 1 pots and the outbound is dp 10 voip. You can refer to this doc as well:
http://www.cisco.com/c/en/us/support/docs/voice/call-routing-dial-plans/12164-dialpeer-call-leg.html
Hope this helps!
Regards,
Tere.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-04-2014 05:55 PM
Hi,
You are correct, the destination-pattern is used to match a dial peer according to the dialed string, in this case anything beginning with 9 and with that config, the call will be sent to port 0/2/0:23.
The router selects a dial peer for a call leg by matching the string that is defined by using the answer-address, destination-pattern, or incoming called-number command in the dial peer configuration.
The "." is supported only for incoming called-number and answer-address. In your case this dial-peer can be selected as the inbound dial-peer that matches a DNIS.
An incoming dial peer configured with DID direct-inward-dial looks like this:
dial-peer voice 1 pots incoming called-number 81690 voice-port 0:D direct-inward-dial
On DID calls, also referred to as one-stage dialing, the setup message contains all the digits necessary to route the call, and the router or gateway should not do subsequent digit collection. When the router or gateway searches for an outbound dial peer, the device uses the entire incoming dial string. This matching is variable-length by default. This match is not done digit-by-digit because by DID definition, all digits have been received. This example helps clarify this concept:
Assume the DID dial-string is "81690". In this case, the router matches dial peer 4 and forwards the complete dial-string "81690".
dial-peer voice 3 voip destination-pattern 816 session target ipv4:172.22.10.1 ! dial-peer voice 4 voip destination-pattern 81690 session target ipv4:172.22.10.1For more information refer to:
http://www.cisco.com/c/en/us/td/docs/ios/12_2/voice/configuration/guide/fvvfax_c/vvfpeers.html
http://www.cisco.com/c/en/us/support/docs/voice/call-routing-dial-plans/14074-in-dial-peer-match.html#topic8
Regards,
Tere.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-05-2014 09:09 AM
Hello Tere,
What happens next when a DNIS matches an inbound dial peer with the incoming called-number . configuration? Where does the call get routed to? Specifically with the dial peer I stated above.
Thank you,
Randy

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-05-2014 09:30 AM
Hi Randy,
A voice call comprises four call legs, two from the perspective of the originating router/gateway and two from the perspective of the terminating router/gateway. In an incoming call, the call can match this dial-peer (inbound dial-peer), but it also needs an outbound dial-peer to be routed. The Inbound dial-peer matching process is explained below and it can be matched against incoming called-number, answer-address or destination-pattern.
http://www.cisco.com/c/en/us/support/docs/voice/call-routing-dial-plans/14074-in-dial-peer-match.html#topic3
You'll be able to see the inbound and outbound dial-peer matched on a call with a debug voice ccapi in out
For example, imagine you have this:
dial-peer voice 1 pots
destination-pattern 9T
incoming called-number .
direct-inward-dial
port 0/2/0:23
dial-peer voice 10 voip
destination-pattern 1...
session target ipv4:10.0.0.1
And you receive an incoming call to 4089021001 and Telco sends the last 4 digits that match your local DNs. In this call the inbound dial-peer is dp 1 pots and the outbound is dp 10 voip. You can refer to this doc as well:
http://www.cisco.com/c/en/us/support/docs/voice/call-routing-dial-plans/12164-dialpeer-call-leg.html
Hope this helps!
Regards,
Tere.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-05-2014 09:46 AM
Hello Tere,
Thank you for your elaborate explanation. I appreciate your time and effort in helping me out.
Take care,
Randy

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-05-2014 11:17 AM
You're welcome! Have a nice day!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-05-2014 09:38 AM
hello
kindly have a look for the below:-
http://www.cisco.com/c/en/us/support/docs/voice/call-routing-dial-plans/14074-in-dial-peer-match.html
look we have two types of calls "incoming and outgoing" .So if call comes from pstn , it will match incoming called-number under pots , and if call come from call manager it will match incoming called-number under voip dial-peer .this will be for calls from PSTN to CUCM and this will match all calls coming in on a specific port 0/2/0:23 which is used on this dial-peer 1 and "." to match all incoming calls which come from PSTN.
Thanks
please rate all useful information

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-05-2014 09:57 AM
Hi
i hope my below answer helped you.
thanks
please rate all useful inofrmation
