public class DialEvent extends ManagerEvent
This event is implemented in apps/app_dial.c
.
Available since Asterisk 1.2.
Modifier and Type | Field and Description |
---|---|
static String |
DIALSTATUS_ANSWER |
static String |
DIALSTATUS_BUSY |
static String |
DIALSTATUS_CANCEL |
static String |
DIALSTATUS_CHANUNAVAIL |
static String |
DIALSTATUS_CONGESTION |
static String |
DIALSTATUS_DONTCALL |
static String |
DIALSTATUS_INVALIDARGS |
static String |
DIALSTATUS_NOANSWER |
static String |
DIALSTATUS_TORTURE |
static String |
SUBEVENT_BEGIN |
static String |
SUBEVENT_END |
callerIdName, callerIdNum, channelState, channelStateDesc, connectedLineName, connectedLineNum, context, exten, priority
source
Constructor and Description |
---|
DialEvent(DialBeginEvent dialBeginEvent)
Enro 2015-03 Workaround to build legacy DialEvent (unsupported in
Asterisk 13) from new DialBeginEvent Asterisk 13.
|
DialEvent(Object source) |
Modifier and Type | Method and Description |
---|---|
String |
getCallerId()
Deprecated.
as of 1.0.0, use
ManagerEvent.getCallerIdNum() instead. |
String |
getChannel()
Returns the name of the source channel.
|
String |
getDestCallerIdName() |
String |
getDestCallerIdNum() |
String |
getDestChannel() |
Integer |
getDestChannelState() |
String |
getDestChannelStateDesc() |
String |
getDestConnectedLineName() |
String |
getDestConnectedLineNum() |
String |
getDestContext() |
String |
getDestExten() |
String |
getDestination()
Returns the name of the destination channel.
|
Integer |
getDestPriority() |
String |
getDestUniqueId()
Returns the unique ID of the destination channel.
|
String |
getDialStatus()
For end subevents this returns whether the completion status of the dial
application.
Possible values are: CHANUNAVAIL CONGESTION NOANSWER BUSY ANSWER CANCEL DONTCALL TORTURE INVALIDARGS It corresponds the the DIALSTATUS variable used in the dialplan. |
String |
getDialString()
Returns the dial string passed to the Dial application.
|
String |
getSrc()
Deprecated.
as of 1.0.0, use
getChannel() instead. |
String |
getSrcUniqueId()
Deprecated.
as of 1.0.0, use
getUniqueId() instead. |
String |
getSubEvent()
Since Asterisk 1.6 the begin and the end of a dial command generate a
Dial event.
|
String |
getUniqueId()
Returns the unique ID of the source channel.
|
void |
setCallerId(String callerId)
Deprecated.
as of 1.0.0, use
#setCallerIdNum() instead. |
void |
setChannel(String channel)
Returns the name of the source channel.
|
void |
setDestCallerIdName(String destCallerIdName) |
void |
setDestCallerIdNum(String destCallerIdNum) |
void |
setDestChannel(String destination) |
void |
setDestChannelState(Integer destChannelState) |
void |
setDestChannelStateDesc(String destChannelStateDesc) |
void |
setDestConnectedLineName(String destConnectedLineName) |
void |
setDestConnectedLineNum(String destConnectedLineNum) |
void |
setDestContext(String destContext) |
void |
setDestExten(String destExten) |
void |
setDestination(String destination)
Sets the name of the destination channel.
|
void |
setDestPriority(Integer destPriority) |
void |
setDestUniqueId(String destUniqueId)
Sets the unique ID of the destination channel.
|
void |
setDialStatus(String dialStatus) |
void |
setDialString(String dialString)
Sets the dial string passed to the Dial application.
|
void |
setSrc(String src)
Sets the name of the source channel.
|
void |
setSrcUniqueId(String srcUniqueId)
Sets the unique ID of the source channel.
|
void |
setSubEvent(String subEvent) |
void |
setUniqueId(String srcUniqueId)
Sets the unique ID of the source channel.
|
String |
toString() |
appendPropertyIfNotNull, getCallerIdName, getCallerIdNum, getChannelState, getChannelStateDesc, getConnectedLineName, getConnectedLineNum, getContext, getDateReceived, getExten, getFile, getFunc, getLine, getPriority, getPrivilege, getSequenceNumber, getServer, getSystemName, getTimestamp, setCallerIdName, setCallerIdNum, setChannelState, setChannelStateDesc, setConnectedLineName, setConnectedLineNum, setContext, setDateReceived, setExten, setFile, setFunc, setLine, setPriority, setPrivilege, setSequenceNumber, setServer, setSystemName, setTimestamp
getSource
public static final String SUBEVENT_BEGIN
public static final String SUBEVENT_END
public static final String DIALSTATUS_CHANUNAVAIL
public static final String DIALSTATUS_CONGESTION
public static final String DIALSTATUS_NOANSWER
public static final String DIALSTATUS_BUSY
public static final String DIALSTATUS_ANSWER
public static final String DIALSTATUS_CANCEL
public static final String DIALSTATUS_DONTCALL
public static final String DIALSTATUS_TORTURE
public static final String DIALSTATUS_INVALIDARGS
public DialEvent(Object source)
public DialEvent(DialBeginEvent dialBeginEvent)
public String getSubEvent()
public void setSubEvent(String subEvent)
public String getChannel()
public void setChannel(String channel)
channel
- the name of the source channel.@Deprecated public String getSrc()
getChannel()
instead.public void setSrc(String src)
Asterisk versions up to 1.4 use the "Source" property instead of "Channel".
src
- the name of the source channel.public String getDestination()
public String getDestChannel()
public void setDestination(String destination)
destination
- the name of the destination channel.public void setDestChannel(String destination)
@Deprecated public String getCallerId()
ManagerEvent.getCallerIdNum()
instead.@Deprecated public void setCallerId(String callerId)
#setCallerIdNum()
instead.callerId
- the caller*ID.public String getUniqueId()
public void setUniqueId(String srcUniqueId)
srcUniqueId
- the unique ID of the source channel.@Deprecated public String getSrcUniqueId()
getUniqueId()
instead.public void setSrcUniqueId(String srcUniqueId)
Asterisk versions up to 1.4 use the "SrcUniqueId" property instead of "UniqueId".
srcUniqueId
- the unique ID of the source channel.public String getDestUniqueId()
public void setDestUniqueId(String destUniqueId)
destUniqueId
- the unique ID of the destination channel.public String getDialString()
Available since Asterisk 1.6.
public void setDialString(String dialString)
dialString
- the dial string passed to the Dial application.public String getDialStatus()
Available since Asterisk 1.6.
public void setDialStatus(String dialStatus)
public String toString()
toString
in class ManagerEvent
public Integer getDestChannelState()
public void setDestChannelState(Integer destChannelState)
public String getDestContext()
public void setDestContext(String destContext)
public Integer getDestPriority()
public void setDestPriority(Integer destPriority)
public String getDestChannelStateDesc()
public void setDestChannelStateDesc(String destChannelStateDesc)
public String getDestExten()
public void setDestExten(String destExten)
public String getDestConnectedLineName()
public void setDestConnectedLineName(String destConnectedLineName)
public String getDestConnectedLineNum()
public void setDestConnectedLineNum(String destConnectedLineNum)
public String getDestCallerIdName()
public void setDestCallerIdName(String destCallerIdName)
public String getDestCallerIdNum()
public void setDestCallerIdNum(String destCallerIdNum)
Copyright © 2004–2020. All rights reserved.