<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.5730.11" name=GENERATOR>
<STYLE>@page Section1 {size: 8.5in 11.0in; margin: 1.0in .5in 1.0in 1.0in; }
P.MsoNormal {
        FONT-SIZE: 14pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: Arial
}
LI.MsoNormal {
        FONT-SIZE: 14pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: Arial
}
DIV.MsoNormal {
        FONT-SIZE: 14pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: Arial
}
A:link {
        COLOR: blue; TEXT-DECORATION: underline
}
SPAN.MsoHyperlink {
        COLOR: blue; TEXT-DECORATION: underline
}
A:visited {
        COLOR: purple; TEXT-DECORATION: underline
}
SPAN.MsoHyperlinkFollowed {
        COLOR: purple; TEXT-DECORATION: underline
}
SPAN.EmailStyle17 {
        COLOR: windowtext; FONT-FAMILY: Arial
}
DIV.Section1 {
        page: Section1
}
</STYLE>
</HEAD>
<BODY lang=EN-US vLink=purple link=blue>
<DIV dir=ltr align=left><SPAN class=796522300-17012007><FONT face="&#65325;&#65331; &#65328;&#12468;&#12471;&#12483;&#12463;" 
color=#0000ff size=2>"show channels" will display all calls including Duration 
and BridgeTo. You can check the BridgeTo column to determine if one call leg is 
still attached to the other. If that fails, you can also check the duration for 
hung calls.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=796522300-17012007><FONT face="&#65325;&#65331; &#65328;&#12468;&#12471;&#12483;&#12463;" 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=796522300-17012007><FONT face="&#65325;&#65331; &#65328;&#12468;&#12471;&#12483;&#12463;" 
color=#0000ff size=2>To automate, there are a number of approaches. I personally 
suggest looking into writing/deploying an Asterisk manager.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=796522300-17012007><FONT face="&#65325;&#65331; &#65328;&#12468;&#12471;&#12483;&#12463;" 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV><BR>
<BLOCKQUOTE dir=ltr 
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px">
  <DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
  <HR tabIndex=-1>
  <FONT face=Tahoma size=2><B>From:</B> asterisk-users-bounces@lists.digium.com 
  [mailto:asterisk-users-bounces@lists.digium.com] <B>On Behalf Of </B>Savoy, 
  Kevin - Williston, ND<BR><B>Sent:</B> Wednesday, January 17, 2007 2:08 
  AM<BR><B>To:</B> Asterisk Users Mailing List - Non-Commercial 
  Discussion<BR><B>Subject:</B> [asterisk-users] How to detect long 
  calls<BR></FONT><BR></DIV>
  <DIV></DIV>
  <DIV class=Section1>
  <P class=MsoNormal><FONT face=Arial size=2><SPAN style="FONT-SIZE: 10pt">We 
  have been running an Asterisk box with 1.2.9.1 on it since August in a call 
  center environment. We use the Asterisk box as an IVR and then pass the calls 
  on to a Nortel Option 11C. Today we found in our long distance bill two calls 
  that lasted a VERY long time. One was 58 hours and another was 38 
  DAYS!!!</SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial size=2><SPAN 
  style="FONT-SIZE: 10pt"></SPAN></FONT>&nbsp;</P>
  <P class=MsoNormal><FONT face=Arial size=2><SPAN 
  style="FONT-SIZE: 10pt">Nortel does not show this call being that long. 
  Obviously the person that called in didn&#8217;t hold the line for 58 days so 
  somehow between Asterisk and MCI the call got stuck open and didn&#8217;t hang up on 
  the network.</SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial size=2><SPAN 
  style="FONT-SIZE: 10pt"></SPAN></FONT>&nbsp;</P>
  <P class=MsoNormal><FONT face=Arial size=2><SPAN style="FONT-SIZE: 10pt">My 
  question is two parts, part one, has anyone heard of anything like this where 
  a call doesn&#8217;t hang up properly and seems &#8220;stuck&#8221; in the system. Part two is 
  there anyway to monitor in Asterisk the length of all active calls and then if 
  a call lasts longer then, say one hour, we could send off a text message or 
  warning.</SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial size=2><SPAN 
  style="FONT-SIZE: 10pt"></SPAN></FONT>&nbsp;</P>
  <P class=MsoNormal><FONT face=Arial size=2><SPAN style="FONT-SIZE: 10pt">Any 
  ideas or comments would be helpful</SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial size=2><SPAN 
  style="FONT-SIZE: 10pt"></SPAN></FONT>&nbsp;</P>
  <P class=MsoNormal><FONT face=Arial size=2><SPAN 
  style="FONT-SIZE: 10pt"></SPAN></FONT>&nbsp;</P>
  <P class=MsoNormal><FONT face=Arial size=2><SPAN 
  style="FONT-SIZE: 10pt">Thanks</SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial size=2><SPAN 
  style="FONT-SIZE: 10pt">_____________________</SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial size=4><SPAN style="FONT-SIZE: 14pt"><IMG 
  height=37 src="cid:796522300@17012007-0353" width=149></SPAN></FONT></P>
  <P class=MsoNormal><STRONG><B><FONT face=Arial color=black size=4><SPAN 
  style="FONT-SIZE: 14pt; COLOR: black; FONT-FAMILY: Arial">Kevin 
  Savoy</SPAN></FONT></B></STRONG></P>
  <P class=MsoNormal><STRONG><B><FONT face=Arial color=black size=4><SPAN 
  style="FONT-SIZE: 14pt; COLOR: black; FONT-FAMILY: Arial">Business Unit 
  Telecom Analyst</SPAN></FONT></B></STRONG></P>
  <P class=MsoNormal><FONT face=Arial color=black size=1><SPAN 
  style="FONT-SIZE: 7.5pt; COLOR: black">2218 4th Ave W</SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial color=black size=1><SPAN 
  style="FONT-SIZE: 7.5pt; COLOR: black">Williston, ND 58801</SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial color=black size=1><SPAN 
  style="FONT-SIZE: 7.5pt; COLOR: black">Ph: 701-774-4023</SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial color=black size=1><SPAN 
  style="FONT-SIZE: 7.5pt; COLOR: black">Fax: 701-774-2901</SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial color=blue size=2><SPAN 
  style="FONT-SIZE: 10pt; COLOR: blue"><A href="http://www.novo1.com/"><FONT 
  color=black size=1><SPAN 
  style="FONT-SIZE: 7.5pt; COLOR: black">http://www.novo1.com</SPAN></FONT></A></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial color=black size=1><SPAN 
  style="FONT-SIZE: 7.5pt; COLOR: black">Novo 1 is a service mark of Novo 1, 
  Inc</SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial size=4><SPAN 
  style="FONT-SIZE: 14pt"></SPAN></FONT>&nbsp;</P></DIV></BLOCKQUOTE></BODY></HTML>