Class BaseOnmsAgiScript
- java.lang.Object
-
- org.asteriskjava.fastagi.AgiOperations
-
- org.asteriskjava.fastagi.BaseAgiScript
-
- org.opennms.netmgt.asterisk.agi.scripts.BaseOnmsAgiScript
-
- All Implemented Interfaces:
org.asteriskjava.fastagi.AgiChannel,org.asteriskjava.fastagi.AgiScript
- Direct Known Subclasses:
LouieLouieLyricsAgiScript,ReadNoticeDetailsAgiScript
public abstract class BaseOnmsAgiScript extends org.asteriskjava.fastagi.BaseAgiScriptAbstract BaseOnmsAgiScript class.
- Version:
- $Id: $
- Author:
- jeffg
-
-
Field Summary
Fields Modifier and Type Field Description protected static StringVAR_INTERRUPT_DIGITSConstantVAR_INTERRUPT_DIGITS="INTERRUPT_DIGITS"static StringVAR_OPENNMS_INTERFACEConstantVAR_OPENNMS_INTERFACE="OPENNMS_INTERFACE"static StringVAR_OPENNMS_NODEIDConstantVAR_OPENNMS_NODEID="OPENNMS_NODEID"static StringVAR_OPENNMS_NODELABELConstantVAR_OPENNMS_NODELABEL="OPENNMS_NODELABEL"static StringVAR_OPENNMS_NOTIFY_BODYConstantVAR_OPENNMS_NOTIFY_BODY="OPENNMS_NOTIFY_BODY"static StringVAR_OPENNMS_NOTIFY_SUBJECTConstantVAR_OPENNMS_NOTIFY_SUBJECT="OPENNMS_NOTIFY_SUBJECT"static StringVAR_OPENNMS_SERVICEConstantVAR_OPENNMS_SERVICE="OPENNMS_SERVICE"static StringVAR_OPENNMS_USER_PINConstantVAR_OPENNMS_USER_PIN="OPENNMS_USER_PIN"static StringVAR_OPENNMS_USERNAMEConstantVAR_OPENNMS_USERNAME="OPENNMS_USERNAME"
-
Constructor Summary
Constructors Constructor Description BaseOnmsAgiScript()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected charsayAlphaInterruptible(String text)sayAlphaInterruptibleprotected charsayDateTimeInterruptible(long time)sayDateTimeInterruptibleprotected charsayDigitsInterruptible(String digits)sayDigitsInterruptibleprotected charsayIpAddressInterruptible(String addrString)sayIpAddressInterruptibleprotected charsayIpAddressInterruptible(InetAddress addr)sayIpAddressInterruptibleprotected charsayNumberInterruptible(String number)sayNumberInterruptibleprotected charsayPhoneticInterruptible(String text)sayPhoneticInterruptibleprotected charsayTimeInterruptible(long time)sayTimeInterruptibleprotected charstreamFileInterruptible(String file)streamFileInterruptible-
Methods inherited from class org.asteriskjava.fastagi.AgiOperations
answer, continueAt, controlStreamFile, controlStreamFile, controlStreamFile, controlStreamFile, databaseDel, databaseDelTree, databaseDelTree, databaseGet, databasePut, exec, exec, getChannel, getChannelStatus, getData, getData, getData, getFullVariable, getFullVariable, getLastReply, getName, getOption, getOption, getUniqueId, getVariable, gosub, gosub, hangup, playMusicOnHold, playMusicOnHold, recordFile, recordFile, sayAlpha, sayAlpha, sayDateTime, sayDateTime, sayDateTime, sayDateTime, sayDigits, sayDigits, sayNumber, sayNumber, sayPhonetic, sayPhonetic, sayTime, sayTime, sendCommand, setAutoHangup, setCallerId, setContext, setExtension, setPriority, setVariable, speechActivateGrammar, speechCreate, speechCreate, speechDeactivateGrammar, speechDestroy, speechLoadGrammar, speechRecognize, speechRecognize, speechSet, speechUnloadGrammar, stopMusicOnHold, streamFile, streamFile, streamFile, verbose, waitForDigit
-
-
-
-
Field Detail
-
VAR_INTERRUPT_DIGITS
protected static final String VAR_INTERRUPT_DIGITS
ConstantVAR_INTERRUPT_DIGITS="INTERRUPT_DIGITS"- See Also:
- Constant Field Values
-
VAR_OPENNMS_INTERFACE
public static final String VAR_OPENNMS_INTERFACE
ConstantVAR_OPENNMS_INTERFACE="OPENNMS_INTERFACE"- See Also:
- Constant Field Values
-
VAR_OPENNMS_SERVICE
public static final String VAR_OPENNMS_SERVICE
ConstantVAR_OPENNMS_SERVICE="OPENNMS_SERVICE"- See Also:
- Constant Field Values
-
VAR_OPENNMS_NODEID
public static final String VAR_OPENNMS_NODEID
ConstantVAR_OPENNMS_NODEID="OPENNMS_NODEID"- See Also:
- Constant Field Values
-
VAR_OPENNMS_NODELABEL
public static final String VAR_OPENNMS_NODELABEL
ConstantVAR_OPENNMS_NODELABEL="OPENNMS_NODELABEL"- See Also:
- Constant Field Values
-
VAR_OPENNMS_NOTIFY_SUBJECT
public static final String VAR_OPENNMS_NOTIFY_SUBJECT
ConstantVAR_OPENNMS_NOTIFY_SUBJECT="OPENNMS_NOTIFY_SUBJECT"- See Also:
- Constant Field Values
-
VAR_OPENNMS_NOTIFY_BODY
public static final String VAR_OPENNMS_NOTIFY_BODY
ConstantVAR_OPENNMS_NOTIFY_BODY="OPENNMS_NOTIFY_BODY"- See Also:
- Constant Field Values
-
VAR_OPENNMS_USER_PIN
public static final String VAR_OPENNMS_USER_PIN
ConstantVAR_OPENNMS_USER_PIN="OPENNMS_USER_PIN"- See Also:
- Constant Field Values
-
VAR_OPENNMS_USERNAME
public static final String VAR_OPENNMS_USERNAME
ConstantVAR_OPENNMS_USERNAME="OPENNMS_USERNAME"- See Also:
- Constant Field Values
-
-
Method Detail
-
sayAlphaInterruptible
protected char sayAlphaInterruptible(String text) throws org.asteriskjava.fastagi.AgiException
sayAlphaInterruptible
- Parameters:
text- aStringobject.- Returns:
- a char.
- Throws:
org.asteriskjava.fastagi.AgiException- if any.
-
sayDateTimeInterruptible
protected char sayDateTimeInterruptible(long time) throws org.asteriskjava.fastagi.AgiExceptionsayDateTimeInterruptible
- Parameters:
time- a long.- Returns:
- a char.
- Throws:
org.asteriskjava.fastagi.AgiException- if any.
-
sayDigitsInterruptible
protected char sayDigitsInterruptible(String digits) throws org.asteriskjava.fastagi.AgiException
sayDigitsInterruptible
- Parameters:
digits- aStringobject.- Returns:
- a char.
- Throws:
org.asteriskjava.fastagi.AgiException- if any.
-
sayNumberInterruptible
protected char sayNumberInterruptible(String number) throws org.asteriskjava.fastagi.AgiException
sayNumberInterruptible
- Parameters:
number- aStringobject.- Returns:
- a char.
- Throws:
org.asteriskjava.fastagi.AgiException- if any.
-
sayPhoneticInterruptible
protected char sayPhoneticInterruptible(String text) throws org.asteriskjava.fastagi.AgiException
sayPhoneticInterruptible
- Parameters:
text- aStringobject.- Returns:
- a char.
- Throws:
org.asteriskjava.fastagi.AgiException- if any.
-
sayTimeInterruptible
protected char sayTimeInterruptible(long time) throws org.asteriskjava.fastagi.AgiExceptionsayTimeInterruptible
- Parameters:
time- a long.- Returns:
- a char.
- Throws:
org.asteriskjava.fastagi.AgiException- if any.
-
sayIpAddressInterruptible
protected char sayIpAddressInterruptible(InetAddress addr) throws org.asteriskjava.fastagi.AgiException
sayIpAddressInterruptible
- Parameters:
addr- aInetAddressobject.- Returns:
- a char.
- Throws:
org.asteriskjava.fastagi.AgiException- if any.
-
sayIpAddressInterruptible
protected char sayIpAddressInterruptible(String addrString) throws org.asteriskjava.fastagi.AgiException
sayIpAddressInterruptible
- Parameters:
addrString- aStringobject.- Returns:
- a char.
- Throws:
org.asteriskjava.fastagi.AgiException- if any.
-
-