Re: I don't understand command "events"

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



you've right, but for the generate user event, 


this is list events


in fact for generate user event ARI work fine, when I launch user event, in websocket I read the new event by user, then I don't understand how do I use list events?
thanks
 
_______________________________________________________________________
Oscar OXY


Da: Naftoli Gugenheim <naftoligug@xxxxxxxxx>
A: Oscar <scriviaoscar@xxxxxxxx>; Asterisk Application Development discussion <asterisk-app-dev@xxxxxxxxxxxxxxxx>
Inviato: Martedì 3 Marzo 2015 0:03
Oggetto: Re: I don't understand command "events"

You need to connect with websockets protocol, and it will send you events when they occur.

On Thu, Feb 26, 2015, 12:41 PM Oscar <scriviaoscar@xxxxxxxx> wrote:


I do:

$ch = curl_init();
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_URL,"http://192.168.56.12:8088/ari/events?app=promozione");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_ANY);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
curl_setopt($ch, CURLOPT_USERPWD, "asterisk:asterisk");
$result=curl_exec($ch);

print "error:" . curl_error($ch) . "<br />";
print "out:" . $result . "<br />";

it result me:
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>426 Upgrade Required</title>
</head><body>
<h1>Upgrade Required</h1>
<p>(null)</p>
<hr />
<address>Asterisk Server</address>
</body></html>
<br />
I didn't understand what do "/ari/events" ? 
in post it's clear  (it launch a n event to websocket), but this command "events" in get?
thanks


 
_______________________________________________________________________
Oscar OXY
_______________________________________________
asterisk-app-dev mailing list
asterisk-app-dev@lists.digium.com
http://lists.digium.com/cgi-bin/mailman/listinfo/asterisk-app-dev


_______________________________________________
asterisk-app-dev mailing list
asterisk-app-dev@xxxxxxxxxxxxxxxx
http://lists.digium.com/cgi-bin/mailman/listinfo/asterisk-app-dev

[Index of Archives]     [Asterisk SS7]     [Asterisk Announcements]     [Asterisk Users]     [PJ SIP]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Linux API]

  Powered by Linux