We add prefixes to splynx for identify the calls when the CDR is imported. We could also import all prefixes from a .csv file.
In Voice → Prefixes, click on add.
Complete the fields.
- Prefix - Add the prefix using the following patterns
You can use phone patterns for match phone numbers group.
Patterns are created with using special symbols.
Example pattern for Angola phone numbers:
||One digit from 0 to 9.|
||One digit from 1 to 9.|
||One digit from 2 to 9.|
||Zero or more any characters.|
||One or more any characters.|
||Number between 100 and 300. You can use any numbers instead of 100 and 300.|
||One of "123" or "456". You can use any string pattern instead of "123" and "456".|
||Phone must begin with "+28050420" and end with number from 30 to 40.|
||Phone must begin with one of "380" or "250". Then must be three digit from 0 to 9|
||Phone must begin with digit from 1 to 9. Then "3" or "4" and then two digit from 2 to 9|
||Any phone number|
Destination - Field for identify which type of destination is that prefix, like international, fixed, mobile...etc.
Rate Type - Set Call, SMS or Data.
Category ID - Select the category. Should be previously added.
Other way is to use the import tool.