zaidka/genieacs — pull request #45 by akcoder (2014-11-12 23:06:19+00:00)
Title: Send a notification to an external service when a desired event is received

I needed a way to get notified of events that happened on the CPE from the ACS. So I created this lightweight mechanism. It adds three options to the config, NOTIFICATION_ENABLED, NOTIFICATION_URL, and NOTIFICATION_TYPES. The first two are self-explanatory. NOTIFICATION_TYPES is a comma delimited list of events you want to be notified about.

When a desired event happens, the cwmpRequest is POST'd to the server at NOTIFICATION_URL.