PBXes (http://www1.pbxes.com/forum/index.php)
- English (http://www1.pbxes.com/forum/board.php?boardid=16)
-- Miscellaneous (http://www1.pbxes.com/forum/board.php?boardid=19)
--- (http://www1.pbxes.com/forum/threadid.php?threadid=1213497503)
Dialed number transformations
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?
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.
Powered by: Burning Board Lite 1.0.2 © 2001-2004 WoltLab GmbH
English translation by Satelk