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

Russell Bryant russell at russellbryant.net
Thu Aug 15 10:43:52 CDT 2013


On Thu, Aug 15, 2013 at 11: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)
>
> 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.
> Endless googling turned out to be no help. Can anyone give me a hand /
>

grep for other uses of ast_indicate to see the constants used
(AST_CONTROL_*).  -1 is to stop the current indication IIRC.

-- 
Russell Bryant
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-dev/attachments/20130815/5330b575/attachment.htm>


More information about the asterisk-dev mailing list