[asterisk-dev] local_indicate ringing on answered channel

Mark Michelson mmichelson at digium.com
Thu Jul 2 07:45:13 CDT 2009


Marcus Hunger wrote:
> Hi,
> I wonder if there is a reason why chan_local passes ringing control 
> frames if it's state is up. It could return -1 so ast_indicate would 
> generate inband indication.
>
> Regards, Marcus
It's not really the job of the local channel to decide what's 
appropriate for the "real" channel it is representing to do with the 
ringing indication. By queuing the ringing frame to the other local 
channel (the "owner") on the local_pvt, this gives another application a 
chance to read the frame and use the real channel driver's indicate 
callback to decide what to do.

Mark Michelson



More information about the asterisk-dev mailing list