<html><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:13px"><div dir="ltr" id="yui_3_16_0_1_1425136181356_31504"><span id="yui_3_16_0_1_1425136181356_31503">you've right, but for the generate user event, </span></div><div dir="ltr" id="yui_3_16_0_1_1425136181356_31504"><span><br></span></div><div dir="ltr" id="yui_3_16_0_1_1425136181356_31504"><span id="yui_3_16_0_1_1425136181356_31567"><a href="https://wiki.asterisk.org/wiki/display/AST/Asterisk+13+Events+REST+API#Asterisk13EventsRESTAPI-userEvent" id="yui_3_16_0_1_1425136181356_31566">https://wiki.asterisk.org/wiki/display/AST/Asterisk+13+Events+REST+API#Asterisk13EventsRESTAPI-userEvent</a><br></span></div><div dir="ltr" id="yui_3_16_0_1_1425136181356_31504"><span><br></span></div><div dir="ltr" id="yui_3_16_0_1_1425136181356_31504"><span>this is list events</span></div><div dir="ltr" id="yui_3_16_0_1_1425136181356_31504"><span><br></span></div><div dir="ltr" id="yui_3_16_0_1_1425136181356_31504"><span id="yui_3_16_0_1_1425136181356_31534"><a href="https://wiki.asterisk.org/wiki/display/AST/Asterisk+13+Events+REST+API#Asterisk13EventsRESTAPI-eventWebsocket" id="yui_3_16_0_1_1425136181356_31533">https://wiki.asterisk.org/wiki/display/AST/Asterisk+13+Events+REST+API#Asterisk13EventsRESTAPI-eventWebsocket</a><br></span></div><div dir="ltr" id="yui_3_16_0_1_1425136181356_31504"><br></div><div dir="ltr" id="yui_3_16_0_1_1425136181356_31504">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?</div><div dir="ltr" id="yui_3_16_0_1_1425136181356_31504">thanks</div><div></div><div id="yui_3_16_0_1_1425136181356_31502"> </div><div class="signature" id="yui_3_16_0_1_1425136181356_31489"><div id="yui_3_16_0_1_1425136181356_31488"><span style="font-family:arial, helvetica, sans-serif;color:rgb(208, 208, 208);" id="yui_3_16_0_1_1425136181356_31487">_______________________________________________________________________</span><br style="font-family:arial, helvetica, sans-serif;color:rgb(208, 208, 208);"><span style="font-family:arial, helvetica, sans-serif;color:rgb(208, 208, 208);">Oscar OXY</span><br></div></div><br>  <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 13px;" id="yui_3_16_0_1_1425136181356_31493"> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;" id="yui_3_16_0_1_1425136181356_31492"> <div dir="ltr" id="yui_3_16_0_1_1425136181356_31491"> <hr size="1" id="yui_3_16_0_1_1425136181356_31634">  <font size="2" face="Arial" id="yui_3_16_0_1_1425136181356_31490"> <b><span style="font-weight:bold;">Da:</span></b> Naftoli Gugenheim <naftoligug@gmail.com><br> <b><span style="font-weight: bold;">A:</span></b> Oscar <scriviaoscar@yahoo.it>; Asterisk Application Development discussion <asterisk-app-dev@lists.digium.com> <br> <b><span style="font-weight: bold;">Inviato:</span></b> Martedì 3 Marzo 2015 0:03<br> <b><span style="font-weight: bold;">Oggetto:</span></b> Re: [asterisk-app-dev] I don't understand command "events"<br> </font> </div> <div class="y_msg_container" id="yui_3_16_0_1_1425136181356_31496"><br><div id="yiv1338283570"><div id="yui_3_16_0_1_1425136181356_31495"><div dir="ltr" id="yui_3_16_0_1_1425136181356_31494"><div dir="ltr" id="yui_3_16_0_1_1425136181356_31573">You need to connect with websockets protocol, and it will send you events when they occur.</div>
<br clear="none"><div class="yiv1338283570gmail_quote" id="yui_3_16_0_1_1425136181356_31497">On Thu, Feb 26, 2015, 12:41 PM Oscar <<a rel="nofollow" shape="rect" ymailto="mailto:scriviaoscar@yahoo.it" target="_blank" href="mailto:scriviaoscar@yahoo.it" id="yui_3_16_0_1_1425136181356_31635">scriviaoscar@yahoo.it</a>> wrote:<br clear="none"><blockquote class="yiv1338283570gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;" id="yui_3_16_0_1_1425136181356_31500"><div class="qtdSeparateBR"><br><br></div><div class="yiv1338283570yqt3886586566" id="yiv1338283570yqt76866"><div style="color:#000;background-color:#fff;font-family:verdana, helvetica, sans-serif;font-size:13px;" id="yui_3_16_0_1_1425136181356_31499"><div><span></span></div><div dir="ltr" id="yui_3_16_0_1_1425136181356_31498"><span>I do:</span></div><div dir="ltr" id="yui_3_16_0_1_1425136181356_31501"><span><br clear="none"></span></div><div id="yui_3_16_0_1_1425136181356_31574">$ch = curl_init();</div><div><span> </span><span>       </span>curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, <span>false</span>);</div><div><span>       </span><span>       </span>curl_setopt($ch, CURLOPT_RETURNTRANSFER, <span>true</span>);</div><div><span>        </span><span>       </span></div><div id="yui_3_16_0_1_1425136181356_31575"><span><span>    </span><span>       </span>curl_setopt($ch, CURLOPT_URL,</span>"<a rel="nofollow" shape="rect" target="_blank" onclick="return theMainWindow.showLinkWarning(this)" href="http://192.168.56.12:8088/ari/events?app=promozione">http://192.168.<u></u>56.12:8088/ari/events?app=<u></u>promozione</a>"<span>);</span></div><div id="yui_3_16_0_1_1425136181356_31636"><span>     </span><span>       </span>curl_setopt($ch, CURLOPT_RETURNTRANSFER, <span>true</span>);</div><div id="yui_3_16_0_1_1425136181356_31597"><span>        </span><span>       </span>curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_ANY);</div><div id="yui_3_16_0_1_1425136181356_31589"><span>       </span><span>       </span>curl_setopt($ch, CURLOPT_FOLLOWLOCATION, <span>true</span>);</div><div id="yui_3_16_0_1_1425136181356_31638"><span>        </span><span>       </span>curl_setopt($ch, CURLOPT_USERPWD, <span id="yui_3_16_0_1_1425136181356_31637">"asterisk:asterisk"</span>);</div><div dir="ltr">
























</div><div id="yui_3_16_0_1_1425136181356_31642"><span>     </span><span>       </span>$result=curl_exec($ch);</div><div id="yui_3_16_0_1_1425136181356_31639"><br clear="none"></div><div id="yui_3_16_0_1_1425136181356_31590"><span>print </span><span>"error:" </span>. curl_error($ch) . <span>"<br />"</span>;</div><div>








</div><div id="yui_3_16_0_1_1425136181356_31640"><span><span> </span><span>       </span></span><span>print </span>"out:" <span>. $result . </span>"<br />"<span>;</span></div><div id="yui_3_16_0_1_1425136181356_31641"><span><br clear="none"></span></div><div dir="ltr"><span>it result me:</span></div><pre id="yui_3_16_0_1_1425136181356_31596"><span title="Rilevato doctype in posizione errata."><!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"></span>
<span></span><span title="Rilevato tag di apertura “html” in posizione errata."><<span>html</span>></span><span title="Rilevato tag di apertura “head” in posizione errata."><<span>head</span>></span>
<span></span><<span>title</span>>426 Upgrade Required</<span>title</span>>
<span></span><span title="Rilevato tag di chiusura “head” in posizione errata."></<span>head</span>></span><span title="Rilevato tag di apertura “body” in presenza di un elemento dello stesso tipo già aperto."><<span>body</span>></span>
<span></span><<span>h1</span>>Upgrade Required</<span>h1</span>>
<span></span><<span>p</span>>(null)</<span>p</span>>
<span></span><<span>hr</span> />
<span></span><<span>address</span>>Asterisk Server</<span>address</span>>
<span></span></<span>body</span>></<span>html</span>>
<span></span><span title="Rilevato tag di apertura “br” in posizione errata."><<span>br</span> /></span></pre><pre><span title="Rilevato tag di apertura “br” in posizione errata."><font face="HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif">I didn't understand what do "</font></span><span style="font-family:verdana, helvetica, sans-serif;">/ari/events" ? </span></pre><pre><span style="font-family:verdana, helvetica, sans-serif;">in post it's clear  (it launch a n event to websocket), but this command "events" in get?</span></pre><pre><span style="font-family:verdana, helvetica, sans-serif;">thanks</span></pre><pre><span style="font-family:verdana, helvetica, sans-serif;"><br clear="none"></span></pre><pre><span title="Rilevato tag di apertura “br” in posizione errata."><br clear="none"></span></pre><div></div><div> </div><div><div><span style="font-family:arial, helvetica, sans-serif;color:rgb(208,208,208);">______________________________<u></u>______________________________<u></u>___________</span><br clear="none" style="font-family:arial, helvetica, sans-serif;color:rgb(208,208,208);"><span style="font-family:arial, helvetica, sans-serif;color:rgb(208,208,208);">Oscar OXY</span><br clear="none"></div></div></div></div>______________________________<u></u><u></u>_________________<br clear="none">
asterisk-app-dev mailing list<br clear="none">
<a rel="nofollow" shape="rect" ymailto="mailto:asterisk-app-dev@lists.digium.com" target="_blank" href="mailto:asterisk-app-dev@lists.digium.com">asterisk-app-dev@lists.digium.<u></u><u></u>com</a><br clear="none">
<a rel="nofollow" shape="rect" target="_blank" href="http://lists.digium.com/cgi-bin/mailman/listinfo/asterisk-app-dev">http://lists.digium.com/cgi-<u></u>bi<u></u>n/mailman/listinfo/asterisk-<u></u>ap<u></u>p-dev</a><br clear="none">
</blockquote></div></div></div></div><br><br></div> </div> </div>  </div></body></html>