public class HoldEvent extends ManagerEvent
It is implemented in channels/chan_sip.c.
Available since Asterisk 1.2 for SIP channels, as of Asterisk 1.6 this event is also supported for IAX2 channels.
To receive HoldEvents for SIP channels you must set callevents = yes
in sip.conf.
source| Constructor and Description |
|---|
HoldEvent(Object source)
Creates a new HoldEvent.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getChannel()
Returns the name of the channel.
|
Boolean |
getStatus()
Returns whether this is a hold or unhold event.
|
String |
getUniqueId()
Returns the unique id of the channel.
|
boolean |
isHold()
Returns whether this is a hold event.
|
boolean |
isUnhold()
Returns whether this is an unhold event.
|
void |
setChannel(String channel)
Sets the name of the channel.
|
void |
setStatus(Boolean status)
Returns whether this is a hold or unhold event.
|
void |
setUniqueId(String uniqueId)
Sets the unique id of the channel.
|
appendPropertyIfNotNull, getDateReceived, getFile, getFunc, getLine, getPrivilege, getSequenceNumber, getServer, getTimestamp, setDateReceived, setFile, setFunc, setLine, setPrivilege, setSequenceNumber, setServer, setTimestamp, toStringgetSourcepublic HoldEvent(Object source)
source - public String getChannel()
public void setChannel(String channel)
channel - the name of the channel.public String getUniqueId()
public void setUniqueId(String uniqueId)
uniqueId - the unique id of the channel.public Boolean getStatus()
true if this a hold event, false if it's an unhold event.public void setStatus(Boolean status)
status - true if this a hold event, false if it's an unhold event.public boolean isHold()
true if this a hold event, false if it's an unhold event.public boolean isUnhold()
true if this an unhold event, false if it's a hold event.Copyright © 2004–2016. All rights reserved.