|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.orderlysoftware.orderlycalls.examples.ExampleProcessor
public class ExampleProcessor
Gives best-practice guidelines.
You must have configured a ManagerClient, and an AGIServer to use this example.
The example interacts with the caller, and calls them back after 10 seconds and plays a message.
This example assumes you have entries in your extensions.conf as follows:
exten => orderlycalls,1,agi(agi://192.168.0.1) exten => orderlycalls,2,Hangup exten => orderlycalls,3,Playback(OrderlyCalls/pitch) exten => orderlycalls,4,Hangup
Constructor Summary | |
---|---|
ExampleProcessor()
|
Method Summary | |
---|---|
static int |
getCallerCount()
This method gets the number of callers received. |
static void |
nextCaller()
This method increases the number of callers received. |
void |
processCall(AGIConnection newCall)
Interacts with the caller, and calls them back after 10 seconds with a message. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ExampleProcessor()
Method Detail |
---|
public static void nextCaller()
public static int getCallerCount()
public void processCall(AGIConnection newCall) throws java.io.IOException
processCall
in interface AGIProcessor
newCall
- 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 |