Module that integrates res_pjsip with res_phoneprov.
This configuration documentation is for functionality provided by res_pjsip_phoneprov_provider
.
Overview
PJSIP Phoneprov Provider
This module creates the integration between res_pjsip
and res_phoneprov
.
Each user to be integrated requires a phoneprov
section defined in pjsip.conf
. Each section identifies the endpoint associated with the user and any other name/value pairs to be passed on to res_phoneprov's template substitution. Only MAC
and PROFILE
variables are required. Any other variables supplied will be passed through.
Example:
[1000]
type = phoneprovr
endpoint = ep1000
MAC = deadbeef4dad
PROFILE = grandstream2
LINEKEYS = 2
LINE = 1
OTHERVAR = othervalue
The following variables are automatically defined if an endpoint is defined for the user:
USERNAME
- Source: The user_name defined in the first auth reference in the endpoint.SECRET
- Source: The user_pass defined in the first auth reference in the endpoint.CALLERID
- Source: The number part of the callerid defined in the endpoint.DISPLAY_NAME
- Source: The name part of the callerid defined in the endpoint.LABEL
- Source: The id of the phoneprov section.
In addition to the standard variables, the following are also automatically defined:
ENDPOINT_ID
- Source: The id of the endpoint.TRANSPORT_ID
- Source: The id of the transport used by the endpoint.AUTH_ID
- Source: The id of the auth used by the endpoint.
All other template substitution variables must be explicitly defined in the phoneprov_default or phoneprov sections.
pjsip.conf
phoneprov
Provides variables for each user.
Configuration Option Reference
Option Name |
Type |
Default Value |
Regular Expression |
Description |
---|---|---|---|---|
|
|
|
|
Must be of type 'phoneprov'. |
|
|
|
|
The endpoint from which variables will be retrieved. |
|
|
|
|
The mac address for this user. (required) |
|
|
|
|
The phoneprov profile to use for this user. (required) |
|
|
|
|
Other name/value pairs to be passed through for use in templates. |
Import Version
This documentation was imported from Asterisk Version 18