|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.opennms.netmgt.asterisk.utils.AsteriskOriginator
public class AsteriskOriginator
Originates a call using the Asterisk Manager API
| Constructor Summary | |
|---|---|
AsteriskOriginator()
Default constructor. |
|
AsteriskOriginator(Properties amiProps)
Constructor for AsteriskOriginator. |
|
| Method Summary | |
|---|---|
org.asteriskjava.manager.action.OriginateAction |
buildOriginateAction()
Build a complete OriginateAction ready for dispatching. |
String |
getAmiHost()
getAmiHost |
Properties |
getAmiProps()
This returns the properties configured in the asterisk-configuration.properties file. |
String |
getCallerId()
getCallerId |
String |
getChannelVariable(String name)
Retrieves a named channel variable for the originated call |
Map<String,String> |
getChannelVariables()
Retrieves a Map of channel variables for the originated call |
String |
getLegAChannel()
getLegAChannel |
String |
getLegAExtension()
getLegAExtension |
String |
getMessageText()
getMessageText |
String |
getSubject()
getSubject |
boolean |
isDebug()
isDebug |
void |
originateCall()
Originates a call based on properties set on this bean. |
void |
setAmiHost(String amiHost)
setAmiHost |
void |
setCallerId(String cid)
setCallerId |
void |
setChannelVariable(String name,
String value)
Sets a variable on the channel used for the originated call |
void |
setDebug(boolean debug)
setDebug |
void |
setLegAChannel(String chan)
setLegAChannel |
void |
setLegAExtension(String exten)
setLegAExtension |
void |
setMessageText(String messageText)
setMessageText |
void |
setSubject(String subject)
setSubject |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AsteriskOriginator(Properties amiProps)
throws AsteriskOriginatorException
Constructor for AsteriskOriginator.
amiProps - a Properties object.
AsteriskOriginatorException - if any.
public AsteriskOriginator()
throws AsteriskOriginatorException
AsteriskOriginatorException - if any.| Method Detail |
|---|
public void originateCall()
throws AsteriskOriginatorException
AsteriskOriginatorException - if any.
public org.asteriskjava.manager.action.OriginateAction buildOriginateAction()
throws AsteriskOriginatorException
AsteriskOriginatorException - if any of the underlying operations failpublic String getCallerId()
getCallerId
public void setCallerId(String cid)
setCallerId
cid - The from address to set.public String getAmiHost()
getAmiHost
public void setAmiHost(String amiHost)
throws UnknownHostException
setAmiHost
amiHost - Sets the mail host.
UnknownHostException - if any.public String getMessageText()
getMessageText
public void setMessageText(String messageText)
setMessageText
messageText - Sets the message text.public String getSubject()
getSubject
public void setSubject(String subject)
setSubject
subject - Sets the message Subject.public String getLegAExtension()
getLegAExtension
public void setLegAExtension(String exten)
setLegAExtension
exten - Sets the extension for Leg Apublic String getLegAChannel()
getLegAChannel
public void setLegAChannel(String chan)
setLegAChannel
chan - Sets the channelfor Leg Apublic boolean isDebug()
isDebug
public void setDebug(boolean debug)
setDebug
debug - a boolean.public Properties getAmiProps()
Properties object.
public void setChannelVariable(String name,
String value)
name - Name of variable to setvalue - Value to set for variablepublic Map<String,String> getChannelVariables()
public String getChannelVariable(String name)
name - Name of variable to retrieve
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||