Dial peer Example

Here is an Example of dial peer , using French dial plan

Our Example will be applied for a CME single site

Suppose we have PSTN number 0467495140 to 0467495145   and from 0467493140 to 0467493149

The DID number are the last 4 digits 5640 to 5645  and from 3140 to 3145

The internal numbers are from 100 up to 105  and from 300 up to 305

We will attribute each user a DID number to be reachable from PSTN

PSTN                     Internal Number
5640                      100
5641                      101
5642                      102
5643                      103
5644                      104
5645                      105
PSTN                     Internal Number
3140                      300
3141                      301
3142                      302
3143                      303
3144                      304
3145                      305

Call Flow :

PSTN >>>>Callmanager Express >> >>IP phone

Card: we will be using BRI Cared  , but the same can be applied for E1 or T1 cards

The rule says each call leg must have its incoming dial peer

With this call flow we have 2 call legs

·         Outgoing from the PSTN’s Gateway

·         Incoming to our Gateway

PSTN Gateway >>>>>>>outgoing leg   <<<<<>>>>>> incoming leg >>>>>our Gateway

Our gateway must have dial peer for outgoing calls , and for incoming calls

As we use BRI card , this is going to be a pots dial peer for both outgoing and incoming  calls or call legs

Voip dial peer are used if we send or get the call via  MGCP , SIP , H323 , etc …  , in this case the call leg will be established through the network (incoming or outgoing)

!! this translation rule will ADD 00 or 000 the the incoming number the will help user to redial the number from the history menu
!!The received number by QSIG has no leading Zero , the user will have to compose Zero for outside  calling and another Zero for national numbers
!!National number are composed of 9 digits
!!everything more than 9 digits will be considered as international number
!!international number will get another 0
!!The “\” is used as an escape character
!! values within the () are consider as variable that can be used in the second part of the translation rule
!!the first variable will be called by using the number 1

voice translation-rule 1
!!to be used for incoming  national calling numbers
rule 1 /\(.........\)/ /00\1/ type any unknown plan any unknown
to be used for incoming international  calling number
rule 2 /\(.*\)/ /000\1/ type any unknown plan any unknown
!
!!this rule will translated the DID  number to the internal number when it is an incoming call
voice translation-rule 2
rule 1 /5640/ /100/ type any unknown plan any unknown
rule 2 /5641/ /101/ type any unknown plan any unknown
rule 3 /5642/ /102/ type any unknown plan any unknown
rule 4 /5643/ /103/ type any unknown plan any unknown
rule 5 /5644/ /134/ type any unknown plan any unknown
rule 6 /5645/ /135/ type any unknown plan any unknown
rule 7 /3140/ /300/ type any unknown plan any unknown
rule 8 /3141/ /301/ type any unknown plan any unknown
rule 9 /3142/ /302/ type any unknown plan any unknown
rule 10 /3143/ /303/ type any unknown plan any unknown
rule 11 /3144/ /304/ type any unknown plan any unknown
rule 12 /3145/ /305/ type any unknown plan any unknown

!! this will display the DID number when making outgoing call it is going the be the calling number
voice translation-rule 3
rule 1 /100/ /467495140/ type any unknown plan any unknown
rule 2 /101/ /467495140/ type any unknown plan any unknown
rule 3 /102/ /467495140/ type any unknown plan any unknown
rule 4 /103/ /467495140/ type any unknown plan any unknown
rule 5 /104/ /467495140/ type any unknown plan any unknown
rule 6 /105/ /467495140/ type any unknown plan any unknown
rule 7 /300/ /467493140/ type any unknown plan any unknown
rule 8 /301/ /467493141/ type any unknown plan any unknown
rule 9 /302/ /467493142/ type any unknown plan any unknown
rule 10 /303/ /467493143/ type any unknown plan any unknown
rule 11 /304/ /467493144/ type any unknown plan any unknown
rule 12 /305/ /467493145/ type any unknown plan any unknown

!!the will strip the Zero from the outgoing called number
voice translation-rule 4
rule 1 /^0\(.*\)/ /\1/ type any unknown plan any unknown
!!this profile will be used for incoming call leg

voice translation-profile from_pstn
translate calling 1
translate called 2

!!this profile will be used for outgoing call leg

voice translation-profile to_pstn
translate calling 3
translate called 4

!!incoming call leg for first DID group
dial-peer voice 10  pots
description incoming calls from PSTN
translation-profile incoming from_pstn
incoming called-number 564[0-5]
direct-inward-dial

!!incoming call leg for second DID  group

dial-peer voice 10  pots
description incoming calls from PSTN
translation-profile incoming from_pstn
incoming called-number 314[0-5]
direct-inward-dial

!!National outgoing call leg
dial-peer voice 100 pots
description all national outgoing calls –no restrictions
translation-profile outgoing to_pstn
destination-pattern 00T
progress_ind alert enable 8
progress_ind progress enable 8
progress_ind connect enable 8
direct-inward-dial
port 0/0/0
forward-digits all

!!International  outgoing call leg
dial-peer voice 101 pots
description all International outgoing calls –no restrictions
translation-profile outgoing to_pstn
destination-pattern 000T
progress_ind alert enable 8
progress_ind progress enable 8
progress_ind connect enable 8
direct-inward-dial
port 0/0/0
forward-digits all

Advertisements
This entry was posted in CallManager Express and tagged , . Bookmark the permalink.

One Response to Dial peer Example

  1. Anonymous says:

    good

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s