public class AgiExecEvent extends ManagerEvent
res/res_agi.c
.
Modifier and Type | Field and Description |
---|---|
static String |
SUB_EVENT_END
Execution of an AGI command has finished.
|
static String |
SUB_EVENT_START
Execution of an AGI command has started.
|
callerIdName, callerIdNum, channelState, channelStateDesc, connectedLineName, connectedLineNum, context, exten, priority
source
Constructor and Description |
---|
AgiExecEvent(Object source)
Creates a new AgiExecEvent.
|
Modifier and Type | Method and Description |
---|---|
String |
getAccountCode()
Returns the account code set for CDR.
|
String |
getChannel()
Returns the name of the channel this event occurred on.
|
String |
getCommand()
Returns the AGI command.
|
String |
getCommandId()
Returns the command id.
|
String |
getResult()
Returns the result as a string.
|
Integer |
getResultCode()
Returns the result code.
|
String |
getSubEvent()
Returns the sub event type.
|
String |
getUniqueId() |
boolean |
isEnd()
Checks is this an end sub event.
|
boolean |
isStart()
Checks is this a start sub event.
|
void |
setAccountCode(String accountCode)
Sets the account code used for billing in the CDR.
|
void |
setChannel(String channel)
Sets the name of the channel this event occurred on.
|
void |
setCommand(String command)
Sets the AGI command.
|
void |
setCommandId(String commandId)
Sets the command id.
|
void |
setResult(String result)
Sets the string respresentation of the result.
|
void |
setResultCode(Integer resultCode)
Sets the result code.
|
void |
setSubEvent(String subEvent)
Sets the sub event type.
|
void |
setUniqueId(String uniqueId) |
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, toString
getSource
public static final String SUB_EVENT_START
public static final String SUB_EVENT_END
public AgiExecEvent(Object source)
source
- public String getUniqueId()
public void setUniqueId(String uniqueId)
public String getChannel()
public void setChannel(String channel)
channel
- the name of the channel this event occurred on.public String getSubEvent()
SUB_EVENT_START
,
SUB_EVENT_END
public void setSubEvent(String subEvent)
subEvent
- the sub event type.public String getCommandId()
public void setCommandId(String commandId)
commandId
- the command id.public String getCommand()
public void setCommand(String command)
command
- the AGI command.public Integer getResultCode()
public void setResultCode(Integer resultCode)
resultCode
- the result code.public String getResult()
They correspond to the numeric values returned by getResultCode()
. Usually you will want to stick with the numeric values.
Possible values are:
public void setResult(String result)
result
- a string respresentation of the result.public String getAccountCode()
public void setAccountCode(String accountCode)
accountCode
- public boolean isStart()
true
if this is a "Start" sub event, false
otherwise.public boolean isEnd()
true
if this is an "End" sub event, false
otherwise.Copyright © 2004–2020. All rights reserved.