[asterisk-dev] [Code Review] Add AMI actions for changing custom device state and generate manager events when device states changes

Russell Bryant russell at digium.com
Fri Feb 12 20:09:58 CST 2010


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviewboard.asterisk.org/r/488/#review1510
-----------------------------------------------------------


I think the event is fine.  However, I'm not sure what I think about the new manager actions for getting and setting device states.  The reason I hesitate is because you can already do this via the AMI getvar and setvar actions with the DEVICE_STATE() function.

- Russell


On 2010-02-04 04:03:34, Olle E Johansson wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviewboard.asterisk.org/r/488/
> -----------------------------------------------------------
> 
> (Updated 2010-02-04 04:03:34)
> 
> 
> Review request for Asterisk Developers.
> 
> 
> Summary
> -------
> 
> Patch by Haakon
> 
> This patch adds a "DeviceStateChanged" event to AMI. And also introduces AMI commands DeviceStateSet and DeviceStateGet to controll device states from AMI, if func_devicestate is compiled in.
> 
> 
> This addresses bug 16732.
>     https://issues.asterisk.org/view.php?id=16732
> 
> 
> Diffs
> -----
> 
>   /trunk/include/asterisk/manager.h 244686 
>   /trunk/main/devicestate.c 244686 
>   /trunk/main/manager.c 244686 
>   /trunk/funcs/func_devstate.c 244686 
>   /trunk/CHANGES 244686 
>   /trunk/configs/manager.conf.sample 244686 
> 
> Diff: https://reviewboard.asterisk.org/r/488/diff
> 
> 
> Testing
> -------
> 
> Tested by contributor. 
> 
> 
> Thanks,
> 
> Olle E
> 
>




More information about the asterisk-dev mailing list