title: DEVICE_STATE(SIP/mypeer) in Asterisk returning only UNAVAILABLE and NOT_INUSE, not returning other status why?
body: <p><code>DEVICE_STATE(SIP/mypeer)</code> is returning only <code>UNAVAILABLE</code> and <code>NOT_INUSE</code> but not the other available options such as <code>UNKNOWN</code>, <code>INUSE</code>, <code>BUSY</code>, <code>INVALID</code>, <code>RINGING</code>, <code>RINGINUSE</code>, <code>ONHOLD</code>. </p>
  
  <pre><code>exten=&gt;1,NoOp(SIP/mypeer has state ${DEVICE_STATE(SIP/mypeer)})
  same=&gt;2,ExecIf($[${DEVICE_STATE(SIP/mypeer)}=NOT_INUSE]?Goto(5):Goto(2))
  </code></pre>
  
  <p>Here I am expecting the <code>device_state</code> should return <code>busy</code>, <code>ringing</code>, <code>inuse</code> or <code>onhold</code> at <code>mypeer</code> while getting a second call but I am getting only <code>UNAVAILABLE</code> and <code>NOT_INUSE</code> as output. </p>
  
  <p>I already set <code>callcounter=yes</code> and <code>call-limit=1000</code>. What should I do now? </p>