Re: [Asterisk-java-devel] Asterisk user event problem
Brought to you by:
srt
|
From: Stefan R. <sr...@re...> - 2006-07-14 10:16:24
|
Stefan Reuter wrote:
> Mircea Postolache wrote:
>> I have changed the ReplyEvent class to extend ManagerEvent (I have add=
ed
>> 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:
>>
>> No event class registered for event type 'reply', attributes:
>> {privilege=3Duser,all, transactionid=3D1152862210.0, uniqueid=3D115286=
2282.1,
>> event=3DReply, channel=3DSIP/174-c026}
>=20
> 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)
>=20
> There should be at least one line for your event.
>=20
>> Shall I send the event from the server with a different name? Now its
>> "Reply".
>=20
> You can rename make your event class extend UserEvent and send a
> ReplyUserEvent from Asterisk - though that sounds a bit hackish :)
sorry - what you have to send is a UserEventReply
=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...
|