Hi,<br><br>I've uploaded a new patch at <a href="https://issues.asterisk.org/view.php?id=16732">https://issues.asterisk.org/view.php?id=16732</a> which adds two new AMI commands, called "DeviceStateSet" and "DeviceStateGet".<br>
<br>These commands let you update Custom device states, and read all devicestates from AMI.<br><br>It would be very nice if someone could help me test this feature, and report back to the issue tracker.<br><br>To test, log into AMI as usual, and then issue something like the following (please also test to Get device state from real devices too):<br>
<br>--<br>Action: DeviceStateSet<br>DeviceName: Custom:lamp1<br>DeviceState: INUSE<br><br>--<br><br>Which should yield:<br>--<br>Response: Success<br>Message: Success<br>--<br><br>Then you can check the state by doing:<br>
<br>--<br>Action: DeviceStateGet<br>DeviceName: Custom:lamp1<br><br>--<br><br>And you should receive the following:<br><br>--<br>Response: Success<br>Message: Result will follow<br><br>Event: DeviceStateGetResponse<br>DeviceName: Custom:lamp1<br>
DeviceState: INUSE<br><br>--<br><br>Regards,<br>Håkon Nessjøen<br>