[Asterisk-Dev] How can receive frames of all channels?

TC trclark at shaw.ca
Tue Apr 26 13:27:51 MST 2005


> > You cannot implement this as an Asterisk application; applications can
> > only deal with the channels they 'own', and they only run via the
> > dialplan (they are not background daemons that can monitor activity).
> >
> > Your best bet to implement what you want will likely be the manager
> > interface, which already provides you events for nearly every action
> > that happens on all channels in the system.
well you can have your own custom manager as an app
you can use the automagic loading of apps, w/o the need to change
core asterisk to kick off your background daemon
in the load_module function just start a new thread that is your CSTA
manager & have it listen on a port, for CSTA cmds
and in the unload_module  do your shutdown / clean up work
then just stub out the _exec function so it is useless from the dial plan.

The only thing that is missing in the stardard manager is a message queue
list that register listeners can see that allow other managers to listen in
on manager events ...
OR
you could simply register a callback function for manager on an event but
then you have to
be carefull not to block the thread that does the callback









More information about the asterisk-dev mailing list