<br>Hi<br><br>In my case, when i create 2 / 3 conference with 2 / 3 user each with IAX call.<br><br>When I disconnect all call, one of IAX channel may active....<br><br>So, for this i have to detect this IAX channel and close the channel when there r no received or transmitted packages processed for x number of minutes..<br>
<br>so should i go with chan_iax2.c file or some other file..??<br><br>I am using asterisk-1.6.0 with Cent OS 5.<br><br>Help Me...<br><br><br><br><br><div class="gmail_quote">On Wed, Feb 4, 2009 at 6:09 PM, Steven S. Critchfield <span dir="ltr"><<a href="mailto:critch@basesys.com">critch@basesys.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">----- "Chandrakant Solanki" <<a href="mailto:solanki.chandrakant@gmail.com">solanki.chandrakant@gmail.com</a>> wrote:<br>
> *Hi*<br>
<div class="Ih2E3d">><br>
> I am new to asterisk<br>
><br>
> **<br>
><br>
> *I would like to change IAX2 code...* and close the channel when there<br>
> are<br>
> no received or transmitted packages processed for x number of<br>
> minutes.<br>
> How can i do this what necessary changes i have to do ..<br>
<br>
</div>What you want to do is not really specific to the channel you are working<br>
with. While you may only want it for IAX right now, it is best for it to<br>
be a non channel specific implementation.<br>
<br>
So, you may want to look at the bridging area. There you have the audio<br>
stream and can detect silence. In fact, there is already code around for<br>
detecting silence you could use. Then you could determine when to tear<br>
down the bridge and that would end the call no matter what channel you<br>
have. Then you just need to give your code a way to be activated. Maybe<br>
part of a dial command or via channel variables. This way you can set<br>
it on just the IAX channels you are concerned with.<br>
<br>
I am pretty sure the channel agnostic way is your best bet on getting<br>
your changes merged into the main code repository and therefore maintained.<br>
<br>
--<br>
Steven Critchfield <a href="mailto:critch@basesys.com">critch@basesys.com</a><br>
<br>
_______________________________________________<br>
--Bandwidth and Colocation Provided by <a href="http://www.api-digital.com--" target="_blank">http://www.api-digital.com--</a><br>
<br>
asterisk-dev mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
<a href="http://lists.digium.com/mailman/listinfo/asterisk-dev" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-dev</a><br>
</blockquote></div><br><br><br clear="all"><br>-- <br>Regards,<br><br>Chandrakant Solanki<br>