|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.orderlysoftware.orderlycalls.examples.OrderlyQExample
public class OrderlyQExample
OrderlyQ - Advanced, Caller Friendly Queue Control
50% of all callers hang up after just 45 seconds of waiting on hold. (Source: Avaya)
OrderlyQ is a revolutionary call queuing system that lets your callers hang up and call back without losing their place in the queue.
This example application of OrderlyQ makes all callers wait for five mintues. The full version is available from Orderly Software (http://www.orderlyq.com), and does not have this limitation.
This class is an Example, for Demonstration purposes ONLY.
You MAY NOT use this file or compiled classes derived from this file for anything other than your own personal demonstration purposes.
This file IS NOT distributed under the terms of the GNU Lesser General Public License.
Please see the accompanying documentation for usage restrictions with OrderlyCalls and queuing.
Constructor Summary | |
---|---|
OrderlyQExample()
|
Method Summary | |
---|---|
java.lang.String |
enterNumber(java.lang.String message)
Ask caller to enter a number. |
static OrderlyQExampleSettings |
getSettings(AGIServer server)
Gets settings associated with a particular AGIServer. |
int |
peopleAheadOf(com.orderlysoftware.orderlycalls.examples.OrderlyQExample.Caller caller)
|
void |
processCall(AGIConnection agi)
Implement this method to handle incoming calls. |
boolean |
processPress(int result)
Handles interrupt from caller to enter data. |
void |
setSecondsLeft(com.orderlysoftware.orderlycalls.examples.OrderlyQExample.Caller caller)
|
static void |
setSettings(AGIServer server,
OrderlyQExampleSettings settings)
Store a settings object for a particular AGIServer. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public OrderlyQExample()
Method Detail |
---|
public static OrderlyQExampleSettings getSettings(AGIServer server)
server
- The server in which to look for the settings.
public static void setSettings(AGIServer server, OrderlyQExampleSettings settings)
server
- The server corresponding to the settingssettings
- the settings to store.public java.lang.String enterNumber(java.lang.String message) throws java.io.IOException
message
- The request message to play
java.io.IOException
public boolean processPress(int result) throws java.io.IOException
result
- the number pressed (ASCII).
java.io.IOException
public int peopleAheadOf(com.orderlysoftware.orderlycalls.examples.OrderlyQExample.Caller caller)
public void setSecondsLeft(com.orderlysoftware.orderlycalls.examples.OrderlyQExample.Caller caller)
public void processCall(AGIConnection agi) throws java.io.IOException
AGIProcessor
If you find you need a variety of processors, for instance to handle calls differently depending on contexts, create one 'master' processor, which delegates to more specific instance implementations depending on call context information.
If the caller hangs up during the processing, an IOException is thrown. You can catch this yourself if you need to do any other cleanup, otherwise the AGIServer will close the connection for you.
processCall
in interface AGIProcessor
agi
- An object representing the data and methods available for
processing this call.
java.io.IOException
- if the caller hangs up.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |