[asterisk-bugs] [Asterisk 0014635]: [patch] Changes to manager interface for registering event hooks

Asterisk Bug Tracker noreply at bugs.digium.com
Tue Nov 3 15:31:52 CST 2009


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=14635 
====================================================================== 
Reported By:                jozza
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   14635
Category:                   Core/ManagerInterface/NewFeature
Reproducibility:            N/A
Severity:                   feature
Priority:                   normal
Status:                     ready for testing
Target Version:             Feature Tracker
Asterisk Version:           SVN 
JIRA:                        
Regression:                 No 
Reviewboard Link:            
SVN Branch (only for SVN checkouts, not tarball releases):  trunk 
SVN Revision (number only!): 180641 
Request Review:              
====================================================================== 
Date Submitted:             2009-03-10 04:42 CDT
Last Modified:              2009-11-03 15:31 CST
====================================================================== 
Summary:                    [patch] Changes to manager interface for registering
event hooks
Description: 
In manager.c, there is a function ast_manager_register_hook that registers
a function to be called whenever an ami event is sent to the client. The
problem was that hooks would only receive events if there was a physical
tcp connection to the ami interface. I changed that, so hooked functions
always receive ami events, regardless of any physical ami connections, and
can also send actions to ami. The main purpose for that was, so custom
modules can use ami information and further implement their own protocols,
like csta for example.

====================================================================== 

---------------------------------------------------------------------- 
 (0113095) svnbot (reporter) - 2009-11-03 15:31
 https://issues.asterisk.org/view.php?id=14635#c113095 
---------------------------------------------------------------------- 
Repository: asterisk
Revision: 227448

U   trunk/include/asterisk/manager.h
U   trunk/main/manager.c
A   trunk/tests/test_amihooks.c

------------------------------------------------------------------------
r227448 | dbrooks | 2009-11-03 15:31:51 -0600 (Tue, 03 Nov 2009) | 11
lines

AMI hook interface

This patch, originally submitted by jozza, enables custom modules to send
actions to AMI
and receive messages from AMI via a hook interface. Included is a simple
test module to
illustrate the interface.

(closes issue https://issues.asterisk.org/view.php?id=14635)
Reported by: jozza

Review: https://reviewboard.asterisk.org/r/412/

------------------------------------------------------------------------

http://svn.digium.com/view/asterisk?view=rev&revision=227448 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-11-03 15:31 svnbot         Checkin                                      
2009-11-03 15:31 svnbot         Note Added: 0113095                          
======================================================================




More information about the asterisk-bugs mailing list