[asterisk-dev] [Code Review] Generate security events in chan_sip using new Security Events Framework

elguero reviewboard at asterisk.org
Wed Sep 21 13:56:39 CDT 2011


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

(Updated Sept. 21, 2011, 1:56 p.m.)


Review request for Asterisk Developers.


Changes
-------

- Moved security event code to channels/sip/security_events.c breaking it out of sip.c
- Changed some function names and declared them in sip.h so that they can be called from outside sip.c (need feedback on this and whether this was appropriate to do)

Compiled and tested on dev machine.


Summary
-------

Security Events Framework was added in 1.8 and support was added for AMI to generate events at that time.

This patch attempts to add support in chan_sip to generate security events.  Hopefully we can get this into Asterisk 10.

I am looking forward to hearing feedback on where this patch can be improved especially from those who have an intimate knowledge of chan_sip.

Thanks


This addresses bug ASTERISK-18264.
    https://issues.asterisk.org/jira/browse/ASTERISK-18264


Diffs (updated)
-----

  /branches/10/CHANGES 337324 
  /branches/10/channels/chan_sip.c 337324 
  /branches/10/channels/sip/include/security_events.h PRE-CREATION 
  /branches/10/channels/sip/include/sip.h 337324 
  /branches/10/channels/sip/security_events.c PRE-CREATION 
  /branches/10/configs/logger.conf.sample 337324 
  /branches/10/include/asterisk/event_defs.h 337324 
  /branches/10/include/asterisk/security_events_defs.h 337324 
  /branches/10/main/event.c 337324 
  /branches/10/main/security_events.c 337324 

Diff: https://reviewboard.asterisk.org/r/1362/diff


Testing
-------

Local dev machine and a softphone.  Generated events by using the wrong username, wrong password, wrong auth name, successful authentication.


Thanks,

elguero

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-dev/attachments/20110921/ff08918f/attachment.htm>


More information about the asterisk-dev mailing list