PBXes » English » Miscellaneous »
Print Page | Recommend to Friend | Add Thread to Favorites
Post New Thread Post Reply
Author
Post « Previous Thread | Next Thread »
dor


Registration Date: 01.01.1970
Posts:

Dialed number transformations Post Reply with Quote Edit/Delete Post Report Post to a Moderator       IP Information Go to the top of this page

I noticed that dial plans allow either removing or adding a prefix to or from the dialed number.

Can I do both at the same time, as it's possible in other systems? For example, in my case transformation from local number format to e164 standard takes removing leading zero and adding the country code. Can it be done in PBXes?

What about more complex transformations, such as replace a part of the number in the middle?

15.06.2008 04:38 doronin is offline Search for Posts by doronin Add doronin to your Buddy List
bob


Registration Date: 01.01.1970
Posts:

Post Reply with Quote Edit/Delete Post Report Post to a Moderator       IP Information Go to the top of this page

My sip provider demands dialing 00+countrycode.

I have a user that wants to dial without contry code.

In trunks under dial rules I setup this:

0031+0|Z.

the user dials a dutch number say 020-123456

What the above does is strip the first 0 and replace it by 0031

the Z is a number from 1till 9 so when you dial 0 and a number from 1 till 9 it gets activated.

When you dial 00 it does not get activated.

It's easy to do this with number at the start.

So if you want to strip the first number and replace it by a country code in dial rules in trunks typ:

countrycode in numbers+0|Z.

the + after country code means adding the country code.
0| means removing the 0
Z. means it expects a number from 1-9 after the 0
. matches one or more characters after the Z


As far as I know removing a number in the middle is not possible. When typing | everything before the | is removed, only when before that the is a + this means the numbers before the + are added.

The only what you can strip a number say at position 4 is when the first 3 are always the same.
For example 0123456789 you want to strip the 3 and replace it by 99.
The dial rule would be 012399+0123|Z.

But if say the first 3 digits are different evry time I don't think it's possible.

This post has been edited 1 time(s), it was last edited by bob on 15.06.2008 at 12:33.

15.06.2008 12:22 bobmats is offline Search for Posts by bobmats Add bobmats to your Buddy List
 
Post New Thread Post Reply
Go to:

Powered by Burning Board Lite 1.0.2 © 2001-2004 WoltLab GmbH
English Translation by Satelk