<html><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:13px"><div id="yui_3_16_0_1_1428993257303_88779" dir="ltr"><span id="yui_3_16_0_1_1428993257303_88800">If I set the device :</span></div><div id="yui_3_16_0_1_1428993257303_88779" dir="ltr"><span><br></span></div><div id="yui_3_16_0_1_1428993257303_88779" dir="ltr">curl -v -u asterisk:asterisk -X GET "http://my-ip:8088/ari/<a rel="nofollow" shape="rect" class="" id="yiv0737849130yui_3_16_0_1_1428993257303_82267" target="_blank" href="https://wiki.asterisk.org/wiki/display/AST/Asterisk+13+Devicestates+REST+API#Asterisk13DevicestatesRESTAPI-list" style="text-decoration: none; color: rgb(25, 46, 132); font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px; line-height: 18.1818180084229px; background-color: rgb(255, 255, 255);">deviceStates</a>/sipphone"<span><br></span></div><div id="yui_3_16_0_1_1428993257303_88779" dir="ltr"><span><br></span></div><div id="yui_3_16_0_1_1428993257303_88779" dir="ltr"><span>then:</span></div><div id="yui_3_16_0_1_1428993257303_88779" dir="ltr"><span><br></span></div><div id="yui_3_16_0_1_1428993257303_88779" dir="ltr" class="" style="">< HTTP/1.1 200 OK</div><div id="yui_3_16_0_1_1428993257303_88779" dir="ltr" class="" style="">* Server Asterisk/13.1.0 is not blacklisted</div><div id="yui_3_16_0_1_1428993257303_88779" dir="ltr" class="" style="">< Server: Asterisk/13.1.0</div><div id="yui_3_16_0_1_1428993257303_88779" dir="ltr" class="" style="">< Date: Thu, 16 Apr 2015 10:05:17 GMT</div><div id="yui_3_16_0_1_1428993257303_88779" dir="ltr" class="" style="">< Cache-Control: no-cache, no-store</div><div id="yui_3_16_0_1_1428993257303_88779" dir="ltr" class="" style="">< Content-type: application/json</div><div id="yui_3_16_0_1_1428993257303_88779" dir="ltr" class="" style="">< Content-Length: 49</div><div id="yui_3_16_0_1_1428993257303_88779" dir="ltr" class="" style=""><</div><div id="yui_3_16_0_1_1428993257303_88779" dir="ltr" class="" style="">{</div><div id="yui_3_16_0_1_1428993257303_88779" dir="ltr" class="" style=""> "name": "sipphone",</div><div id="yui_3_16_0_1_1428993257303_88779" dir="ltr"></div><div id="yui_3_16_0_1_1428993257303_88779" dir="ltr" class="" style=""> "state": "INVALID"</div><div id="yui_3_16_0_1_1428993257303_88779" dir="ltr" class="" style=""><br></div><div id="yui_3_16_0_1_1428993257303_88779" dir="ltr" class="" style="">always state invalid, both sipphone is in calling or not ... Why?</div><div></div><div id="yui_3_16_0_1_1428993257303_88780" dir="ltr">thanks </div><div id="yui_3_16_0_1_1428993257303_88780" dir="ltr"> </div><div class="signature" id="yui_3_16_0_1_1428993257303_88802"><div id="yui_3_16_0_1_1428993257303_88801"><span style="font-family:arial, helvetica, sans-serif;color:rgb(208, 208, 208);" id="yui_3_16_0_1_1428993257303_88817">_______________________________________________________________________</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);" id="yui_3_16_0_1_1428993257303_89049">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_1428993257303_88805"> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;" id="yui_3_16_0_1_1428993257303_88804"> <div dir="ltr" id="yui_3_16_0_1_1428993257303_88803"> <hr size="1"> <font size="2" face="Arial" id="yui_3_16_0_1_1428993257303_88863"> <b><span style="font-weight:bold;">Da:</span></b> Oscar <scriviaoscar@yahoo.it><br> <b><span style="font-weight: bold;">A:</span></b> "asterisk-app-dev@lists.digium.com" <asterisk-app-dev@lists.digium.com> <br> <b><span style="font-weight: bold;">Inviato:</span></b> Giovedì 16 Aprile 2015 11:12<br> <b><span style="font-weight: bold;">Oggetto:</span></b> I did't understand the deviceStates command<br> </font> </div> <div class="y_msg_container" id="yui_3_16_0_1_1428993257303_88808"><br><div id="yiv0737849130"><div id="yui_3_16_0_1_1428993257303_88807"><div style="color:#000;background-color:#fff;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:13px;" id="yui_3_16_0_1_1428993257303_88806"><div id="yiv0737849130"><div id="yiv0737849130yui_3_16_0_1_1428993257303_83833"><div id="yiv0737849130yui_3_16_0_1_1428993257303_83832" style="color:#000;background-color:#fff;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:13px;"><div id="yiv0737849130yui_3_16_0_1_1428993257303_82239"><br clear="none"></div><div id="yiv0737849130yui_3_16_0_1_1428993257303_82253" style="font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:13px;"><div id="yiv0737849130yui_3_16_0_1_1428993257303_82252" style="font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px;"><div class="yiv0737849130y_msg_container" id="yiv0737849130yui_3_16_0_1_1428993257303_82255"><div id="yiv0737849130"><div id="yiv0737849130yui_3_16_0_1_1428993257303_82260"><div id="yiv0737849130yui_3_16_0_1_1428993257303_82259" style="color:#000;background-color:#fff;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:13px;"><div id="yiv0737849130yui_3_16_0_1_1428993257303_80321"><span></span></div><div id="yiv0737849130yui_3_16_0_1_1428993257303_80321"><span><br clear="none"></span></div><div dir="ltr" id="yiv0737849130yui_3_16_0_1_1428993257303_80321"><span id="yiv0737849130yui_3_16_0_1_1428993257303_80471">I do </span></div><div dir="ltr" id="yiv0737849130yui_3_16_0_1_1428993257303_80321"><br clear="none"></div><div dir="ltr" id="yiv0737849130yui_3_16_0_1_1428993257303_80321">curl -v -u asterisk:asterisk -X GET "http://my-ip:8088/ari/<a rel="nofollow" shape="rect" class="yiv0737849130" id="yiv0737849130yui_3_16_0_1_1428993257303_82267" target="_blank" href="https://wiki.asterisk.org/wiki/display/AST/Asterisk+13+Devicestates+REST+API#Asterisk13DevicestatesRESTAPI-list" style="color:rgb(25, 46, 132);text-decoration:none;font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:14px;line-height:18.1818180084229px;background-color:rgb(255, 255, 255);">deviceStates</a>"</div><div dir="ltr" id="yiv0737849130yui_3_16_0_1_1428993257303_80321"><br clear="none"></div><div dir="ltr" id="yiv0737849130yui_3_16_0_1_1428993257303_80321">then result is:</div><div dir="ltr" id="yiv0737849130yui_3_16_0_1_1428993257303_80321"><br clear="none"></div><div dir="ltr" id="yiv0737849130yui_3_16_0_1_1428993257303_80321"><div class="yiv0737849130" dir="ltr" id="yiv0737849130yui_3_16_0_1_1428993257303_80321" style="">* Hostname was NOT found in DNS cache</div><div class="yiv0737849130" dir="ltr" id="yiv0737849130yui_3_16_0_1_1428993257303_80321" style="">* Trying my-ip...</div><div class="yiv0737849130" dir="ltr" id="yiv0737849130yui_3_16_0_1_1428993257303_80321" style="">* Connected to my-ip (my-ip) port 8088 (#0)</div><div class="yiv0737849130" dir="ltr" id="yiv0737849130yui_3_16_0_1_1428993257303_80321" style="">* Server auth using Basic with user 'contractphonecti'</div><div class="yiv0737849130" dir="ltr" id="yiv0737849130yui_3_16_0_1_1428993257303_80321" style="">> GET /ari/deviceStates HTTP/1.1</div><div class="yiv0737849130" dir="ltr" id="yiv0737849130yui_3_16_0_1_1428993257303_80321" style="">> Authorization: Basic Y29udHJhY3RwaG9uZWN0aTpPWXdqbTEyV1dqaWtvaw==</div><div class="yiv0737849130" dir="ltr" id="yiv0737849130yui_3_16_0_1_1428993257303_80321" style="">> User-Agent: curl/7.35.0</div><div class="yiv0737849130" dir="ltr" id="yiv0737849130yui_3_16_0_1_1428993257303_80321" style="">> Host: my-ip8:8088</div><div class="yiv0737849130" dir="ltr" id="yiv0737849130yui_3_16_0_1_1428993257303_80321" style="">> Accept: */*</div><div class="yiv0737849130" dir="ltr" id="yiv0737849130yui_3_16_0_1_1428993257303_80321" style="">></div><div class="yiv0737849130" dir="ltr" id="yiv0737849130yui_3_16_0_1_1428993257303_80321" style="">< HTTP/1.1 200 OK</div><div class="yiv0737849130" dir="ltr" id="yiv0737849130yui_3_16_0_1_1428993257303_80321" style="">* Server Asterisk/13.1.0 is not blacklisted</div><div class="yiv0737849130" dir="ltr" id="yiv0737849130yui_3_16_0_1_1428993257303_80321" style="">< Server: Asterisk/13.1.0</div><div class="yiv0737849130" dir="ltr" id="yiv0737849130yui_3_16_0_1_1428993257303_80321" style="">< Date: Thu, 16 Apr 2015 09:03:12 GMT</div><div class="yiv0737849130" dir="ltr" id="yiv0737849130yui_3_16_0_1_1428993257303_80321" style="">< Cache-Control: no-cache, no-store</div><div class="yiv0737849130" dir="ltr" id="yiv0737849130yui_3_16_0_1_1428993257303_80321" style="">< Content-type: application/json</div><div class="yiv0737849130" dir="ltr" id="yiv0737849130yui_3_16_0_1_1428993257303_80321" style="">< Content-Length: 2</div><div class="yiv0737849130" dir="ltr" id="yiv0737849130yui_3_16_0_1_1428993257303_80321" style=""><</div><div class="yiv0737849130" dir="ltr" id="yiv0737849130yui_3_16_0_1_1428993257303_80321" style="">* Connection #0 to host my-ip left intact</div><div class="yiv0737849130" dir="ltr" id="yiv0737849130yui_3_16_0_1_1428993257303_80321" style=""> </div><div class="yiv0737849130" dir="ltr" id="yiv0737849130yui_3_16_0_1_1428993257303_80321" style=""><span class="yiv0737849130" id="yiv0737849130yui_3_16_0_1_1428993257303_82395" style="font-family:arial, sans-serif;white-space:nowrap;">though the channels exist (that is calling)... </span></div></div><div class="qtdSeparateBR"><br><br></div><div class="yiv0737849130yqt5767923328" id="yiv0737849130yqtfd85905"><div class="yiv0737849130qtdSeparateBR"><br clear="none"><br clear="none"></div><div class="yiv0737849130yqt6907911465" id="yiv0737849130yqtfd84847"><div dir="ltr" id="yiv0737849130yui_3_16_0_1_1428993257303_80321"><br clear="none"></div><div class="yiv0737849130" dir="ltr" id="yiv0737849130yui_3_16_0_1_1428993257303_80321" style="">Why? Where do I mistake?</div><div class="yiv0737849130" dir="ltr" id="yiv0737849130yui_3_16_0_1_1428993257303_80321" style="">thanks</div><div dir="ltr" id="yiv0737849130yui_3_16_0_1_1428993257303_80321"><br clear="none"></div><div dir="ltr" id="yiv0737849130yui_3_16_0_1_1428993257303_80321"><br clear="none"></div><div></div><div id="yiv0737849130yui_3_16_0_1_1428993257303_80320"> </div><div class="yiv0737849130signature" id="yiv0737849130yui_3_16_0_1_1428993257303_80318"><div id="yiv0737849130yui_3_16_0_1_1428993257303_80317"><span id="yiv0737849130yui_3_16_0_1_1428993257303_80319" style="font-family:arial, helvetica, sans-serif;color:rgb(208, 208, 208);">_______________________________________________________________________</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></div></div></div><div class="yiv0737849130yqt5767923328" id="yiv0737849130yqtfd84209"><div class="yiv0737849130yqt6907911465" id="yiv0737849130yqtfd78993"><br clear="none"><br clear="none"></div></div></div><div class="yiv0737849130yqt5767923328" id="yiv0737849130yqtfd93965"><div class="yiv0737849130yqt6907911465" id="yiv0737849130yqtfd70539"> </div></div></div><div class="yiv0737849130yqt5767923328" id="yiv0737849130yqtfd92599"><div class="yiv0737849130yqt6907911465" id="yiv0737849130yqtfd24633"> </div></div></div><div class="yiv0737849130yqt5767923328" id="yiv0737849130yqtfd05480"><div class="yiv0737849130yqt6907911465" id="yiv0737849130yqtfd75666"> </div></div></div></div></div></div></div></div><br><br></div> </div> </div> </div></body></html>