[Asterisk-java-users] Gnudialer and asterisk-java, new event types
Brought to you by:
srt
From: Maciek T. <mlo...@gm...> - 2008-04-05 17:08:23
|
Hey all, I'm using gnudialer which defines event named ManagerEvent in Asterisk Manager Interface (there is patch to manager.c file- http://dynx.net/ASTERISK/gnudialer/manager.c.both-patches.txt). Currently I'm developing some application that monitors events form * and there is some problem, because when ManagerEvent reaches my application on Std.err I've got: ---- 008-04-05 18:44:00 org.asteriskjava.manager.internal.EventBuilderImpl buildEvent INFO: No event class registered for event type 'crm_disporecord', attributes: {body=Agent: 300|Dispo: 4|Transfer: TRANSFER|Campaign: test5|Leadid: 185|Channel: Local/693595766@gd-out-9f42,1, event=CRM_DispoRecord, privilege=user,all} ---- My question is: how to define new Asterisk event type (this is _not_ user event) without recompiling asterisk-java code? Is there any way to do this. I know there is registerEventClass method in ManagerReaderImpl class. How to use it? Regards, Maciek |