<div dir="ltr"><p dir="ltr">You need to connect with websockets protocol, and it will send you events when they occur.</p>
<br><div class="gmail_quote">On Thu, Feb 26, 2015, 12:41 PM Oscar <<a href="mailto:scriviaoscar@yahoo.it" target="_blank">scriviaoscar@yahoo.it</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="color:#000;background-color:#fff;font-family:verdana,helvetica,sans-serif;font-size:13px"><div><span></span></div><div dir="ltr"><span>I do:</span></div><div dir="ltr"><span><br></span></div><div>$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><span><span> </span><span> </span>curl_setopt($ch, CURLOPT_URL,</span>"<a href="http://192.168.56.12:8088/ari/events?app=promozione" target="_blank">http://192.168.<u></u>56.12:8088/ari/events?app=<u></u>promozione</a>"<span>);</span></div><div><span> </span><span> </span>curl_setopt($ch, CURLOPT_RETURNTRANSFER, <span>true</span>);</div><div><span> </span><span> </span>curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_ANY);</div><div><span> </span><span> </span>curl_setopt($ch, CURLOPT_FOLLOWLOCATION, <span>true</span>);</div><div><span> </span><span> </span>curl_setopt($ch, CURLOPT_USERPWD, <span>"asterisk:asterisk"</span>);</div><div dir="ltr">
</div><div><span> </span><span> </span>$result=curl_exec($ch);</div><div><br></div><div><span>print </span><span>"error:" </span>. curl_error($ch) . <span>"<br />"</span>;</div><div>
</div><div><span><span> </span><span> </span></span><span>print </span>"out:" <span>. $result . </span>"<br />"<span>;</span></div><div><span><br></span></div><div dir="ltr"><span>it result me:</span></div><pre><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></span></pre><pre><span title="Rilevato tag di apertura “br” in posizione errata."><br></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 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></div>______________________________<u></u><u></u>_________________<br>
asterisk-app-dev mailing list<br>
<a href="mailto:asterisk-app-dev@lists.digium.com" target="_blank">asterisk-app-dev@lists.digium.<u></u><u></u>com</a><br>
<a href="http://lists.digium.com/cgi-bin/mailman/listinfo/asterisk-app-dev" target="_blank">http://lists.digium.com/cgi-<u></u>bi<u></u>n/mailman/listinfo/asterisk-<u></u>ap<u></u>p-dev</a><br>
</blockquote></div></div>