{if condition="$action == 'add'"} {/if} {if condition="$action == 'edit'"} {/if}
{function="dgettext('amp','General Settings')"}
{function="_('Status')"}{function="_('Enable or disable this schema.')"}
{function="_('Scheme Name')"}{function="_('Choose a name for this scheme. Duplicate names are not allowed.')"}
{function="_('Lookup Timeout')"}{function="_('Specify a timeout in seconds for each source. If the source fails to return a result within the alloted time, the script will move on.')"}
{function="_('Superfecta Processor')"} {function="_('These are the types of Superfecta Processors:
MULTI: Multifecta, runs all sources at the same time
SINGLE: Runs all sources in specified order, like old superfecta')"}
{function="_('Multifecta Timeout')"}{function="_('Specify 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.')"}
{function="_('CID Prefix URL')"}{function="_('If 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.')"}
{function="_('Sources')"}
{loop="sources"}
{/loop}
{function="_('Matching rules')"}
{function="_('DID Rules')"}{function="_('Define 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.')"}
{function="_('CID Rules')"}{function="_('Incoming 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.')"}
{function="_('SPAM Text')"}{function="_('This text will be prepended to Caller ID information to help you identify calls as SPAM calls.')"}
{function="_('SPAM Text Substituted')"}{function="_('When enabled, the text entered in \'SPAM Text\' (above) will replace the CID completely rather than pre-pending the CID value.')"}
{function="_('Enable SPAM Interception')"}{function="_('When enabled, Spam calls can be diverted or terminated.')"}
{function="_('SPAM Send Threshold')"}{function="_('This is the threshold to send the call to the specified destination below')"}
{function="_('Send Spam Call To')"} {$interceptor_select}
{function="_('Phone number lookup test')"}
{function="_('DID Number')"}{function="_('The DID to test this scheme against.')"}
{function="_('Phone Number')"}{function="_('Phone number to test this scheme against.')"}
{function="_('Test all CID schemes')"}{function="_('When 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.')"}
{function="_('Debug Level')"}