Account Aliases


API for browsing, adding, editing and deleting Account Groups.

URLs

References

Looking up a Resource (single objects, lists and tabular data)
Creating a Resource
Updating a Resource
Deleting a Resource
Accounts API

Notes

Account Alias Object

{
  "AccountAliasId": 3,
  "Dnis": "*",
  "Alias": "1234",
  "AccountId": 1,
  "AccountAliasType": "aatAuthentication",
  "Password": "",
  "SipUserId": "*"
}

Examples

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"
  }
}

Table Definition

ACCOUNT_ALIASES

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.