rdevrede Posted July 25, 2008 Report Posted July 25, 2008 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. Quote
Pradeep Posted July 25, 2008 Report Posted July 25, 2008 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. Quote
rdevrede Posted July 26, 2008 Author Report Posted July 26, 2008 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. Quote
Vodia PBX Posted July 26, 2008 Report Posted July 26, 2008 10-digit numbersfor e.g. 0101234567 -> 0031101234567 (leave the 0, prefix 0031*) Pattern: 0xxxxxxxxx Replacement: 0031* 7-digit numbersfor e.g. 1234567 -> 0031201234567 (prefix 003120*) Pattern: xxxxxxx Replacement: 003120* Quote
rdevrede Posted July 28, 2008 Author Report Posted July 28, 2008 Pattern: 0xxxxxxxxxReplacement: 0031* Pattern: xxxxxxx Replacement: 003120* Wow... that's easy... if you know it. Thanks for the fast reply. Quote
rdevrede Posted July 28, 2008 Author Report Posted July 28, 2008 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. Quote
Vodia PBX Posted July 28, 2008 Report Posted July 28, 2008 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. Quote
rdevrede Posted July 30, 2008 Author Report Posted July 30, 2008 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 Thanks. Quote
rdevrede Posted July 13, 2009 Author Report Posted July 13, 2009 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... Quote
Vodia PBX Posted July 13, 2009 Report Posted July 13, 2009 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. Quote
rdevrede Posted August 10, 2009 Author Report Posted August 10, 2009 I had no country or area code entered. Quote
Recommended Posts
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.