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

Asterisk Bug Tracker noreply at bugs.digium.com
Tue Mar 10 08:30:25 CDT 2009


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=14635 
====================================================================== 
Reported By:                jozza
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   14635
Category:                   Core/ManagerInterface
Reproducibility:            N/A
Severity:                   feature
Priority:                   normal
Status:                     new
Asterisk Version:           1.6.1.0-rc2 
Regression:                 No 
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-03-10 08:30 CDT
====================================================================== 
Summary:                    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.

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

---------------------------------------------------------------------- 
 (0101460) juggie (manager) - 2009-03-10 08:30
 http://bugs.digium.com/view.php?id=14635#c101460 
---------------------------------------------------------------------- 
Jozza,

As we discussed on irc, now that you've got your changes made to your SVN
copy, you need to run a 'svn diff' to produce your diff file, eg 'svn diff
> mypatch.patch' read the file over to make sure you don't see any obvious
mistakes then you can attach it to this bug.  Be sure to sign the digium
license if you have not already. 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-03-10 08:30 juggie         Note Added: 0101460                          
======================================================================




More information about the asterisk-bugs mailing list