[asterisk-app-dev] I did't understand the deviceStates command

Oscar scriviaoscar at yahoo.it
Thu Apr 16 05:08:20 CDT 2015


If I set the device :
curl -v -u asterisk:asterisk -X GET "http://my-ip:8088/ari/deviceStates/sipphone"

then:
< HTTP/1.1 200 OK* Server Asterisk/13.1.0 is not blacklisted< Server: Asterisk/13.1.0< Date: Thu, 16 Apr 2015 10:05:17 GMT< Cache-Control: no-cache, no-store< Content-type: application/json< Content-Length: 49<{  "name": "sipphone",  "state": "INVALID"
always state invalid, both sipphone is in calling or not ... Why?thanks  _______________________________________________________________________
Oscar OXY

      Da: Oscar <scriviaoscar at yahoo.it>
 A: "asterisk-app-dev at lists.digium.com" <asterisk-app-dev at lists.digium.com> 
 Inviato: Giovedì 16 Aprile 2015 11:12
 Oggetto: I did't understand the deviceStates command
   


I do 
curl -v -u asterisk:asterisk -X GET "http://my-ip:8088/ari/deviceStates"
then result is:
* Hostname was NOT found in DNS cache*   Trying my-ip...* Connected to my-ip (my-ip) port 8088 (#0)* Server auth using Basic with user 'contractphonecti'> GET /ari/deviceStates HTTP/1.1> Authorization: Basic Y29udHJhY3RwaG9uZWN0aTpPWXdqbTEyV1dqaWtvaw==> User-Agent: curl/7.35.0> Host: my-ip8:8088> Accept: */*>< HTTP/1.1 200 OK* Server Asterisk/13.1.0 is not blacklisted< Server: Asterisk/13.1.0< Date: Thu, 16 Apr 2015 09:03:12 GMT< Cache-Control: no-cache, no-store< Content-type: application/json< Content-Length: 2<* Connection #0 to host my-ip left intact though the channels exist (that is calling)... 




Why? Where do I mistake?thanks

 _______________________________________________________________________
Oscar OXY


   

  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-app-dev/attachments/20150416/8068140b/attachment-0001.html>


More information about the asterisk-app-dev mailing list