cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1867
Views
5
Helpful
7
Replies

Please help me understand this dial-peer

Randy Calderon
Level 1
Level 1

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.

 

 

2 Accepted Solutions

Accepted Solutions

testeven
Cisco Employee
Cisco Employee

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.1

For 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.

 

Regards, Tere. If you find this post helpful, please rate! :)

View solution in original post

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.

 

 

 

Regards, Tere. If you find this post helpful, please rate! :)

View solution in original post

7 Replies 7

testeven
Cisco Employee
Cisco Employee

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.1

For 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.

 

Regards, Tere. If you find this post helpful, please rate! :)

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

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.

 

 

 

Regards, Tere. If you find this post helpful, please rate! :)

Hello Tere,

 

Thank you for your elaborate explanation. I appreciate your time and effort in helping me out.

 

Take care,

Randy

You're welcome! Have a nice day!

Regards, Tere. If you find this post helpful, please rate! :)

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

 

Hi

i hope my below answer helped you.

 

thanks

please rate all useful inofrmation

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: