An authentication rule matches incoming calls to an account by the caller’s IP address, CLI, CLD or domains, and can override the account’s tariff and routing group for those calls. Use these methods to provision IP trunks and DIDs from your own system; they do the same as the Authentication Rules screen of an account.
addAuthRule and updateAuthRule take these fields, getAuthRuleInfo and listAuthRules return them.
Name
Type
Description
i_authentication
int
ID of the rule. Returned, never sent to addAuthRule
i_account
int
Account the matched calls are authenticated to
i_protocol
int
1 SIP, 3 IAX2, 4 Calling Card PIN
remote_ip
string
Remote IP Address: the IP address the call comes from
incoming_cli
string
Incoming CLI/ANI: the caller’s number
incoming_cld
string
Incoming CLD/DNIS: the dialled number. With i_protocol4 this is the calling card PIN
to_domain
string
To Domain: the domain in the To header
from_domain
string
From Domain: the domain in the From header
cli_translation_rule
string
CLI Tr. Rule: translation rule applied to the CLI of matched calls
cld_translation_rule
string
CLD Tr. Rule: translation rule applied to the CLD of matched calls
max_sessions
int
Max Sessions: maximum simultaneous calls matched by the rule. -1 is unlimited
max_cps
double
Max Calls Per Second: maximum new calls per second. Nil is unlimited
i_tariff
int
Tariff for matched calls. Nil uses the account’s tariff
i_routing_group
int
Routing Group for matched calls. Nil uses the account’s routing group
An empty match field matches anything. incoming_cli and incoming_cld accept patterns such as 4420*. How the switch chooses between overlapping rules is explained in Authentication.