API for browsing, adding, editing and deleting Account Groups.
GET /accounts/{AccountId}
/aliases
Return a list of aliases for the specified account.
GET /accounts/aliases/{Id}
Return a specific alias by its id.
GET /accounts/aliases/"{Alias}
"?dnis={DNIS}
&realm={Realm}
?AliasType={AliasType}
Lookup an entry by its alias.
NOTE: {Alias}
must be enclosed in single or double quotes.
Parameters:
authentication
or registration
).POST /accounts/aliases
Create a new alias.
PUT /account/aliases
Update an existing alias.
DELETE /accounts/aliases/{Id}
Delete the specified alias.
Looking up a Resource (single objects, lists and tabular data)
Creating a Resource
Updating a Resource
Deleting a Resource
Accounts API
{
"AccountAliasId": 3,
"Dnis": "*",
"Alias": "1234",
"AccountId": 1,
"AccountAliasType": "aatAuthentication",
"Password": "",
"SipUserId": "*"
}
GET ivrapi/Accounts/Aliases/"1234"?AliasType=authentication
{
"status": "success",
"message": "",
"data": {
"AccountAliasId": 3,
"Dnis": "*",
"Alias": "1234",
"AccountId": 1,
"AccountAliasType": "aatAuthentication",
"Password": "",
"SipUserId": "*"
}
}
GET ivrapi/Accounts/Aliases/"xlite"?Realm=acme.com&AliasType=registration
{
"status": "success",
"message": "",
"data": {
"AccountAliasId": 4,
"Dnis": "acme.com",
"Alias": "xlite",
"AccountId": 3,
"AccountAliasType": "aatRegistration",
"Password": "1234",
"SipUserId": "johnsmith"
}
}
This table stores different Account Aliases on the system that are used for account authentication. An account alias is typically the caller’s ANI, but could also be an IP address or another alias for the account number.
Field Name | Type | Size | Description |
---|---|---|---|
ACCOUNT_ALIAS_ID | bigint | 4 | Primary key. |
DNIS | varchar | 256 | DNIS associated with this alias. Default is ‘*’ to indicate that any DNIS can be used to authenticate the ALIAS, otherwise the ALIAS can only be authenticated if the call is presented from this specific DNIS. This field will contain the Realm when the AUTHENTICATION_TYPE is (2) 'registration'. |
ALIAS | varchar | 40 | Alias for the account. |
ACCOUNT_ID | bigint | 4 | ID of the account this ALIAS represents. |
ACCOUNT_ALIAS_TYPE | tinyint | 1=Authentication 2=Registration | Alias type. |
PASSWORD | varchar | 40 | Password for this entry (applicable if the alias type is registration). |
SIP_USER_ID | varchar | 40 | This entry can be used to restrict users to a particular User Id (read calling line ID) that can be used to prevent users from being able to modify their SIP User Id to impersonate other users. If you set this entry to an asterisk (*) then the user can set their SIP User ID for their registration credentials to any value and the device will still be able to register (as long as the inbound Device's Registration setting is not set to 'Deny') and/or successfully place challenged calls. |