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
Oscar OXY
Da: Oscar <scriviaoscar@xxxxxxxx>
A: "asterisk-app-dev@xxxxxxxxxxxxxxxx" <asterisk-app-dev@xxxxxxxxxxxxxxxx>
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
Oscar OXY
_______________________________________________ asterisk-app-dev mailing list asterisk-app-dev@xxxxxxxxxxxxxxxx http://lists.digium.com/cgi-bin/mailman/listinfo/asterisk-app-dev