public interface Channel
Modifier and Type | Method and Description |
---|---|
void |
addHangupListener(ChannelHangupListener listener)
Adds a listener to the channel.
|
boolean |
canDetectHangup() |
CallerID |
getCallerID()
Returns the current callerid for this channel.
|
long |
getChannelId()
Each channel is assigned a unique PBX independent id to help track the
channels when logging.
|
String |
getChannelName()
returns a fully qualifed channel name which includes the tech.
|
AgiChannelActivityAction |
getCurrentActivityAction() |
EndPoint |
getEndPoint() |
String |
getExtendedChannelName()
Returns a PBX specific version of the Channel name.
|
String |
getUniqueId() |
boolean |
hasCallerID() |
boolean |
isConnectedTo(EndPoint endPoint)
Returns true if the given endpont is currently connected to this channel.
|
boolean |
isConsole() |
boolean |
isInAgi() |
boolean |
isLive()
Returns true if the channel is alive.
|
boolean |
isLocal()
In Asterisk speak, this method returns true if it is a LOCAL/ channel Not
quite certain how this will map to other pbx's
|
boolean |
isMute()
Checks if this channel is currently mute.
|
boolean |
isParked() |
boolean |
isQuiescent() |
boolean |
isSame(Channel rhs)
Compares if two channels are the same logical channel on the pbx.
|
boolean |
isSame(String channelName,
String uniqueID) |
boolean |
isZombie()
Returns true if the channel has been marked as in a zombie state.
|
void |
notifyHangupListeners(Integer cause,
String causeText) |
void |
removeListener(ChannelHangupListener listener) |
void |
rename(String newName,
String uniqueId)
Called to rename a channel
|
boolean |
sameEndPoint(Channel rhs) |
boolean |
sameEndPoint(EndPoint extensionRoaming) |
boolean |
sameExtenededChannelName(String channelName)
Compares if this channel is the same as the named channel.
|
void |
setCallerId(CallerID buildCallerID) |
void |
setCurrentActivityAction(AgiChannelActivityAction action) |
void |
setIsInAgi(boolean b) |
void |
setMute(boolean muteState)
This method does not actually change the state of the channel, rather it
is intended to be used to record the fact that the state has changed.
|
void |
setParked(boolean parked)
This method does not actually change the state of the channel, rather it
is intended to be used to record the fact that the state has changed.
|
boolean |
waitForChannelToReachAgi(long timeout,
TimeUnit timeunit) |
boolean isSame(Channel rhs)
rhs
- boolean sameEndPoint(Channel rhs)
boolean sameEndPoint(EndPoint extensionRoaming)
boolean sameExtenededChannelName(String channelName)
channelName
- void setParked(boolean parked)
iPBX.iParkCallActivity park(iChannel channel, Direction
direction, boolean parkState) for a method which actually parks the
channel.
void setMute(boolean muteState)
iPBX.iMuteCallActivity mute(iChannel channel, Direction
direction, boolean muteState) for a method which actually mutes the
channel.
long getChannelId()
boolean isLive()
void addHangupListener(ChannelHangupListener listener)
call
- void removeListener(ChannelHangupListener listener)
boolean isConnectedTo(EndPoint endPoint)
extension
- String getChannelName()
EndPoint getEndPoint()
boolean isMute()
boolean isLocal()
boolean isParked()
boolean isZombie()
boolean isConsole()
CallerID getCallerID()
String getExtendedChannelName()
boolean canDetectHangup()
boolean isQuiescent()
boolean hasCallerID()
AgiChannelActivityAction getCurrentActivityAction()
void setCurrentActivityAction(AgiChannelActivityAction action)
void setIsInAgi(boolean b)
boolean isInAgi()
String getUniqueId()
boolean waitForChannelToReachAgi(long timeout, TimeUnit timeunit) throws InterruptedException
InterruptedException
void setCallerId(CallerID buildCallerID)
void rename(String newName, String uniqueId) throws InvalidChannelName
newname
- the new name of the channelInvalidChannelName
Copyright © 2004–2020. All rights reserved.