Jump to content

Recommended Posts

Posted

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.

Posted

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.

Posted
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.

Posted
10-digit numbers

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

 

Pattern: 0xxxxxxxxx

Replacement: 0031*

 

7-digit numbers

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

 

Pattern: xxxxxxx

Replacement: 003120*

Posted
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.

Posted
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.

Posted
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.

 

This one is working perfect :unsure: Thanks.

  • 11 months later...
Posted

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

Posted
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.

  • 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.

×
×
  • Create New...