|
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 java.lang.String |
DIALSTATUS_ANSWER
|
static java.lang.String |
DIALSTATUS_BUSY
|
static java.lang.String |
DIALSTATUS_CANCEL
|
static java.lang.String |
DIALSTATUS_CHANUNAVAIL
|
static java.lang.String |
DIALSTATUS_CONGESTION
|
static java.lang.String |
DIALSTATUS_DONTCALL
|
static java.lang.String |
DIALSTATUS_INVALIDARGS
|
static java.lang.String |
DIALSTATUS_NOANSWER
|
static java.lang.String |
DIALSTATUS_TORTURE
|
static java.lang.String |
SUBEVENT_BEGIN
|
static java.lang.String |
SUBEVENT_END
|
Fields inherited from class java.util.EventObject |
---|
source |
Constructor Summary | |
---|---|
DialEvent(java.lang.Object source)
|
Method Summary | |
---|---|
java.lang.String |
getCallerId()
Deprecated. as of 1.0.0, use getCallerIdNum() instead. |
java.lang.String |
getCallerIdName()
Returns the Caller*ID Name. |
java.lang.String |
getCallerIdNum()
Returns the the Caller*ID Number. |
java.lang.String |
getChannel()
Returns the name of the source channel. |
java.lang.String |
getDestination()
Returns the name of the destination channel. |
java.lang.String |
getDestUniqueId()
Returns the unique ID of the destination channel. |
java.lang.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. |
java.lang.String |
getDialString()
Returns the dial string passed to the Dial application. |
java.lang.String |
getSrc()
Deprecated. as of 1.0.0, use getChannel() instead. |
java.lang.String |
getSrcUniqueId()
Deprecated. as of 1.0.0, use getUniqueId() instead. |
java.lang.String |
getSubEvent()
Since Asterisk 1.6 the begin and the end of a dial command generate a Dial event. |
java.lang.String |
getUniqueId()
Returns the unique ID of the source channel. |
void |
setCallerId(java.lang.String callerId)
Sets the caller*ID. |
void |
setCallerIdName(java.lang.String callerIdName)
Sets the Caller*Id Name. |
void |
setCallerIdNum(java.lang.String callerIdNum)
|
void |
setChannel(java.lang.String channel)
Returns the name of the source channel. |
void |
setDestination(java.lang.String destination)
Sets the name of the destination channel. |
void |
setDestUniqueId(java.lang.String destUniqueId)
Sets the unique ID of the destination channel. |
void |
setDialStatus(java.lang.String dialStatus)
|
void |
setDialString(java.lang.String dialString)
Sets the dial string passed to the Dial application. |
void |
setSrc(java.lang.String src)
Sets the name of the source channel. |
void |
setSrcUniqueId(java.lang.String srcUniqueId)
Sets the unique ID of the source channel. |
void |
setSubEvent(java.lang.String subEvent)
|
void |
setUniqueId(java.lang.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 java.lang.String SUBEVENT_BEGIN
public static final java.lang.String SUBEVENT_END
public static final java.lang.String DIALSTATUS_CHANUNAVAIL
public static final java.lang.String DIALSTATUS_CONGESTION
public static final java.lang.String DIALSTATUS_NOANSWER
public static final java.lang.String DIALSTATUS_BUSY
public static final java.lang.String DIALSTATUS_ANSWER
public static final java.lang.String DIALSTATUS_CANCEL
public static final java.lang.String DIALSTATUS_DONTCALL
public static final java.lang.String DIALSTATUS_TORTURE
public static final java.lang.String DIALSTATUS_INVALIDARGS
Constructor Detail |
---|
public DialEvent(java.lang.Object source)
Method Detail |
---|
public java.lang.String getSubEvent()
public void setSubEvent(java.lang.String subEvent)
public java.lang.String getChannel()
public void setChannel(java.lang.String channel)
channel
- the name of the source channel.public java.lang.String getSrc()
getChannel()
instead.
public void setSrc(java.lang.String src)
Asterisk versions up to 1.4 use the "Source" property instead of "Channel".
src
- the name of the source channel.public java.lang.String getDestination()
public void setDestination(java.lang.String destination)
destination
- the name of the destination channel.public java.lang.String getCallerIdNum()
public void setCallerIdNum(java.lang.String callerIdNum)
public java.lang.String getCallerId()
getCallerIdNum()
instead.
public void setCallerId(java.lang.String callerId)
callerId
- the caller*ID.public java.lang.String getCallerIdName()
public void setCallerIdName(java.lang.String callerIdName)
callerIdName
- the Caller*Id Name to set.public java.lang.String getUniqueId()
public void setUniqueId(java.lang.String srcUniqueId)
srcUniqueId
- the unique ID of the source channel.public java.lang.String getSrcUniqueId()
getUniqueId()
instead.
public void setSrcUniqueId(java.lang.String srcUniqueId)
Asterisk versions up to 1.4 use the "SrcUniqueId" property instead of "UniqueId".
srcUniqueId
- the unique ID of the source channel.public java.lang.String getDestUniqueId()
public void setDestUniqueId(java.lang.String destUniqueId)
destUniqueId
- the unique ID of the destination channel.public java.lang.String getDialString()
Available since Asterisk 1.6.
public void setDialString(java.lang.String dialString)
dialString
- the dial string passed to the Dial application.public java.lang.String getDialStatus()
Available since Asterisk 1.6.
public void setDialStatus(java.lang.String dialStatus)
|
Asterisk-Java | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |