Внимание!
Эта wiki об устаревших версиях
Документация к актуальной версии интеграции 1С и телефонии доступна по ссылке

Инструменты пользователя

Инструменты сайта


kb:asterisk:ami:filter

Это старая версия документа!


Команда Asterisk Manager API: Filter

Dynamically add filters for the current manager session.

The filters added are only used for the current session. Once the connection is closed the filters are removed.

This comand requires the system permission because this command can be used to create filters that may bypass filters defined in manager.conf

Необходимые привилегии: ,all

Параметры команды

  • ActionID: Не обязательный ID команды, который будет возвращен в ответе.
  • Operation
    • Add - Add a filter.
  • Filter - Filters can be whitelist or blacklist Example whitelist filter: «Event: Newchannel» Example blacklist filter: «!Channel: DAHDI.*» This filter option is used to whitelist or blacklist events per user to be reported with regular expressions and are allowed if both the regex matches and the user has read access as defined in manager.conf. Filters are assumed to be for whitelisting unless preceeded by an exclamation point, which marks it as being black. Evaluation of the filters is as follows: - If no filters are configured all events are reported as normal. - If there are white filters only: implied black all filter processed first, then white filters. - If there are black filters only: implied white all filter processed first, then black filters. - If there are both white and black filters: implied black all filter processed first, then white filters, and lastly black filters.

Пример

Запрос:

Action: Filter
[ActionID:] <value>
[Operation:] <value>
[Filter:] <value>

Ответ asterisk:



Ссылки по теме

kb/asterisk/ami/filter.1324130426.txt.gz · Последние изменения: 2014/11/14 22:32 (внешнее изменение)