<!DOCTYPE html PUBLIC '-//W3C//DTD HTML 4.01 Transitional//EN'>
<html><head><meta http-equiv="Content-Type" content="text/html;charset=us-ascii">
<style>BODY{font:10pt Tahoma, Verdana, sans-serif}</style></head><body>
<DIV>In order for mod_managed to actually load your module you have to implment at least one of those classes. The most simple is to implmement IApiPlugin and make a shutdown API so you can unload your module.</DIV>
<DIV> </DIV>
<DIV>Also implement ILoadPluginNotify, which will add a "Load" method to the class. That will get called as soon as your module is loaded. From there you can start a thread to new up an EventConsumer, and process events. Make sure you return true from the load method, so the module stays loaded.</DIV>
<DIV> </DIV>
<DIV>--Dave</DIV><BR>
<BLOCKQUOTE style="BORDER-LEFT: #0000ff 2px solid; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px">
<HR>
<B>From:</B> Rafal Gwizdala [mailto:rafal.gwizdala@gmail.com]<BR><B>To:</B> FreeSWITCH Users Help [mailto:freeswitch-users@lists.freeswitch.org]<BR><B>Sent:</B> Thu, 19 Sep 2013 13:10:59 -0700<BR><B>Subject:</B> [Freeswitch-users] mod_managed - beginner's question about an event listener module<BR><BR>
<DIV>I've looked at mod_managed documentation and can see how to write an API command or a dialplan application, but could you give me a hint how to implement an automatically starting 'background' service that will listen to FS events? The module should start automatically at FS startup and should react to conference-related events. I've looked through Dave Kompel's examples but didn't find such example (or didin't understand the code well enough)
<DIV>Thanks</DIV>
<DIV>RG</DIV></DIV></BLOCKQUOTE>
<STYLE>
</STYLE>
<DIV> </DIV>
<DIV> </DIV></body></html>