[asterisk-bugs] [Asterisk 0016732]: [patch] Add AMI support for device states

Asterisk Bug Tracker noreply at bugs.digium.com
Fri Jan 29 12:50:53 CST 2010


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=16732 
====================================================================== 
Reported By:                haakon
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   16732
Category:                   Functions/func_devstate
Reproducibility:            N/A
Severity:                   feature
Priority:                   normal
Status:                     ready for testing
Asterisk Version:           SVN 
JIRA:                       SWP-826 
Regression:                 No 
Reviewboard Link:            
SVN Branch (only for SVN checkouts, not tarball releases):  trunk 
SVN Revision (number only!): 244040 
Request Review:              
====================================================================== 
Date Submitted:             2010-01-29 09:28 CST
Last Modified:              2010-01-29 12:50 CST
====================================================================== 
Summary:                    [patch] Add AMI support for device states
Description: 
main/devicestate.c says Asterisk Manager Interface (AMI) gets DeviceState
events, but this is not true.

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.
====================================================================== 

---------------------------------------------------------------------- 
 (0117386) haakon (reporter) - 2010-01-29 12:50
 https://issues.asterisk.org/view.php?id=16732#c117386 
---------------------------------------------------------------------- 
I uploaded a new version, without the DeviceStateChanged part. The only
difference with my "DeviceStateChanged" and the internal "ExtensionStatus"
is that my version was always sent, whenever a device state was changed,
but ExtensionStatus is sent as long as someone has configured a hint for
that device. I guess you always configure hints for the channels you want
to configure. So it's not that much of additional functionality in that.

New version also doesn't change CHANGES in the wrong section ;)

If you want, you can change the description to:
"This patch introduces AMI commands DeviceStateSet and DeviceStateGet to
controll device states from AMI, as long as func_devicestate is selected
for compiling." 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2010-01-29 12:50 haakon         Note Added: 0117386                          
======================================================================




More information about the asterisk-bugs mailing list