|
Asterisk-Java | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.EventObject
org.asteriskjava.manager.event.ManagerEvent
org.asteriskjava.manager.event.DialEvent
public class DialEvent
A dial event is triggered whenever a phone attempts to dial someone.
This event is implemented in apps/app_dial.c.
Available since Asterisk 1.2.
| Field Summary | |
|---|---|
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
|
| Fields inherited from class java.util.EventObject |
|---|
source |
| Constructor Summary | |
|---|---|
DialEvent(Object source)
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class org.asteriskjava.manager.event.ManagerEvent |
|---|
appendPropertyIfNotNull, getDateReceived, getFile, getFunc, getLine, getPrivilege, getSequenceNumber, getServer, getTimestamp, setDateReceived, setFile, setFunc, setLine, setPrivilege, setSequenceNumber, setServer, setTimestamp, toString |
| Methods inherited from class java.util.EventObject |
|---|
getSource |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
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
| Constructor Detail |
|---|
public DialEvent(Object source)
| Method Detail |
|---|
public String getSubEvent()
public void setSubEvent(String subEvent)
public String getChannel()
public void setChannel(String channel)
channel - the name of the source channel.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)
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.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)
|
Asterisk-Java | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||