[asterisk-dev] Seeking built-in channel waiter function

Yaroslav Panych panych.y at gmail.com
Fri Oct 7 04:05:20 CDT 2011


I shall be very grateful for demonstration example code.
As far as I analysed sources, ast_waitfor_nandfds(not ast_waitfor) is
my required function,  but still I don't understand how to uses
alertpipe here.

2011/10/6 Kevin P. Fleming <kpfleming at digium.com>:
>
> There are already mechanisms used in Asterisk to do what you want; search
> for 'alertpipe'. We create a pipe and put one end of it on the channel in
> the chan->fds array, and then ast_waitfor() will wake up when data is
> written to that pipe and the caller of ast_waitfor() can check which fd was
> the reason for the wakeup.
>
> --
> Kevin P. Fleming
> Digium, Inc. | Director of Software Technologies
> Jabber: kfleming at digium.com | SIP: kpfleming at digium.com | Skype: kpfleming
> 445 Jan Davis Drive NW - Huntsville, AL 35806 - USA
> Check us out at www.digium.com & www.asterisk.org
>
> --
> _____________________________________________________________________
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
>
> asterisk-dev mailing list
> To UNSUBSCRIBE or update options visit:
>  http://lists.digium.com/mailman/listinfo/asterisk-dev
>



More information about the asterisk-dev mailing list