Jump to content

Help with dialplan please (numbers and domain)


rdevrede
 Share

Recommended Posts

Hi. I tried to understand it by reading manual and wiki but I can't.

 

What I want is :

 

10-digit numbers

 

for e.g. 0101234567 -> 0031101234567 (leave the 0, prefix 0031*)

 

7-digit numbers

for e.g. 1234567 -> 0031201234567 (prefix 003120*)

 

How do I do this?

 

Thanks in advance.

Link to comment
Share on other sites

Follow these steps

 

1. Create a trunk first

2. On the dial plans page, create a new dial plan

3. Edit the newly created dial plan

4. Enter some number on the 'pref', select the trunk name (from step 1), then use 0* for pattern, use 0031* for the replacement.

 

Hope this helps

 

 

Hi. I tried to understand it by reading manual and wiki but I can't.

 

What I want is :

 

10-digit numbers

 

for e.g. 0101234567 -> 0031101234567 (leave the 0, prefix 0031*)

 

7-digit numbers

for e.g. 1234567 -> 0031201234567 (prefix 003120*)

 

How do I do this?

 

Thanks in advance.

Link to comment
Share on other sites

Follow these steps

 

1. Create a trunk first

2. On the dial plans page, create a new dial plan

3. Edit the newly created dial plan

4. Enter some number on the 'pref', select the trunk name (from step 1), then use 0* for pattern, use 0031* for the replacement.

 

Hope this helps

 

Thanks for the fast reply.

 

This will not work.

 

if they call 0101234567 the dialplan will call 0031101234567

 

if they call 0019129876543 (international number usa) it will call 0031019129876543 (which doesn't exist, it's an american number prefixed with a dutch country id)

 

And how to work with 1234567 ? Your dialplan will do anything. I need 1234567 be converted in 0031431234567 (prefix 003143*)

 

I hope someone can help me out.

 

It's something with /0 or (0,/0) I don't understand.

 

Thanks in advance.

Link to comment
Share on other sites

Wow... that's easy... if you know it. Thanks for the fast reply.

 

It does work for xxxxxxx -> 003120*

 

but it doesn't work for 0xxxxxxxx -> 0031*

 

I think because it doesn't strip the 0 in front.

 

Now the dialplan calls 00310xxxxxxxxx, correct? It should be 0031xxxxxxxxx. (without the 0)

 

How do I do that?

 

Thanks.

Link to comment
Share on other sites

but it doesn't work for 0xxxxxxxx -> 0031*

 

I think because it doesn't strip the 0 in front.

 

Now the dialplan calls 00310xxxxxxxxx, correct? It should be 0031xxxxxxxxx. (without the 0)

 

How do I do that?

 

Hmm, you can always use the ERE - in this case the pattern ^0([0-9]{8})@.* seems to be appropriate. The alternative you be 0*, but then the length of the number behind the 0 is not fixed to 8.

Link to comment
Share on other sites

  • 11 months later...

I don't know what happened but ^0([0-9]{8})@.* isn't working anymore.

 

The user wants to dial : 020 5491212 (existing number)

 

Has to be converted into 0031205491212

 

if an user calls 030 1122334 (example, non existing)

 

Has to be converted into 0031301122334

 

Thanks in advance...

Link to comment
Share on other sites

I don't know what happened but ^0([0-9]{8})@.* isn't working anymore.

 

The user wants to dial : 020 5491212 (existing number)

 

Has to be converted into 0031205491212

 

if an user calls 030 1122334 (example, non existing)

 

Has to be converted into 0031301122334

 

Keep in mind that the PBX now converts the number into the respective country code format. If the area code it set, it takes it out if the dialled number is the same.

Link to comment
Share on other sites

  • 4 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...