Dialpaterns with "+" does not work - help please

witekprytek

Joined
Dec 19, 2007
Messages
145
Likes
0
Points
0
#1
I need to add 0 before each outgoing 9 digits number. I have added something like this in otbound route dialrules:
0+ZXXXXXXXX
0.
9|

In trunk definition in dialrules definition I have something like this:

9.
0Z.

It should add 0 before each 9 digits number but does not.

Elastix 1.6.2-1

Any suggestions?
 

Patrick_elx

Joined
Dec 14, 2008
Messages
1,120
Likes
0
Points
0
#2
Re:Dialpaterns with

witekprytek said:
Any suggestions?
Probably the usual mistake of confusing
outbound route dial pattern
with
trunk dial rule

A dial pattern does not accept the + operator.
It's only here to match a pattern, and if needed to remove (|) some routing pre dial numbers before sending it to one of the selected trunk.

A dial rule, is there to change the number to make it match your specific trunk requirements. You can add (+) and remove (|) digits.
 

witekprytek

Joined
Dec 19, 2007
Messages
145
Likes
0
Points
0
#3
Re:Dialpaterns with

Patrick_elx - of course you are right :)
It was my mistake - I have changed configuration to remove any "+" in outbounnd route configuration and add it to the trunk config dial rule.

So now I have in outbound route dial pattern:
ZXXXXXXXX
9Z.
0Z.

and in trunk dial rule
9|0+ZXXXXXXXX
0+ZXXXXXXXX
0Z.

and it seems to work OK now
 

Patrick_elx

Joined
Dec 14, 2008
Messages
1,120
Likes
0
Points
0
#4
Re:Dialpaterns with

if your 9 is only an internal prefix, you can also remove it in the outbound dial pattern if you want.

When you have only one trunk it does not really matter where you are doing what. But when you have multiple trunks it will save you some headache to have a clear picture of what you want to do and where.
 

Members online

No members online now.

Latest posts

Forum statistics

Threads
30,902
Messages
130,886
Members
17,563
Latest member
dineshr
Top