Alias
Used to bind an external number to an extension, both for incoming and outgoing calls.
For example, there is a mobile number 8987654321 and you need this number to correspond to the extension 200:
all calls coming from this mobile should be handled by the system as calls from extension 200
all calls going to extension 200 should go to mobile 8987654321 and it should look like a simple call to extension 200 to the system
To implement the alias table, its essence is similar to DIDs: an alias can be passed along the dealer->client->additional chain, but there is no field for the trunk - instead of it, you must explicitly specify the address:port of sending/receiving.
The alias number must arrive in the "From" field for outgoing calls from the extension (analogue of an incoming call, if it were a DID) and be added to the reques-uri for incoming calls to the extension, sent to the specified address:port.
Alias is an extension of the concept of "registration of an external number". The main differences
the call to the alias is sent not through the termination rules, but directly to the specified address
can be used for both incoming and outgoing matches.
Description of data structures
Name | Type | Description | Required |
---|---|---|---|
comment | string | Any text description | no |
domain | string | Alias domain for: name@domain, if absent, then the domain part can be any | no |
dealer_id | integer | The dealer to which the alias is assigned | no |
name | string | Alias name for: name@domain | yes |
extension_id | integer | The extension to which the alias is assigned | no |
client_id | integer | The client to which the alias is assigned | no |
address | string | The format is ip[:port] or domain[:port]. Calls are expected to be received from this address, outgoing calls go here. If it contains a domain, then authorization is performed on all A records of the domain, and sent using the dns srv logic. | yes |