cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2726
Views
0
Helpful
8
Replies

Dial-peer selection question

adil.nasser3
Level 1
Level 1

My question is how do I manipulate the voice router to use a specific set of incoming/outgoing dial-peers when a call is received to a specific DN.  For example, I want the voice router to using dial-peer 1111 to process an incoming call to x0752 but still use the main dial-peer 9000 to process calls to all the rest of the DID's in the range of 0700 - 0799.  Likewise, I want the router to utilize a specific outgoing dial-peer to send the call x0752 instead of using the main dial-peer 3001.  The reason why I want to send calls to x0752 to a specific dial-peer (1112) is because I've configured this dial-peer to point to the mobile-voice-access application which I configured in CUCM.

During my testing, I am finding that calls made to x0752 is always sent to the main dial-peer 9000 unless I shut it down in which case only then will the router use the dial-peer 1111.  I've copied the dial-peer configuration below for your reference. Your help will be greatly appreciated.

Adil Nasser

adil.nasser@owenscorning.com

dial-peer voice 3001 voip
destination-pattern 419324....
progress_ind setup enable 3
voice-class codec 1
session target ipv4:192.168.100.51
dtmf-relay h245-signal
fax-relay ecm disable
fax rate disable
no vad
!
dial-peer voice 1111 pots
translation-profile incoming inbound-voice
service mva
shutdown
incoming called-number 0752
direct-inward-dial
port 0/2/0:23
!
dial-peer voice 1112 voip
destination-pattern 0752
session target ipv4:192.168.100.51
codec g711ulaw
no vad
!
dial-peer voice 9000 pots
translation-profile incoming inbound-voice
preference 1
destination-pattern 9T
progress_ind progress enable 8
incoming called-number 07..
direct-inward-dial
port 0/2/0:23

8 Replies 8

nitsinha
Level 4
Level 4

Hi Adil,

From the configuration i see that the dial-peer 1111 is in shutdown mode which means that you cannot initiate calls to that dial peer.

Try giving a 'no shut' under dial-peer 1111 and check.

HTH

Regards

Nitesh

PS: Please rate helpful posts.

I did a no shut.  The funny thing is now dial-peer 1111 is always used even if the call is to a DN other than 0752.  I had to shut down dial-peer 1111 in order to get the voice router to use dial-peer 9000.

I need to have the voice router to always use dialpeers 9000/3001 except when receiving a call to 0752 in which case I want the voice router to use dialpeers 1111/1112.  How do I do that?

Adil

Hi adil

Try this for your inbound and outbound dial-peer as per your requirement.

For your Inbound to Pots

Incoming called Number is 0752, dial peer 1111 should match. Try this simple config in your test routers and apply.

dial-peer voice 9000 pots

incoming called-number 07..

direct-inward-dial

dial-peer voice 111 pots

incoming called-number 0752

direct-inward-dial

if multiple matches are found, the one with the longest explicit match is chosen.

For outbound calls to voip

dial-peer voice 3001 voip

destination-patter 07..

session target ipv4:

dial-peer voice 1112 voip

destination-pattern 0752

session target ipv4:

In this case, the longest-prefix rule applies and the dial peer 1112 is matched for outbound call leg.

Here is a document which contains various scenarios to verify.

http://www.cisco.com/en/US/partner/tech/tk652/tk90/technologies_tech_note09186a008010fed1.shtml

Pl rate if it helps.. Thanks

mpaneers wrote:

Hi adil

Try this for your inbound and outbound dial-peer as per your requirement.

For your Inbound to Pots

Incoming called Number is 0752, dial peer 1111 should match. Try this simple config in your test routers and apply.

dial-peer voice 9000 pots

incoming called-number 07..

direct-inward-dial

dial-peer voice 111 pots

incoming called-number 0752

direct-inward-dial

if multiple matches are found, the one with the longest explicit match is chosen.

For outbound calls to voip

dial-peer voice 3001 voip

destination-patter 07..

session target ipv4:

dial-peer voice 1112 voip

destination-pattern 0752

session target ipv4:

In this case, the longest-prefix rule applies and the dial peer 1112 is matched for outbound call leg.

Here is a document which contains various scenarios to verify.

http://www.cisco.com/en/US/partner/tech/tk652/tk90/technologies_tech_note09186a008010fed1.shtml

Pl rate if it helps.. Thanks

That is not correct. By default, both DPs will match round-robin. To have 0752 match first, you must lower preference on 07.

You can verify this with "show dialplan number 0752".

That is a very common case source of trouble.

p.bevilacqua wrote:

mpaneers wrote:

Hi adil

Try this for your inbound and outbound dial-peer as per your requirement.

For your Inbound to Pots

Incoming called Number is 0752, dial peer 1111 should match. Try this simple config in your test routers and apply.

dial-peer voice 9000 pots

incoming called-number 07..

direct-inward-dial

dial-peer voice 111 pots

incoming called-number 0752

direct-inward-dial

if multiple matches are found, the one with the longest explicit match is chosen.

For outbound calls to voip

dial-peer voice 3001 voip

destination-patter 07..

session target ipv4:

dial-peer voice 1112 voip

destination-pattern 0752

session target ipv4:

In this case, the longest-prefix rule applies and the dial peer 1112 is matched for outbound call leg.

Here is a document which contains various scenarios to verify.

http://www.cisco.com/en/US/partner/tech/tk652/tk90/technologies_tech_note09186a008010fed1.shtml

Pl rate if it helps.. Thanks

That is not correct. By default, both DPs will match round-robin. To have 0752 match first, you must lower preference on 07.

You can verify this with "show dialplan number 0752".

That is a very common case source of trouble.

I think even without preference, 0752 will be matched first.

When 0752 unavailable, call will route to 07..

I haven't tested it yet my suggestion. But I remember doing similar thing long time ago.

I think even without preference, 0752 will be matched first.

When 0752 unavailable, call will route to 07..

I haven't tested it yet my suggestion. But I remember doing similar thing long time ago.

Go ahead and try with current IOS.

Report the results here.

Hi

I have tried this configuration and it works. First match would be 0752 even without preference. You can refer the link posted in my previous thread.

Thanks.

mpaneers wrote:

Hi

I have tried this configuration and it works. First match would be 0752 even without preference. You can refer the link posted in my previous thread.

Thanks.

That is right for POTS DP, I forgot to mention that is the behaviour for POTS DP. Now, try the same for VOIP DP, eg

dial-peer voice 4 voip

destination-pattern ^[26][123]..$

session target ...

dial-peer voice 2281 voip

destination-pattern 2281

session target ...

And again do "show dialplan pattern 2281"

Which DP is matched first? Will you need "preference" on DP 4 or not ?