hi,<br>Im taking a look at func_devstate.c and i see that I can only set Custom states.<br>Here&#39;s the problem:<br><br>&nbsp;&nbsp;&nbsp; -- Executing [5145554188@incomingUnlimitel:1] NoOp(&quot;IAX2/5145554188-10&quot;, &quot;SIP/1004 has state NOT_INUSE&quot;) in new stack
<br>&nbsp;&nbsp;&nbsp; -- Executing [5145554188@incomingUnlimitel:2] Set(&quot;IAX2/5145554188-10&quot;, &quot;DEVSTATE(SIP/1004)=BUSY&quot;) in new stack<br>[Jan 15 18:39:19] WARNING[17840]: func_devstate.c:120 devstate_write: The DEVSTATE function can only be used to set &#39;Custom:&#39; device state!
<br>&nbsp;&nbsp;&nbsp; -- Executing [5145554188@incomingUnlimitel:3] NoOp(&quot;IAX2/5145554188-10&quot;, &quot;SIP/1004 has now NOT_INUSE&quot;) in new stack<br><br><br>what about if you want to change current state (mainly from BUSY to NOT_INUSE)
<br><br>So I&#39;ve take a look at:<br>func_devstate.c::devstate_write() to just comment the block checking for Custom, but i simply got:<br><br><br>&nbsp;&nbsp;&nbsp; -- Executing [5145554188@incomingUnlimitel:1] NoOp(&quot;IAX2/5145554188-1&quot;, &quot;SIP/1004 has state NOT_INUSE&quot;) in new stack
<br>&nbsp;&nbsp;&nbsp; -- Executing [5145554188@incomingUnlimitel:2] Set(&quot;IAX2/5145554188-1&quot;, &quot;DEVSTATE(SIP/1004)=BUSY&quot;) in new stack<br>&nbsp;&nbsp;&nbsp; -- Executing [5145554188@incomingUnlimitel:3] NoOp(&quot;IAX2/5145554188-1&quot;, &quot;SIP/1004 has now NOT_INUSE&quot;) in new stack
<br><br>So it&#39;s like the devstate has not be successfully set and I&#39;d like to know exactly.<br><br>I realized Custom devstate are written to astDB, and after it&#39;s calling __ast_device_state_changed_literal(), and there, its should change the state, no?
<br><br><br>After a quick discussion with Russell on IRC, he told me the answers is pretty long why we can explicitly change a device state.<br><br>So let&#39;s start a discussion around this :)<br><br clear="all"><br>-- 
<br>Clod Patry