[Asterisk-java-cvs] CVS: asterisk-java/src/java/net/sf/asterisk/manager/event AgentCalledEvent.java,
Brought to you by:
srt
From: Stefan R. <sr...@us...> - 2005-08-27 03:22:44
|
Update of /cvsroot/asterisk-java/asterisk-java/src/java/net/sf/asterisk/manager/event In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1396/src/java/net/sf/asterisk/manager/event Modified Files: AgentCalledEvent.java Log Message: Added callerIdName attribute Index: AgentCalledEvent.java =================================================================== RCS file: /cvsroot/asterisk-java/asterisk-java/src/java/net/sf/asterisk/manager/event/AgentCalledEvent.java,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -p -r1.2 -r1.3 --- AgentCalledEvent.java 23 Feb 2005 22:50:58 -0000 1.2 +++ AgentCalledEvent.java 27 Aug 2005 03:22:32 -0000 1.3 @@ -18,8 +18,8 @@ package net.sf.asterisk.manager.event; /** * An AgentCalledEvent is triggered when an agent is rung.<br> - * To enable AgentCalledEvents you have to set <code>eventwhencalled = yes</code> in - * <code>queues.conf</code>.<br> + * To enable AgentCalledEvents you have to set + * <code>eventwhencalled = yes</code> in <code>queues.conf</code>.<br> * This event is implemented in <code>apps/app_queue.c</code> * * @author srt @@ -34,6 +34,7 @@ public class AgentCalledEvent extends Ma private String agentCalled; private String channelCalling; private String callerId; + private String callerIdName; private String context; private String extension; private String priority; @@ -76,6 +77,29 @@ public class AgentCalledEvent extends Ma this.callerId = callerId; } + /** + * Returns the Caller*ID name of the calling channel. + * + * @return the Caller*ID name of the calling channel or "unknown" if no + * Caller*Id has been set. + * @since 0.2 + */ + public String getCallerIdName() + { + return callerIdName; + } + + /** + * Sets the Caller*ID name of the calling channel. + * + * @param callerIdName the Caller*ID name of the calling channel. + * @since 0.2 + */ + public void setCallerIdName(String callerIdName) + { + this.callerIdName = callerIdName; + } + public String getContext() { return context; |