|
Asterisk-Java | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.EventObject
org.asteriskjava.manager.event.ManagerEvent
org.asteriskjava.manager.event.AbstractChannelEvent
org.asteriskjava.manager.event.AbstractChannelStateEvent
org.asteriskjava.manager.event.NewChannelEvent
public class NewChannelEvent
A NewChannelEvent is triggered when a new channel is created.
It is implemented in channel.c
Field Summary |
---|
Fields inherited from class java.util.EventObject |
---|
source |
Constructor Summary | |
---|---|
NewChannelEvent(java.lang.Object source)
|
Method Summary | |
---|---|
java.lang.String |
getAccountCode()
Returns the account code of the new channel. |
java.lang.String |
getContext()
Returns the context of the dialplan entry the channel started at. |
java.lang.String |
getExten()
Returns the extension of the dialplan entry the channel started at. |
void |
setAccountCode(java.lang.String accountCode)
Sets the account code of the new channel. |
void |
setContext(java.lang.String context)
Sets the context of the dialplan entry the channel started at. |
void |
setExten(java.lang.String exten)
Sets the extension of the dialplan entry the channel started at. |
Methods inherited from class org.asteriskjava.manager.event.AbstractChannelStateEvent |
---|
getChannelState, getChannelStateDesc, getState, setChannelState, setChannelStateDesc, setState |
Methods inherited from class org.asteriskjava.manager.event.AbstractChannelEvent |
---|
getCallerId, getCallerIdName, getCallerIdNum, getChannel, getUniqueId, setCallerId, setCallerIdName, setCallerIdNum, setChannel, setUniqueId |
Methods inherited from class org.asteriskjava.manager.event.ManagerEvent |
---|
getDateReceived, getPrivilege, getServer, getTimestamp, setDateReceived, setPrivilege, setServer, setTimestamp, toString |
Methods inherited from class java.util.EventObject |
---|
getSource |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public NewChannelEvent(java.lang.Object source)
Method Detail |
---|
public java.lang.String getAccountCode()
This property is available since Asterisk 1.6.
public void setAccountCode(java.lang.String accountCode)
accountCode
- the account code of the new channel.public java.lang.String getContext()
This property is available since Asterisk 1.6.
public void setContext(java.lang.String context)
context
- the context of the dialplan entry the channel started at.public java.lang.String getExten()
This property is available since Asterisk 1.6.
public void setExten(java.lang.String exten)
exten
- the extension of the dialplan entry the channel started at.
|
Asterisk-Java | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |