<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Aug 15, 2013 at 10:17 AM, Newman Thurairatnam <span dir="ltr"><<a href="mailto:newman.thurairatnam@aheeva.com" target="_blank">newman.thurairatnam@aheeva.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br>
Hello,<br>
<br>
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.<br>
<br>
ast_indcate(ast_channel chan, int condition)<br>
<br>
ast_indicate(chan , -1)<br></blockquote><div> </div><div>The -1 condition value is used to stop any active tones like ringback, busy, congestion, etc.<br><br></div><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
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.<br></blockquote><div><div><br>
</div>
<div>The other values are from the enum ast_control_frame_type.<br>
<br>
Richard</div></div></div></div></div>