Manual voipswitch
Página 1 de 6
Prefixes
7 Added by Michal, last edited by Michal on Aug 01, 2008
Prefixes are strings normally built from digits butthey can also have some characters. They can be modified in different ways. Below is alist of available ways to modify them: • • • • • adding characters at the begining removing matching characters from thebegining adding characters at the end validating length of prefix being sent replace prefix sent from aclient with explict value
Examples of use • • • • • Removing leading zeros from dialed number Adding zeros to dialled number Change gateway for the same country depending from client calling Redirect all calls from client to Voipbox scenario Advanced number manipulation
Such conversionscan be used separately or together. Prefixes can be modifed directly or through helping dialog. You can find the helping dialogafter clicking the button near the rule definition textbox.
After clicking this button the helping pop-up window will help you create the rules.
http://docs.voipswitch.com:8080/display/VDoc/Prefixes
20/04/2010
Prefixes - VoipSwitch documentation - ConfluencePágina 2 de 6
Helping window allows to set informations: • • Forward from client is equivalentto an empty prefix field and it will forward to prefix exactly how it was received from client. • • Always send will fill the prefix field in the format !123 where 123 is the number desired to be sent. That meansthe entire prefix received from client will be always substituted with value you definehere. • • Change will fill the prefix field in the format "X->Y|Z" where X is the prefix field from the helping window, Y is the change to field and Z is the suffix. It means that if the prefix received from client starts with X then replace it with Y and add Z at the end of theentire prefix. • prefix - value defined in this field will be replaced with value set as to. If prefixdoes not matchthe begining of number no action will be taken. To remove first characters from number sent to should be empty and then prefix will be replaced with empty - in face removed. • to - value which will be added the begining of number. It will be added only when prefix field is empty. If not value from prefix will be replaced with this value. • add sufix - it will add this value at the end of thesentnumber. •
http://docs.voipswitch.com:8080/display/VDoc/Prefixes
20/04/2010
Prefixes - VoipSwitch documentation - Confluence
Página 3 de 6
• Required number length - lets the user define a required string length that will be accepted by VoipSwitch. In a scenario when the string does not meet the defined requirements such call will be rejected. It can be used to allow only calls ofvalid length or from valid callers id to be processed. Examples of modyfing prefixes
Removing leading zeros from dialed number
example 1
Adding zeros to dialled number
example 2
Change gateway for the same country depending from client calling
example 3
Redirect all calls from client to Voipbox scenario
example 4
Advanced number manipulation
It is possibleto manipulate dialednumber in an advanced way. You may add, remove or change aplace of every digit or set of digits. Rules: • incoming number can be split into parts (named s1, s2, s3 ...) Illustration
As you can see number 48600789456 is split into 3 exemplary parts. • every part of incoming number has fixed length (defined as : s1{4}, s2{3}, s3{1}, ...) • split parts of incoming number has to cover all digits ofincoming number (either more or less) Illustration
http://docs.voipswitch.com:8080/display/VDoc/Prefixes
20/04/2010
Prefixes - VoipSwitch documentation - Confluence
Página 4 de 6
As you can see exemplary split is not covering all digits, so can't be used. • transformed number doesn't have to contain all split parts of incoming number. • transformed number doesn't have to use whole...
Regístrate para leer el documento completo.