Håkon Nessjøen
2010-Jan-29 19:03 UTC
[asterisk-users] New feature: Asterisk Manager Interface commands for DeviceState
Hi, I've uploaded a new patch at https://issues.asterisk.org/view.php?id=16732which adds two new AMI commands, called "DeviceStateSet" and "DeviceStateGet". These commands let you update Custom device states, and read all devicestates from AMI. It would be very nice if someone could help me test this feature, and report back to the issue tracker. 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): -- Action: DeviceStateSet DeviceName: Custom:lamp1 DeviceState: INUSE -- Which should yield: -- Response: Success Message: Success -- Then you can check the state by doing: -- Action: DeviceStateGet DeviceName: Custom:lamp1 -- And you should receive the following: -- Response: Success Message: Result will follow Event: DeviceStateGetResponse DeviceName: Custom:lamp1 DeviceState: INUSE -- Regards, H?kon Nessj?en -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20100129/22b6c8f4/attachment.htm