<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 14 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-US link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> asterisk-users-bounces@lists.digium.com [mailto:asterisk-users-bounces@lists.digium.com] <b>On Behalf Of </b>Leandro Dardini<br><b>Sent:</b> Thursday, January 03, 2013 2:53 AM<br><b>To:</b> Asterisk Users Mailing List - Non-Commercial Discussion<br><b>Subject:</b> Re: [asterisk-users] DAHDI: How to know since when it is used? How to shutdown after max time?<o:p></o:p></span></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal style='margin-bottom:12.0pt'><o:p>&nbsp;</o:p></p><div><p class=MsoNormal>2013/1/3 bilal ghayyad &lt;<a href="mailto:bilmar_gh@yahoo.com" target="_blank">bilmar_gh@yahoo.com</a>&gt;<o:p></o:p></p><p class=MsoNormal style='margin-bottom:12.0pt'>Hi;<br><br>How can I know the duration that the DAHDI channel is still used? I need to know its status and since when it is in this status, how?<br><br>Also, is it possible to hangup the channel if it has been openned more than 90 minute? Other than using the timeout in the Dial command (because this I know it).<br><br>What is happening with me that from time to time, I find some DAHDI channels are stayed connected (stuck) for long time. I know how to write the extensions.conf in a way to handle the hangup properly, also I send the incoming calls to the voicemail to be sure it is hanged up properly. One more thing, I set the rtptimeout in case there is any problem in the sip phone and the network .. But, still after sometime, I am surprised that some channels are stuck and stayed connected and then I have to reset it manually !! This is happening only in the analoge channels.<br><br>What other than the rtptimeout, the hangup in the extensions.conf, the voicemail? Is there anything I have to take care for it that might cause this stuck and keeping the channel openned?<br><br>By the way, for such cases, what should I place the value of the rtpkeepalive as currently it is 0?<br><br>What other things I have to take care for it?<br><br>Regards<br>Bilal<o:p></o:p></p><div><p class=MsoNormal><o:p>&nbsp;</o:p></p></div><div><p class=MsoNormal>I checked on my PBX and I find no way to identify the duration of a call involving a DAHDI channel like it happens on SIP channels. I think the only way will be to assign a not so huge AbsoluteTimeout to each call.&nbsp;<o:p></o:p></p></div><div><p class=MsoNormal><o:p>&nbsp;</o:p></p></div><div><p class=MsoNormal><span style='color:#1F497D'>My suggestion would be to either do a cron job that executes asterisk &#8211;rx &#8220;core show channels verbose&#8221; and kill anything with a duration over 90 minutes or do the same thing with an AMI task (cron optional here).</span>&nbsp;<o:p></o:p></p></div></div></div></body></html>