-
Notifications
You must be signed in to change notification settings - Fork 66
Expand file tree
/
Copy pathoverview.html
More file actions
executable file
·27 lines (27 loc) · 1.08 KB
/
overview.html
File metadata and controls
executable file
·27 lines (27 loc) · 1.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<html>
<body>
A full getting started guide can be found on the <a href="https://github.com/l3nz/ari4java/wiki/Getting-Started">ARI4Java Wiki</a>
<pre>
// create instance
ARI ari = ARI.build("http://192.168.56.44:8088/", "test-app", "ari4java", "yothere", AriVersion.IM_FEELING_LUCKY);
// get info
AsteriskInfo info = ari.asterisk().getInfo().execute();
// get event websocket
ari.events().eventWebsocket("test-app").execute(new AriWSCallback<Message<() {new AriWSCallback<List<Channel>>() {
@Override
public void onSuccess(List<Channel> result) {
// code to handle the result ...
}
@Override
public void onFailure(RestException e) {
e.printStackTrace();
}
@Override
public void onConnectionEvent(AriConnectionEvent event) {
// if you wish to know the status (connected/disconnected) of the WS connection
}
});
</pre>
See <a href="ch/loway/oss/ari4java/ARI.html#method.summary">ch.loway.oss.ari4java.ARI Methods</a>
</body>
</html>