[Asterisk-java-users] UserEvents
Brought to you by:
srt
|
From: Chris H. <ch...@as...> - 2005-03-15 16:01:54
|
I'm currently working with an older version of Asterisk Java (plan on
updating soon but I don't have time for regression test). I have a need for
a user defined event but the UserEvent class was not included in the
version I was working with. I pull the user event class from the latest cvs
and added it. Created my own user event
public class UserEventASGHold extends UserEvent
{
private String callerId;
public UserEventASGHold(Object source)
{
super(source);
}
public String getCallerId()
{
return callerId;
}
public void setCallerId(String callerId)
{
this.callerId = callerId;
}
}
I call the event via:
exten => _0262,10,UserEvent(ASGHold|callerId: ${CALLERIDNUM})
Now I get the warning:
WARNING: No event class registered for event type 'usereventasghold',
attributes: {callerid=0262, uniqueid=1110900347.498, event=UserEventASGHold,
channel=Zap/38-1}
How do I register the event? Is this because I'm using a old version of the
core code?
Thanks,
Chris
--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.308 / Virus Database: 266.7.2 - Release Date: 3/11/2005
|