Asterisk-Java

org.asteriskjava.manager.event
Class NewChannelEvent

java.lang.Object
  extended by java.util.EventObject
      extended by org.asteriskjava.manager.event.ManagerEvent
          extended by org.asteriskjava.manager.event.AbstractChannelEvent
              extended by org.asteriskjava.manager.event.AbstractChannelStateEvent
                  extended by org.asteriskjava.manager.event.NewChannelEvent
All Implemented Interfaces:
java.io.Serializable

public class NewChannelEvent
extends AbstractChannelStateEvent

A NewChannelEvent is triggered when a new channel is created.

It is implemented in channel.c

Version:
$Id: NewChannelEvent.java 1295 2009-04-28 10:07:23Z srt $
Author:
srt
See Also:
Serialized Form

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
appendPropertyIfNotNull, getDateReceived, getFile, getFunc, getLine, getPrivilege, getSequenceNumber, getServer, getTimestamp, setDateReceived, setFile, setFunc, setLine, setPrivilege, setSequenceNumber, 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

NewChannelEvent

public NewChannelEvent(java.lang.Object source)
Method Detail

getAccountCode

public java.lang.String getAccountCode()
Returns the account code of the new channel.

This property is available since Asterisk 1.6.

Returns:
the account code of the new channel.
Since:
1.0.0

setAccountCode

public void setAccountCode(java.lang.String accountCode)
Sets the account code of the new channel.

Parameters:
accountCode - the account code of the new channel.
Since:
1.0.0

getContext

public java.lang.String getContext()
Returns the context of the dialplan entry the channel started at.

This property is available since Asterisk 1.6.

Returns:
the context of the dialplan entry the channel started at.
Since:
1.0.0

setContext

public void setContext(java.lang.String context)
Sets the context of the dialplan entry the channel started at.

Parameters:
context - the context of the dialplan entry the channel started at.
Since:
1.0.0

getExten

public java.lang.String getExten()
Returns the extension of the dialplan entry the channel started at.

This property is available since Asterisk 1.6.

Returns:
the extension of the dialplan entry the channel started at.
Since:
1.0.0

setExten

public void setExten(java.lang.String exten)
Sets the extension of the dialplan entry the channel started at.

Parameters:
exten - the extension of the dialplan entry the channel started at.
Since:
1.0.0

Asterisk-Java

Copyright © 2004-2009 Stefan Reuter. All Rights Reserved.