RE: num-exp example

From: Scott Morris (swm@emanon.com)
Date: Sat Dec 27 2003 - 02:37:04 GMT-3


Any time a number comes in that needs to be matched (which would be any
time your router is setting up a call voip or pots), then the number
that comes in will be matched "macro" to any num-exp before being
matched to a destination pattern.

Use your "show dialplan number" command to see what will happen each
time. Think like the router does and things will become much more
apparent! Make use of your debug voice commands as well to assist
(albeit a bit wordy) in seeing exactly what the router is doing or not
doing!

Scott

-----Original Message-----
From: nobody@groupstudy.com [mailto:nobody@groupstudy.com] On Behalf Of
Pun, Alec CL
Sent: Saturday, December 27, 2003 12:06 AM
To: Keyur Shah; 'swm@emanon.com'; ccielab@groupstudy.com
Subject: RE: num-exp example

thanks all.
 
Can anyone confirm if num-exp takes place for intra-router calls ?
Regarding the doccd example, I've added a second dial-peer. What will
happen if a user dials 2124 ? Will it get translated ? Sorry that I
don't have any voice equipment to try.
 
rgds,
alec
 
num-exp 2... 5552...
dial peer voice 1 pots
 destination pattern 2123

dial peer voice 2 pots
 destination pattern 2124

 

 

-----Original Message-----
From: Keyur Shah [mailto:kshah@hellocomputers.com]
Sent: Saturday, December 27, 2003 11:14 AM
To: 'swm@emanon.com'; Keyur Shah; Pun, Alec CL; ccielab@groupstudy.com
Subject: RE: num-exp example

Oh I see the confusion after rereading the posts. Num-exp will expand
digits first and then will match outbound dial peer. Ofcourse. That's
what I had in my example. However inbound dial peer must be matched for
incoming calls and if num-exp is configured it is applied globally to
all dial peers and therefore digit manipulation will occur and the
expanded digits will need to match outbound dial peer. Reading in
context of the post it was missing outbound dial peers and hence might
be confusing to Alec. No worries.

-Keyur Shah-
QUAD CCIE# 4799 (Voice; Service Provider; Security; R/S)
CCSI, CISSP, Check Point CCSE Plus, MCSE
http://www.hellocomputers.com <http://www.hellocomputers.com>
"Say Hello To Your Future!"
1.877.79.HELLO
Hall of Fame@
http://www.hellocomputers.com/hellofame.html
<http://www.hellocomputers.com/hellofame.html>

-----Original Message-----
From: Scott Morris [ mailto:swm@emanon.com <mailto:swm@emanon.com> ]
Sent: Friday, December 26, 2003 3:52 PM
To: 'Keyur Shah'; 'Pun, Alec CL'; ccielab@groupstudy.com
Subject: RE: num-exp example

Keyur,

Congrats on passing your Voice IE.... Welcome to the world of four. :)

However, I'm going to have to make you look back at your posting
here.... The destination pattern in a dial peer matches your EXPANDED
(eg. POST
num-exp) number. So when a phone dials digits, or digits come in, the
num-exp happens first in terms of pattern matching. Then the
destination patterns in order to pass the number someplace else will
occur.

If you wish to manipulate your digits on the way to your Call Manager
(or other peer) after matching a dial peer's destination-pattern, you
will need to use the translation rules.

Take a look at the output from your debug commands and watch which part
gets matched on the way out, and you will find it is the
destination-pattern only after num-exp has taken place... The same thing
will be shown by using the 'show dialplan number (#)' where it first
lists the "Macro Exp" for your new expanded number, and then the dial
peers that are matched.

In the example that you gave, you did follow that same logic (dest
pattern 2... Is the POST translated address from num-exp command). Most
likely too much eggnog!

Otherwise, congrats! :)

Scott Morris, CCIE4 (R&S/ISP-Dial/Security/Service Provider) #4713,
CISSP, JNCIS, et al. IPExpert CCIE Program Manager IPExpert Sr.
Technical Instructor swm@emanon.com/smorris@ipexpert.net

http://www.ipexpert.net <http://www.ipexpert.net>

-----Original Message-----
From: nobody@groupstudy.com [ mailto:nobody@groupstudy.com
<mailto:nobody@groupstudy.com> ] On Behalf Of Keyur Shah
Sent: Friday, December 26, 2003 5:49 PM
To: 'Pun, Alec CL'; ccielab@groupstudy.com
Subject: RE: num-exp example

Alec,

Num-exp digit manipulation takes place after matching dial peer.
Therefore dial peer must match first for inbound call leg and then
num-exp digit manipulation will take place. In first example dialed
digits are 2123, whereas in 2nd example received digits are 2123.

Say for example PSTN is sending you 10 digits and your incoming
dial-peer is configured with incoming called-number . It will match that
dial peer and let's say your voip dial peer is configured for session
target to CM with 2... Destination pattern, then you will need to use
num-exp 4084962... 2... ! Dial-peer voice 100 voip destination-pattern
2... Session target ipv4:CM_IP_Address !

-Keyur Shah-
QUAD CCIE# 4799 (Voice; Service Provider; Security; R/S)
CCSI, CISSP, Check Point CCSE Plus, MCSE http://www.hellocomputers.com
<http://www.hellocomputers.com> "Say Hello To Your Future!"
1.877.79.HELLO Hall of Fame@
http://www.hellocomputers.com/hellofame.html
<http://www.hellocomputers.com/hellofame.html>

-----Original Message-----
From: Pun, Alec CL [ mailto:Alec.CL.Pun@pccw.com
<mailto:Alec.CL.Pun@pccw.com> ]
Sent: Thursday, December 25, 2003 2:57 AM
To: ccielab@groupstudy.com
Subject: num-exp example

Hi group,

The following examples are copied from Voice configuration guide. Isn't
that the destination pattern should be the expanded number ?

thanks
alec

Using a simple telephony-based example, suppose that John works in a
company where employees extensions are reached by dialing the last four
digits of the full E.164 telephone number. The E.164 telephone number is
555-2123; John's extension number is 2123. Suppose that every employee
on John's floor has a telephone number that begins with the same first
four digits: 5552. You could define each dial peer's destination pattern
using each extension number, and then use number expansion to prepend
the first four digits onto the extension. In this example, the router
could be configured as follows:

num-exp 2... 5552...
dial peer voice 1 pots
 destination pattern 2123

Number expansion can also be used to replace a dialed number with
another number, as in the case of call forwarding. Suppose that for some
reason, John needs to have all of his telephone calls forwarded to
another number, 555-6611. In this example, you would configure the
router as follows:

num-exp 2123 5556611
dial peer voice 1 pots
 destination pattern 2123



This archive was generated by hypermail 2.1.4 : Sat Jan 03 2004 - 08:25:45 GMT-3