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

Dmb montejodaniel at hotmail.com
Tue Apr 26 09:50:15 MST 2005


Thanks Kevin,
I think that if could obtain changes in all channels via control frames i
could translate that changes to CSTA. Now i am looking for a channel list
global in asterisk or a function that give me it. Does exist this list or
this function?



----- Original Message ----- 
From: "Kevin P. Fleming" <kpfleming at digium.com>
To: "Asterisk Developers Mailing List" <asterisk-dev at lists.digium.com>
Sent: Tuesday, April 26, 2005 4:51 PM
Subject: Re: [Asterisk-Dev] How can receive frames of all channels?


> Dmb wrote:
>
> > I am trying to develop CSTA interface. I am trying retrieve the frames
(to determine state changes of a device) of all devices using app_myApp. I
know the functions ast_waitfor(), ast_waitfor_n(), ast_waitfor_n_fd() and
ast_waitfor_nandfds(). This functions need the param channel or list of
channels. How can i receive all frames of all channels from an application?
If I can use that functions how can i retrieve the list of channels for
waitfor?
>
> 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.
> _______________________________________________
> Asterisk-Dev mailing list
> Asterisk-Dev at lists.digium.com
> http://lists.digium.com/mailman/listinfo/asterisk-dev
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-dev
>



More information about the asterisk-dev mailing list