cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2240
Views
0
Helpful
5
Replies

dial peer configuration

edwincharles
Level 1
Level 1

hi,

i need some help in the dial peer configuration

we have created the following dial peer to call local and toll free

In local i can call the numbers starting from 1 to 7 but now we have 8 also for local so i want reconfigure so that i can call starting number with 8 also

so i changed  9[1-8]...... but it works for numbers starting with 8 but the pro is we cannot dial the toll free numbers starting 800,

your help will be highly appreciated

thankyou

edwin

voice translation-rule 1

rule 1 /^9/ /6669/

!

voice translation-rule 9

rule 1 /\(5.......\)/ /90\1/

rule 2 /^1\(......\)/ /9\1/

rule 3 /\(3.......\)/ /90\1/

rule 4 /\(4.......\)/ /90\1/

rule 6 /\(6.......\)/ /90\1/

rule 7 /\(7.......\)/ /90\1/

rule 8 /\(2.......\)/ /90\1/

!

!

voice translation-profile Phone1

translate called 1

!

voice translation-profile incoming_add_9

translate calling 9

dial-peer voice 1002 pots

corlist outgoing localcalls

description "Local Calls"

preference 1

destination-pattern 9[1-7]......

port 0/0/2

forward-digits 7

no sip-register

dial-peer voice 1057 pots

description "Saudi Arabia 800 numbers"

destination-pattern 9800.......

port 0/0/2

prefix 800

no sip-register

1 Accepted Solution

Accepted Solutions

techguy73
Level 1
Level 1

Ok Edwin, I'm sure there are several ways of achiving this, I would give this a try, I haven't tested it but am sure it's going to work.

Here is what I'd do:

***I'll keep the 1002 dial-peer as is for 1-7 without a change*******


dial-peer voice 1002 pots

corlist outgoing localcalls

description "Local Calls"

preference 1

destination-pattern 9[1-7]......

port 0/0/2

forward-digits 7

Plus, I'll add the following dial-peer for 8.

dial-peer voice 1004 pots

corlist outgoing localcalls

description "Local Calls"

preference 1

destination-pattern 9[8][^0][^0]....

port 0/0/2

forward-digits 7

***also leave the tollfree dial-peer as is without a change*****

If this helps, please rate this post.
cheers!
TG

View solution in original post

5 Replies 5

techguy73
Level 1
Level 1

Ok Edwin, I'm sure there are several ways of achiving this, I would give this a try, I haven't tested it but am sure it's going to work.

Here is what I'd do:

***I'll keep the 1002 dial-peer as is for 1-7 without a change*******


dial-peer voice 1002 pots

corlist outgoing localcalls

description "Local Calls"

preference 1

destination-pattern 9[1-7]......

port 0/0/2

forward-digits 7

Plus, I'll add the following dial-peer for 8.

dial-peer voice 1004 pots

corlist outgoing localcalls

description "Local Calls"

preference 1

destination-pattern 9[8][^0][^0]....

port 0/0/2

forward-digits 7

***also leave the tollfree dial-peer as is without a change*****

If this helps, please rate this post.
cheers!
TG

Thank you sir for your response, now i am able to dial nos. starting with 8 and the toll free 800

hi,

but i am not able dial

808.... or 870.... nos

abddandashi
Level 1
Level 1

Hello Edwin,

Hope you are doing well, you can use the below destination pattern, if yo have not used it already.

dial-peer voice 1 pots

description "For local calls that do NOT START with 8"

destination-pattern 9[1-7]......

!

!

!

!

!

dial-peer voice 2 pots

description "For local calls that START with 8 "

destination-pattern 98[1-9].....

!

!

!Keep the same destination-pattern for the 800 numbers

!

!

dial-peer voice 3 pots

description "Saudi Arabia 800 numbers"

destination-pattern 9800.......

With the Dial-peer 3 destination patterns will not overlap any more.

Good Luck!!!!!

Dear dandashi,

i am fine , hope ur  fine tooo..,

i tried this but 808xxxx, 870xxx nos dont work

but i tried the following and it worked

dial-peer voice 1001 pots

corlist outgoing localcalls

description "Local Calls"

preference 2

destination-pattern 9[1-8][^0][^0]....

port 0/0/1

forward-digits 7

no sip-register

dial-peer voice 1056 pots

description "Saudi Arabia 800 numbers"

preference 6

destination-pattern 9800.......

port 0/0/1

prefix 800

no sip-register

dial-peer voice 1005 pots

corlist outgoing localcalls

description "Local Calls"

preference 1

destination-pattern 9[1-8]0[1-9]....

port 0/0/2

forward-digits 7

no sip-register

dial-peer voice 1004 pots
corlist outgoing localcalls
description "Local Calls"
preference 1
destination-pattern 9[1-8][1-9]0....
port 0/0/2
forward-digits 7
no sip-register