[asterisk-app-dev] I don't understand command "events"
Oscar
scriviaoscar at yahoo.it
Thu Feb 26 11:41:16 CST 2015
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-app-dev/attachments/20150226/ebb04080/attachment.html>
More information about the asterisk-app-dev
mailing list