public class AsteriskOriginator extends Object
| Constructor and Description | 
|---|
AsteriskOriginator()
Default constructor. 
 | 
AsteriskOriginator(Properties amiProps)
Constructor for AsteriskOriginator. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
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 
 | 
public AsteriskOriginator(Properties amiProps) throws AsteriskOriginatorException
Constructor for AsteriskOriginator.
amiProps - a Properties object.AsteriskOriginatorException - if any.public AsteriskOriginator()
                   throws AsteriskOriginatorException
AsteriskOriginatorException - if any.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 channel for 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()
Copyright © 2020. All rights reserved.