Jump to content

cphtdk

Members
  • Posts

    29
  • Joined

  • Last visited

Posts posted by cphtdk

  1. You can use

    Pattern: ^0([2-9][0-3][0-9]{6})@.*

    Replacement: sip:0\1@\r;user=phone

     

    The above is very specific to your example. It translates to "start matching from the beginning of the dialed number, first digit 0, second digit anything between 2-9, 3rd digit anything between 0-3, then followed by 6 digits between 0-9"

     

    Thank you for the hint.

     

    I ended up adding all these lines to cover all of the above prefixes:

    ^0([2][0-9]{7})@.*

    ^0([3-6][0-1][0-9]{6})@.*

    ^0([4-5][3][0-9]{6})@.*

    ^0([5][3][0-9]{6})@.*

    ^0([7-9][1][0-9]{6})@.*

     

    Quite a complicated setup...

     

    /Thomas

  2. Hi,

     

    I would like to specify a specific trunk for mobile phones.

    The mobilephone prefixes are as follows:

    020xxxxxx

    030xxxxxx

    031xxxxxx

    040xxxxxx

    041xxxxxx

    042xxxxxx

    050xxxxxx

    051xxxxxx

    052xxxxxx

    053xxxxxx

    060xxxxxx

    061xxxxxx

    071xxxxxx

    081xxxxxx

    091xxxxxx

     

    In Asterisk this would actually be the dialplan, but i cannot figure it out in Snom.

    Would there be an easy way to do this?

     

    The 2 range I can get working with 0([2][0-9]{7})@.*

    but why whould the 30/31 range not be matched by 0([3][0-1]{7})@.*

    I don't get it....

     

    Brgds

    Thomas Jensen

  3. Hi,

     

    Who recorded the original messages (Danish and US English)? We need more custom messages.

     

    Also there seems to be an error in all languages other than English.

    I.e. in Danish it says "For English press..." it makes no sense if English is already selected. It should say "For Danish press..." to toggle between the different language options.

     

    Best Regards

    Thomas

×
×
  • Create New...