Displaying 1 result from an estimated 1 matches for "y29tzxq6mtizna".
2013 Sep 12
1
How to get call progress events from WebSocket connected to Asterisk 12 ARI events API
...nt code, or web reference would be most welcome.
Thanks.
Jim
Node.js client connecting to ARI events:
// app.js
var WebSocket = require('ws');
var ws = new WebSocket('ws://192.168.1.125:8088/ari/events?app=node-client
',
{ headers: {
Authorization: 'Basic Y29tZXQ6MTIzNA=='
},
protocol: 'ari',
});
ws.on('open', function() {
console.log('connected');
});
ws.on('message', function(message) {
console.log('received: %s', message);
});
ws.on('error', function(err) {
console.log(...