Страница 1 из 1

Как отловить события C++

СообщениеДобавлено: 06 авг 2015, 21:31
Zanzarchik
Всем привет!

Помогите, пожалуйста, в решении проблемы!

Задача такая:
Отловить все события которые происходят в Asterisk.
Подписываюсь на эти события с помощью ACTION: Events

Как, использую C++, мне теперь получить события?

Re: Как отловить события C++

СообщениеДобавлено: 06 авг 2015, 21:39
Vlad1983

Re: Как отловить события C++

СообщениеДобавлено: 07 авг 2015, 11:24
Zanzarchik
Спасибо за ссылку!

Искать пробовал. Использую вот этот фреймворк: http://sourceforge.net/projects/ast-cppsock/

Но в нем нет команды, которая бы получала список всех Event'ов, происходящих в Asterisk. Вообще у Asterisk есть какой-нибудь Action, который бы мог получать список event'ов?

Re: Как отловить события C++

СообщениеДобавлено: 08 авг 2015, 07:26
virus_net
manager.conf
[Показать] Спойлер:
; Authorization for various classes
;
; Read authorization permits you to receive asynchronous events, in general.
; Write authorization permits you to send commands and get back responses. The
; following classes exist:
;
; all - All event classes below (including any we may have missed).
; system - General information about the system and ability to run system
; management commands, such as Shutdown, Restart, and Reload.
; call - Information about channels and ability to set information in a
; running channel.
; log - Logging information. Read-only. (Defined but not yet used.)
; verbose - Verbose information. Read-only. (Defined but not yet used.)
; agent - Information about queues and agents and ability to add queue
; members to a queue.
; user - Permission to send and receive UserEvent.
; config - Ability to read and write configuration files.
; command - Permission to run CLI commands. Write-only.
; dtmf - Receive DTMF events. Read-only.
; reporting - Ability to get information about the system.
; cdr - Output of cdr_manager, if loaded. Read-only.
; dialplan - Receive NewExten and VarSet events. Read-only.
; originate - Permission to originate new calls. Write-only.
; agi - Output AGI commands executed. Input AGI command to execute.
; cc - Call Completion events. Read-only.
; aoc - Permission to send Advice Of Charge messages and receive Advice
; - Of Charge events.
; test - Ability to read TestEvent notifications sent to the Asterisk Test
; Suite. Note that this is only enabled when the TEST_FRAMEWORK
; compiler flag is defined.

Код: выделить все
[admin]
secret = secret
read = all