[asterisk-dev] Fwd: Asterisk Sip Registration Hooks
Mike Myhre
digium at aeisecure.com
Fri Aug 12 10:32:19 CDT 2011
If you look at main/manager.c, AMI is using the security events
framework. AMI generates security events. Then you have
res/res_security_log.c, that acts upon the events by logging them to
a file. You can turn on the file log by using the level of
"security" in the logger.conf. By having chan_sip generate security
events, any module written for Asterisk will be able to act upon
those events in whichever way you see fit.
I have posted a patch to the issue tracker:
https://issues.asterisk.org/jira/browse/ASTERISK-18264 The
reviewboard link is listed on that issue. Michael (elguero)
Thanks Michael. It looks like your patch does what I need to hook into
the events needed. I will be out of town for a couple weeks, and when I
get back, I will generate a patch for Asterisk 1.4.X and 1.6.X (just the
verbose hook) and modify my module to receive your security events and
act on them. I think what you have done is all that is needed to get
into the next Asterisk 10 beta release. My Asterisk 1.8 and greater
module will not need any additional patch to work.
Thanks,
Mike
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-dev/attachments/20110812/07debcdb/attachment.htm>
More information about the asterisk-dev
mailing list