[Asterisk-Dev] Pasive channels monitoring
Dan Davis
DanWDavis at ij.net
Thu Aug 26 07:06:56 MST 2004
I have the same problem with trying to find an external way to view this
info. Right now I think my only choice is to go into the code and post this
info to some type of ipc (shared memory or a queue) which I can the view
externally. I am leaning towards shared memory so I can have a local and
remote monitor up at the same time.
Dan Davis
----- Original Message -----
From: "Guillermo Winkler" <gwinkler at inconcertcc.com>
To: <asterisk-dev at lists.digium.com>
Sent: Thursday, August 26, 2004 9:52 AM
Subject: [Asterisk-Dev] Pasive channels monitoring
> Hi,
> I'm trying to monitor what's going on with channels (creation, state
changed,
> destroyed,etc). I'm not willing to use astman since I'm running inside *
and
> make no sense to parse astman events.
> I've used ast_waitfor_nandfs on the channels, and then ast_read, but it's
far
> from "pasive", there are some locking controls and the frames are read by
> only one "waiter thread".
> By what I've seen, the queue of frames(audio,control,dtmf,etc) is only
meant
> to be read by the thread that succesfully locked on wait.(not to mention
that
> when call is established a lot of audio frames have to be checked for
nothing
> in this case). (even just select() on each channel FDS will lead to a lot
of
> audio frame events I don't want to monitor)
>
> So, I want to know if I'm missing something and there is a way to pasive
> monitor calls/peers(without using astman or replacing it).
>
> Anyone out there has a clue?
>
> Thanks
> _______________________________________________
> 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