Re: [Asterisk-java-devel] Asterisk user event problem
Brought to you by:
srt
|
From: Stefan R. <sr...@re...> - 2006-07-14 10:15:20
|
Mircea Postolache wrote:
> I have changed the ReplyEvent class to extend ManagerEvent (I have adde=
d
> the channel and uniqueId to it as they are not inherited anymore).
> The register I left as it was. I still get the log message:
>=20
> No event class registered for event type 'reply', attributes:
> {privilege=3Duser,all, transactionid=3D1152862210.0, uniqueid=3D1152862=
282.1,
> event=3DReply, channel=3DSIP/174-c026}
Thats strange. Please enable debug logging and look for something like
2006-07-14 10:13:08,453
org.asteriskjava.manager.internal.EventBuilderImpl DEBUG - Registered
event type 'reply' (class ReplyEvent)
There should be at least one line for your event.
> Shall I send the event from the server with a different name? Now its
> "Reply".
You can rename make your event class extend UserEvent and send a
ReplyUserEvent from Asterisk - though that sounds a bit hackish :)
=3DStefan
--=20
reuter network consulting
Neusser Str. 110
50760 Koeln
Germany
Telefon: +49 221 1305699-0
Telefax: +49 221 1305699-90
E-Mail: sr...@re...
|