[asterisk-users] New feature: Asterisk Manager Interface commands for DeviceState

Håkon Nessjøen haakon at avelia.no
Fri Jan 29 13:03:13 CST 2010


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 


More information about the asterisk-users mailing list