Add, Remove, Enable, Disable, Sort and Configure data sources as appropriate for your situation.

Select which data source(s) to use for your lookups, and the order in which you want them used:

{loop="sources"} {/loop}
        Data Source Name Disabled Enabled
    {if condition="$value.show_link === TRUE"}{/if}{$value.pretty_source_name}{if condition="$value.show_link === TRUE"}{/if}{$value.description}


Scheme Name:Duplicate Scheme names not allowed.

General Options
DID RulesDefine the expected DID Number if your trunk passes DID on incoming calls.

Leave this blank to match calls with any or no DID info.

This rule trys both absolute and pattern matching (eg "_2[345]X", to match a range of numbers). (The "_" underscore is optional.)
:
CID RulesIncoming calls with CID matching the patterns specified here will use this CID Scheme. If this is left blank, this scheme will be used for any CID. It can be used to add or remove prefixes.
Many sources require a specific number of digits in the phone number. It is recommended that you use the patterns to remove excess country code data from incoming CID to increase the effectiveness of this module.
Note that a pattern without a + or | (to add or remove a prefix) will not make any changes but will create a match. Only the first matched pattern will be executed and the remaining rules will not be acted on.

Rules:
X    matches any digit from 0-9
Z    matches any digit from 1-9
N    matches any digit from 2-9
[1237-9]  matches any digit or letter in the brackets (in this example, 1,2,3,7,8,9)
.    wildcard, matches one or more characters (not allowed before a | or +)
|    removes a dialing prefix from the number (for example, 613|NXXXXXX would match when some one dialed "6135551234" but would only pass "5551234" to the Superfecta look up.)
+    adds a dialing prefix to the number (for example, 1613+NXXXXXX would match when someone dialed "5551234" and would pass "16135551234" to the Superfecta look up.)

You can also use both + and |, for example: 01+0|1ZXXXXXXXXX would match "016065551234" and dial it as "0116065551234" Note that the order does not matter, eg. 0|01+1ZXXXXXXXXX does the same thing.
:
   
Lookup TimeoutSpecify a timeout in seconds for each source. If the source fails to return a result within the alloted time, the script will move on.
Superfecta Processor These are the types of Superfecta Processors:
{loop="processors_list"} {$value.name}: {$value.description}
{/loop}
Multifecta TimeoutSpecify a timeout in seconds defining how long multifecta will obey the source priority. After this timeout, the first source to respond with a CNAM will be taken, until "Lookup Timeout" is reached.
CID Prefix URLIf you wish to prefix information on the caller id you can specify a url here where that prefix can be retrieved.
The data will not be parsed in any way, and will be truncated to the first 10 characters.
Example URL: http://www.example.com/GetCID.php?phone_number=[thenumber]
[thenumber] will be replaced with the full 10 digit phone number when the URL is called.
   
SPAM TextThis text will be prepended to Caller ID information to help you identify calls as SPAM calls.
SPAM Text SubstitutedWhen enabled, the text entered in "SPAM Text" (above) will replace the CID completely rather than pre-pending the CID value.
Enable SPAM InterceptionWhen enabled, Spam calls can be diverted or terminated.
SPAM Send ThresholdThis is the threshold to send the call to the specified destination below
Send Spam Call To:
{$interceptor_select}

(License Terms) 

(* By clicking on either the "Agree and Save"
button, or the "Debug" button on this form
you are agreeing to the Caller ID Superfecta
Licensing Terms.)

Test a phone number against the selected sources.
DID Number:The DID to test this scheme against.
Phone Number:Phone number to test this scheme against.
Test all CID schemesWhen enabled, the debug function will test the number entered against all of the configured CID schemes.
When disabled, debug only checks up to the first scheme that provides positive results.

Debug Level: