ВидеоКонф(ВКС)  ::   FAQ  ::   Поиск  ::   Регистрация  ::   Вход

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

Раздел для разработчиков для обсуждения программных и аппаратных продуктов и их реализации.

Модераторы: april22, Zavr2008

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

Сообщение Zanzarchik » 06 авг 2015, 21:31

Всем привет!

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

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

Как, использую C++, мне теперь получить события?
Zanzarchik
 
Сообщений: 2
Зарегистрирован: 06 авг 2015, 21:26

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

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

ЛС: @rostel
Vlad1983
 
Сообщений: 4251
Зарегистрирован: 09 авг 2011, 11:51

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

Сообщение Zanzarchik » 07 авг 2015, 11:24

Спасибо за ссылку!

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

Но в нем нет команды, которая бы получала список всех Event'ов, происходящих в Asterisk. Вообще у Asterisk есть какой-нибудь Action, который бы мог получать список event'ов?
Zanzarchik
 
Сообщений: 2
Зарегистрирован: 06 авг 2015, 21:26

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

Сообщение virus_net » 08 авг 2015, 07:26

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
мой SIP URI sip:virus_net@asterisk.ru
bitname.ru - Домены .bit (namecoin) .emc .coin .lib .bazar (emercoin)

ENUMER - звони бесплатно и напрямую.
virus_net
 
Сообщений: 2337
Зарегистрирован: 05 июн 2013, 08:12
Откуда: Москва


Вернуться в Разработка

Кто сейчас на форуме

Сейчас этот форум просматривают: нет зарегистрированных пользователей и гости: 7

© 2008 — 2024 Asterisk.ru
Digium, Asterisk and AsteriskNOW are registered trademarks of Digium, Inc.
Design and development by PostMet-Netzwerk GmbH