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

TC trclark at shaw.ca
Tue Apr 26 13:50:34 MST 2005


> 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
hehe take look in pbx.c for
ast_devstate_add ast_devstate_del
if you register a callback looks like you get the device/channel name & its
new state
you could then walk the channel list matching device if you needed more dtls
there also call backs for extension state changing ..
ast_extension_state_add/ast_extension_state_del

hmm but i think a message list/call back from manger is going to richer






More information about the asterisk-dev mailing list