Re: [Asterisk-java-devel] Asterisk user event problem
Brought to you by:
srt
|
From: Mircea P. <mir...@ya...> - 2006-07-14 06:05:39
|
Hi,
The event is a subclass of UserEvent. I have registered it like this:
ManagerConnection con=mgrConnectionFactory.getManagerConnection();
con.login();
//register Reply event
con.registerUserEventClass(ReplyEvent.class);
On the server side I have added some C code into Asterisk's code for app_voicemail.c to fire the event in a the case of a reply.
manager_event(EVENT_FLAG_USER, "Reply", "Channel: %s\r\nUniqueid: %s\r\nTransactionId: %s\r\n", chan->name, chan->uniqueid, transactionId);
Stefan Reuter <sr...@re...> wrote: Mircea Postolache wrote:
> Hi
> I am using the 3.0 snapshot. I recently added in the asterisk server a
> bit of code to fire an user event that I intend to capture from java. I
> have created an Event called ReplyEvent and registered it with the
> ManagerConnection. I have also provided a Handler for the events on that
> connection. The only trace of the event is the following message from my
> logs:
>
> 07-12@17:37:43 INFO (EventBuilderImpl.java:262) - No event class
> registered for event type 'reply', attributes: {privilege=user,all,
> transactionid=1152714850.26, uniqueid=1152715015.27, event=Reply,
> channel=SIP/174-2ee2}
>
> What should I do to get rid of this message?
can you show me how you registered the event and how you are sending the
event from Asterisk (i.e. excerpt from extensions.conf or AGI)?
That would help me locate the problem.
=Stefan
--
reuter network consulting
Neusser Str. 110
50760 Koeln
Germany
Telefon: +49 221 1305699-0
Telefax: +49 221 1305699-90
E-Mail: sr...@re...
Jabber: sr...@ja...
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Asterisk-java-devel mailing list
Ast...@li...
https://lists.sourceforge.net/lists/listinfo/asterisk-java-devel
---------------------------------
Yahoo! Music Unlimited - Access over 1 million songs.Try it free. |