|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.asterisk.manager.Channel
public class Channel
| Constructor Summary | |
|---|---|
Channel(java.lang.String name,
java.lang.String id)
Creates a new Channel. |
|
Channel(java.lang.String name,
java.lang.String id,
AsteriskServer server)
Creates a new Channel on the given server. |
|
| Method Summary | |
|---|---|
void |
addExtension(Extension extension)
Adds a visted dialplan entry to the history. |
java.lang.String |
getAccount()
Returns the account code used to bill this channel. |
AsteriskServer |
getAsteriskServer()
Returns the Asterisk server. |
java.lang.String |
getCallerId()
Returns the caller id of this channel. |
java.lang.String |
getCallerIdName()
Returns the caller id name of this channel. |
java.lang.String |
getContext()
Returns the context of the current extension. |
Extension |
getCurrentExtension()
Returns the last visited dialplan entry. |
java.util.Date |
getDateOfCreation()
Returns the date this channel has been created. |
java.lang.String |
getExtension()
Returns the extension of the current extension. |
java.util.List |
getExtensions()
Returns a list of all visited dialplan entries. |
Extension |
getFirstExtension()
Returns the first visited dialplan entry. |
java.lang.String |
getId()
Returns the unique id of this channel, for example "1099015093.165". |
Channel |
getLinkedChannel()
Returns the channel this channel is bridged with, if any. |
java.lang.String |
getName()
Returns the name of this channel, for example "SIP/1310-20da". |
java.lang.Integer |
getPriority()
Returns the priority of the current extension. |
ChannelStateEnum |
getState()
Returns the state of this channel. |
boolean |
getWasLinked()
Indicates if this channel was linked to another channel at least once. |
void |
setAccount(java.lang.String account)
Sets the account code used to bill this channel. |
void |
setAsteriskServer(AsteriskServer asteriskServer)
Sets the Asterisk server. |
void |
setCallerId(java.lang.String callerId)
Sets the caller id of this channel. |
void |
setCallerIdName(java.lang.String callerIdName)
Sets the caller id of this channel. |
void |
setDateOfCreation(java.util.Date dateOfCreation)
Sets the date this channel has been created. |
void |
setLinkedChannel(Channel linkedChannel)
Sets the channel this channel is bridged with. |
void |
setName(java.lang.String name)
Sets the name of this channel. |
void |
setState(ChannelStateEnum state)
Sets the state of this channel. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Channel(java.lang.String name,
java.lang.String id)
name - name of this channel, for example "SIP/1310-20da".id - unique id of this channel, for example "1099015093.165".
public Channel(java.lang.String name,
java.lang.String id,
AsteriskServer server)
name - name of this channel, for example "SIP/1310-20da".id - unique id of this channel, for example "1099015093.165".server - the Asterisk server this channel exists on.| Method Detail |
|---|
public final AsteriskServer getAsteriskServer()
public final void setAsteriskServer(AsteriskServer asteriskServer)
asteriskServer - the Asterisk server to set.public final java.lang.String getId()
public final java.lang.String getName()
public final void setName(java.lang.String name)
name - the name of this channel.public final java.lang.String getCallerId()
public final void setCallerId(java.lang.String callerId)
callerId - the caller id of this channel.public final java.lang.String getCallerIdName()
public final void setCallerIdName(java.lang.String callerIdName)
callerIdName - the caller id name of this channel.public final ChannelStateEnum getState()
public final void setState(ChannelStateEnum state)
state - the state of this channel.public final java.lang.String getAccount()
public final void setAccount(java.lang.String account)
account - the account code used to bill this channel.public final Extension getCurrentExtension()
public Extension getFirstExtension()
public java.lang.String getContext()
getCurrentExtension().getContext().
public java.lang.String getExtension()
getCurrentExtension().getExtension().
public java.lang.Integer getPriority()
getCurrentExtension().getPriority().
public java.util.List getExtensions()
public void addExtension(Extension extension)
extension - the visted dialplan entry to add.public final java.util.Date getDateOfCreation()
public final void setDateOfCreation(java.util.Date dateOfCreation)
dateOfCreation - the date this channel has been created.public final Channel getLinkedChannel()
null
if this channel is currently not bridged to another channel.public final void setLinkedChannel(Channel linkedChannel)
linkedChannel - the channel this channel is bridged with.public final boolean getWasLinked()
true if this channel was linked to another channel
at least once, false otherwise.public java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||