Dialpaterns with "+" does not work - help please

Discussion in 'General' started by witekprytek, May 17, 2010.

  1. witekprytek

    Joined:
    Dec 19, 2007
    Messages:
    145
    Likes Received:
    0
    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?
     
  2. Patrick_elx

    Joined:
    Dec 14, 2008
    Messages:
    1,120
    Likes Received:
    0
    Re:Dialpaterns with

    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.
     
  3. witekprytek

    Joined:
    Dec 19, 2007
    Messages:
    145
    Likes Received:
    0
    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
     
  4. Patrick_elx

    Joined:
    Dec 14, 2008
    Messages:
    1,120
    Likes Received:
    0
    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.
     

Share This Page