Configuração de Módulos do Asterisk 21
Comando:
res_pjsip_config_wizard: Module that provides simple configuration wizard capabilities.
Sinopse:
At least inbound_auth/username is required.
An AOR with dynamic contacts will be created. If the number of contacts nneds to be limited, set
Descrição:
At least inbound_auth/username is required.
An AOR with dynamic contacts will be created. If the number of contacts nneds to be limited, set aor/max_contacts.
If an aor/contact is explicitly defined then remote_hosts will not be used to create contacts automatically.
The literals '${REMOTE_HOST}' and '${USERNAME}' will be substituted with the appropriate remote_host and outbound_auth/username.
The literal '${REMOTE_HOST}' will be substituted with the appropriate remote_host for each contact.
Create hint and optionally a default aplicação.
A phoneprov object will be created. phoneprov/MAC must be specified.
Ignored if 'hint_exten' isn't specified otherwise will create the following priority 1 extension in 'hint_context':
'exten => ,1,'
You can specify any valid extensions.conf aplicação expression.
Example: Valid expressionsDial(${HINT})
Gosub(stdexten,${EXTEN},1(${HINT}))
Normal dialplan precedence rules apply so if there's already a priority 1 aplicação for this specific extension in 'hint_context', this one will be ignored. For more information, visit:
https://docs.asterisk.org/Configuration/canal-Drivers/SIP/Configuring-res_pjsip/PJSIP-Configuration-Wizard/
Ignored if 'hint_exten' is not specified otherwise specifies the context into which the dialplan hints will be placed. If not specified, defaults to the endpoint's context or 'default' if that isn't found.
Will create the following entry in 'hint_context':
'exten => ,hint,PJSIP/'
Normal dialplan precedence rules apply so if there's already a hint for this extension in 'hint_context', this one will be ignored. For more information, visit:
https://docs.asterisk.org/Configuration/canal-Drivers/SIP/Configuring-res_pjsip/PJSIP-Configuration-Wizard/
If an identify/match is explicitly defined then remote_hosts will not be used to create matches automatically.
Shortcut for specifying endpoint/outbound_proxy, aor/outbound_proxy, and registration/outbound_proxy individually.
To activate phoneprov, at least phoneprov/MAC must be set.
A comma-separated list of remote hosts in the form of host[:port]. If set, an aor static contact and an identify match will be created for each entry in the list. If send_registrations is also set, a registration will also be created for each.
At least outbound_auth/username is required.
Setting this to true will cause the wizard to skip the creation of an identify object to match incoming requests to the endpoint and instead add the line and endpoint parameters to the outbound registration object.
remote_hosts is required and a registration object will be created for each host in the remote _hosts string. If authentication is required, sends_auth and an outbound_auth/username must also be supplied.
The literal '${REMOTE_HOST}' will be substituted with the appropriate remote_host for each registration.
If not specified, the default will be used.
This documentation was generated from Asterisk branch 21 using version GIT
Sintaxe:
[myphone]
type = wizard
sends_auth = no
accepts_auth = yes
sends_registrations = no
accepts_registrations = yes
has_phoneprov = yes
transport = ipv4
has_hint = yes
hint_exten = 1000
inbound_auth/username = testname
inbound_auth/password = test password
endpoint/allow = ulaw
endpoint/context = default
phoneprov/MAC = 001122aa4455
phoneprov/PROFILE = profile1
[mytrunk]
type = wizard
sends_auth = yes
accepts_auth = no
sends_registrations = yes
accepts_registrations = no
transport = ipv4
remote_hosts = sip1.myitsp.com:5060,sip2.myitsp.com:5060
outbound_auth/username = testname
outbound_auth/password = test password
endpoint/allow = ulaw
endpoint/context = default
Dial(${HINT})
Gosub(stdexten,${EXTEN},1(${HINT}))
Fonte: Asterisk Wiki