Funções do Dialplan do Asterisk 20
Comando:
PJSIP_AOR()
Sinopse:
Obter informações sobre um PJSIP AOR
Descrição:
A função PJSIP_AOR() permite obter informações específicas sobre um AOR (Address of Record) configurado no PJSIP. A função aceita dois parâmetros: 'name', que é o nome do AOR a ser consultado, e 'field', que é a opção de configuração específica do AOR que deseja-se obter. Os campos suportados são aqueles definidos no objeto aor no arquivo pjsip.conf. Quando o campo 'contact' é solicitado, a função retorna tanto os contatos permanentes quanto os dinâmicos, com os IDs dos contatos separados por vírgulas. Para obter detalhes sobre os contatos individuais, incluindo o URI, deve-se utilizar a função de dialplan PJSIP_CONTACT com o ID do contato e o parâmetro desejado. Os campos disponíveis incluem: 'contact', 'default_expiration', 'mailboxes', 'voicemail_extension', 'maximum_expiration', 'max_contacts', 'minimum_expiration', 'remove_existing', 'remove_unavailable', 'type', 'qualify_frequency', 'qualify_timeout', 'qualify_2xx_only', 'authenticate_qualify', 'outbound_proxy' e 'support_path'.
Sintaxe:
PJSIP_AOR(name,field)
* `contact` - Permanent contacts assigned to AoR<br>
* `default_expiration` - Default expiration time in seconds for contacts that are dynamically bound to an AoR.<br>
* `mailboxes` - Allow subscriptions for the specified mailbox(es)<br>
* `voicemail_extension` - The voicemail extension to send in the NOTIFY Message-Account header<br>
* `maximum_expiration` - Maximum time to keep an AoR<br>
* `max_contacts` - Maximum number of contacts that can bind to an AoR<br>
* `minimum_expiration` - Minimum keep alive time for an AoR<br>
* `remove_existing` - Determines whether new contacts replace existing ones.<br>
* `remove_unavailable` - Determines whether new contacts should replace unavailable ones.<br>
* `type` - Must be of type 'aor'.<br>
* `qualify_frequency` - Interval at which to qualify an AoR<br>
* `qualify_timeout` - Timeout for qualify<br>
* `qualify_2xx_only` - Only qualify contact if OPTIONS request returns 2XX<br>
* `authenticate_qualify` - Authenticates a qualify challenge response if needed<br>
* `outbound_proxy` - Outbound proxy used when sending OPTIONS request<br>
* `support_path` - Enables Path support for REGISTER requests and Route support for other requests.<br>
Veja Também:
Fonte: Asterisk Wiki