[asterisk-dev] ast_indicate (chan , -1)

Richard Mudgett rmudgett at digium.com
Thu Aug 15 10:35:48 CDT 2013


On Thu, Aug 15, 2013 at 10:17 AM, Newman Thurairatnam <
newman.thurairatnam at aheeva.com> wrote:

>
> Hello,
>
>   I'm new to Asterisk and I'm debugging some code. I found this line of
> code being used and I'm not entirely sure what it does.
>
> ast_indcate(ast_channel chan, int condition)
>
> ast_indicate(chan , -1)
>

The -1 condition value is used to stop any active tones like ringback,
busy, congestion, etc.

I looked at the doxygen documentation for  asterisk 1.4, it says that the
> -1 is suppose to set a condition, but it does not define what different
> integers for the condition does.
>

 The other values are from the enum ast_control_frame_type.

Richard
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-dev/attachments/20130815/86eb3791/attachment.htm>


More information about the asterisk-dev mailing list