Module that identifies endpoints
This configuration documentation is for functionality provided by res_pjsip_endpoint_identifier_ip
.
pjsip.conf
identify
Identifies endpoints via some criteria.
Configuration Option Reference
Option Name |
Type |
Default Value |
Regular Expression |
Description |
---|---|---|---|---|
|
|
|
|
Name of endpoint identified |
|
|
|
IP addresses or networks to match against. |
|
|
|
|
Perform SRV lookups for provided hostnames. |
|
|
|
|
Header/value pair to match against. |
|
|
|
|
|
Must be of type 'identify'. |
Configuration Option Descriptions
match
The value is a comma-delimited list of IP addresses or hostnames.
IP addresses may have a subnet mask appended. The subnet mask may be written in either CIDR or dotted-decimal notation. Separate the IP address and subnet mask with a slash ('/'). A source port can also be specified by adding a colon (':') after the address but before the subnet mask, e.g. 3.2.1.0:5061/24. To specify a source port for an IPv6 address, the address itself must be enclosed in square brackets ('[2001:db8:0::1]:5060')
When a hostname is used, the behavior depends on whether srv_lookups is enabled and/or a source port is provided. If srv_lookups is enabled and a source port is not provided, Asterisk will perform an SRV lookup on the provided hostname, adding all of the A and AAAA records that are resolved.
If the SRV lookup fails, srv_lookups is disabled, or a source port is specified when the hostname is configured, Asterisk will resolve the hostname and add all A and AAAA records that are resolved.
srv_lookups
When enabled, srv_lookups will perform SRV lookups for _sip._udp, _sip._tcp, and _sips._tcp of the given hostnames to determine additional addresses that traffic may originate from.
match_header
A SIP header whose value is used to match against. SIP requests containing the header, along with the specified value, will be mapped to the specified endpoint. The header must be specified with a :
, as in match_header = SIPHeader: value
.
The specified SIP header value can be a regular expression if the value is of the form / regex/.
Import Version
This documentation was imported from Asterisk Version GIT-13-13.15.0-rc1-2566-g9b22061