CID Schemes- Effective Use Strategies¶
Version 2.2.x of Caller ID Superfecta: THE MODULE provides for multiple CID Schemes.
Theory of Operation
If you have DIDs in different countries, you would create a different scheme for each country.
- create one scheme per country in which you have DIDs.
- Create additional schemes for specific/non standard DIDs when you need to use a filter to change the way the number is presented.
Some sources - such as infobel, also accept parameters such as `Default Country`.
This source does support multi country per default, but the purpose of the country option is only to recognize a phone number that would come without a country code in front.
If your DID/trunk is in one country, that's the country you need to put in this option, as your provider will present national numbers without country code.
You probably wont want to try a national number against all the infobel sources. It would take a few seconds per source and you can have false answers as the same number can be allocated in different countries.
Trunk Provided data source and CID Rules (8/11/10)
The issue with CID rules conflicting with the trunk provided lookup source has been resolved. If you are experiencing this bug, upgrade Superfecta to the latest version and update all lookup sources.When trunk provided and CID rules are used within a single scheme, this combination may produce no CNAM result. If the CID rule alters the lookup number (i.e. the rule contains a + or a |) then the trunk provided lookup source will fail.
Asterisk Phonebook and multiple schemes (8/23/10)
Individual data sources that require different CID rules for the same incoming CID can be separated into different schemes, each with different CID rules. Take this real world example: suppose you want to use the Asterisk Phonebook as a lookup source, and you have imported thousands of numbers from another source. Further suppose that the numbers are not stored consistently, they are a mix of 7 digit, 10 digit or 11 digit numbers (we are assuming North America). In this example, editing all of the phonebook numbers such that they were all the same number of digits would solve the problem, but there is an easier way. Schemes to the rescue. Scheme#1 passes the CID to the phonebook with no CID rules. Scheme#2 passes the CID to the phonebook with 7 digits only, so create CID rules that strip off the incoming local 1NPA. Scheme#3 passes CID to the phonebook with 10 digits, so create CID rules to strip off the leading 1 and also prepend your local NPA to 7 digit numbers. Scheme#4 passes CID with 11 digits, create CID rules to add the digit 1 to 10 digit numbers and 1NPA to 7 digit numbers. Basically search the same database 3 times for the same number to cover all cases. While this may seem inefficient, each search only takes milliseconds, so the time added to processing is insignificant.