Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. If you'd prefer to explore, try our test area to get started. And see here for current known issues.

New Member

destination-pattern $

Gents,

Anybody knows what is the real sense of the 'Dollar sign' value for destionation-pattern command on Cisco IOS gateways ?

Documentation, i've found recently, tells, that

1. "Dollar sign ($), which matches the null string at the end of the input string."

2. Dollar sign ($)-Disables variable-length matching. Must be

used at the end of the dial string.

Will it be matched, if i put single $ in the destination-pattern value ?

7 REPLIES
New Member

Re: destination-pattern $

Hi Tobivan Helden

There is no string with $.

New Member

Re: destination-pattern $

I have pots dial-peer that is extremely greedy and matched a lot of incoming calls to the cisco access server

dial-peer voice 1 pots

destination-pattern $

direct-inward-dial

port 3/0:D

When I change '$' to 'T' or to '.T' it is aslo matched. In fact there is no problem at all.

I just want to know, how does '$' pattern work ?

Silver

Re: destination-pattern $

Lets say you have two Dialpeer:

dial-peer voice 100 pots

destination-pattern 9000

preference 0

dial-peer voice 200 pots

destination-pattern 9000$

preference 2

In this Exampel dial peer 200 will be used to route to 9000. When u use the $ at the end, it doesnt matter if the preference is higher than dial peer 100, routing will always choose the one with the "$".

Hope this helps

Zin-Elabidine Karzazi

New Member

Re: destination-pattern $

Zin.Karzazi,

Thanks for your explanation, I didn't know it before. Nevertheless, i've got 2 questions else:

1. In what cases this algorithm can be useful ? I mean what is the necessity should be, we have to use '$' to override dial-peer selection by preference ?

2. Going back to my example:

dial-peer voice 1 pots

destination-pattern $

port 3/0:D

direct-inward-dial

Why such a peer is matched against inbound call coming from E1. As I'm concerned, destination-pattern will use ANI value to match against pattern. Let me explain my question by example:

***

Let's say, I have 2 (two) pots dial-peers:

dial-peer voice 1 pots

destination-pattern $

direct-inward-dial

port 3/0:D

dial-peer voice 2 pots

destination-pattern 5551212

direct-inward-dial

forward-digits all

***

The following is the inbound call from PRI link to that IOS gw

Dec 14 13:23:48.386: ISDN Se3/0:15 Q931: RX <- SETUP pd = 8 callref =

0x041E

Sending Complete

Bearer Capability i = 0x8090A3

Standard = CCITT

Transfer Capability = Speech

Transfer Mode = Circuit

Transfer Rate = 64 kbit/s

Channel ID i = 0xE183838B

Preferred, Interface 3, Channel 11

Progress Ind i = 0x8183 - Origination address is non-ISDN

Calling Party Number i = 0x2180, '5551212'

Plan:ISDN, Type:National

Called Party Number i = 0x91, '87771010'

Plan:ISDN, Type:International

***

while the call is active, i check its status

#sh voice call status | i 7771010

CallID CID ccVdb Port DSP/Ch Called # Codec Dial-peers

0x89D649 906 0x64010798 3/0:D.4 2000/2 7771010 g729r8 1/1111

***

as you can see, the call is matched against 1 pots.

The question is WHY

New Member

Re: destination-pattern $

up

New Member

Re: destination-pattern $

up

New Member

Re: destination-pattern $

up

372
Views
0
Helpful
7
Replies