Dial patterns

Discussion in 'General' started by jeffik, Feb 22, 2010.

  1. jeffik

    Joined:
    Feb 17, 2009
    Messages:
    43
    Likes Received:
    0
    Hello All,
    I am trying to create a dial pattern. I have read the tutorials and tried several variations. We are trying to use a provider in Bulgaria (country 359). In Canada we dial 011 just like the US. So when somebody dials 01359xxxxxxxxx, I want to send out 0xxxxxxxxx. I put 9 x as this is the number of digits for a cell phone.
    I put this in the dial pattern:
    011359|X.
    0+X.
    When I reload it appears like this:
    0+X.
    011359|X.

    and it doesn't work.

    BTW, there are no dial patterns in trunk.

    Does anybody have any ideas?

    Thank you in advance.

    Jeff in Toronto
     
  2. Patrick_elx

    Joined:
    Dec 14, 2008
    Messages:
    1,120
    Likes Received:
    0
  3. Patrick_elx

    Joined:
    Dec 14, 2008
    Messages:
    1,120
    Likes Received:
    0
    If you want to transform the 01359xxxxxxxxx in 0xxxxxxxxx you will have different options.

    I would suggest to do the following:

    in your dial pattern (the outbound route), just put pattern like the ones used by your users (do not substract any number from it). It's just for routing towards the right trunk.

    in you dial rules (trunk), put in each one the proper changes that need to be made depending on the specifics of your provider, and remove any route overriding prefix that you may have created.

    Then for your Bulgaria trunk use the following:

    outbound route dial pattern 011359.
    trunk dial rule: 011359|0+xxxxxxxxx

    then if you have a backup trunk that needs the whole number instead, you will still have it available.

    I would also suggest to let user dial 00 in addition to 011 as many other countries are using it too.

    Just add then
    outbound route dial pattern 00359.
    trunk dial rule: 00359|0+xxxxxxxxx
     
  4. jeffik

    Joined:
    Feb 17, 2009
    Messages:
    43
    Likes Received:
    0
    Thanks Patrick,i read the link you showed in your first reply. I was lost. So thanks for this one. Still reading.
     
  5. ElasMex

    Joined:
    Oct 22, 2007
    Messages:
    493
    Likes Received:
    0
    Hello Patrick_elx

    Thank you very much for your post

    He helped me with a question I had in the dial plan.

    Greetings
     
  6. Aussie Pho Bro

    Joined:
    Jul 12, 2010
    Messages:
    3
    Likes Received:
    0
    Dial Patterns vs. Dial Rules - dont get them mixed up.

    Yes. You need to be really clear:

    Outbound Routes are there to match what your users are actually dialling.
    That is the Dial Pattern.

    The Trunks's Dial Rules are there so that you can modify the user's input if it is not in the right format for termination/connection.

    Full points to Patrick_elx: that is a very good post to begin at ...
    http://www.freepbx.org/support/document ... dial-rules
     

Share This Page