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 |
source| Modifier and Type | Method and Description |
|---|---|
String |
getCallerId()
Deprecated.
as of 1.0.0, use
getCallerIdNum() instead. |
String |
getCallerIdName()
Returns the Caller*ID Name.
|
String |
getCallerIdNum()
Returns the the Caller*ID Number.
|
String |
getChannel()
Returns the name of the source channel.
|
String |
getDestination()
Returns the name of the destination channel.
|
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)
Sets the caller*ID.
|
void |
setCallerIdName(String callerIdName)
Sets the Caller*Id Name.
|
void |
setCallerIdNum(String callerIdNum) |
void |
setChannel(String channel)
Returns the name of the source channel.
|
void |
setDestination(String destination)
Sets the name of the destination channel.
|
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.
|
appendPropertyIfNotNull, getDateReceived, getFile, getFunc, getLine, getPrivilege, getSequenceNumber, getServer, getTimestamp, setDateReceived, setFile, setFunc, setLine, setPrivilege, setSequenceNumber, setServer, setTimestamp, toStringgetSourcepublic 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 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 void setDestination(String destination)
destination - the name of the destination channel.public String getCallerIdNum()
public void setCallerIdNum(String callerIdNum)
@Deprecated public String getCallerId()
getCallerIdNum() instead.public void setCallerId(String callerId)
callerId - the caller*ID.public String getCallerIdName()
public void setCallerIdName(String callerIdName)
callerIdName - the Caller*Id Name to set.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)
Copyright © 2004-2012 Stefan Reuter. All Rights Reserved.