[Freeswitch-users] mod_managed - beginner's question about an event listener module

Rafal Gwizdala rafal.gwizdala at gmail.com
Fri Sep 20 14:23:20 MSD 2013


Thanks Dave,
Regarding the EventConsumer, should I actively poll for incoming events in
a loop, using the 'pop' method, or is there a way to set up a callback
routine?

R


On Fri, Sep 20, 2013 at 2:54 AM, Dave R. Kompel <drk at drkngs.net> wrote:

> **
> 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.
>
> 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.
>
> --Dave
>
>  ------------------------------
> *From:* Rafal Gwizdala [mailto:rafal.gwizdala at gmail.com]
> *To:* FreeSWITCH Users Help [mailto:freeswitch-users at lists.freeswitch.org]
> *Sent:* Thu, 19 Sep 2013 13:10:59 -0700
> *Subject:* [Freeswitch-users] mod_managed - beginner's question about an
> event listener module
>
>
> 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)
> Thanks
> RG
>
>
>
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
> 
> 
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://wiki.freeswitch.org
> http://www.cluecon.com
>
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20130920/31c41c33/attachment.html 


Join us at ClueCon 2013 Aug 6-8, 2013
More information about the FreeSWITCH-users mailing list