<!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.2900.3059" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=702301718-31052007><FONT face=Arial
size=2>Hi Adi,</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=702301718-31052007><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=702301718-31052007><FONT face=Arial
size=2>AGI is probably best viewed like any other dialplan application
(and with DeadAGI something that happens after, but anyway) -- in my opinion.
I've seen people do some pretty wild stuff with it, but in the end, when I
wonder if the Manager interface or AGI interface is most appropriate for a given
task, I ask questions like "Would I want to do this with another application? Is
this even possible with another application?".</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=702301718-31052007><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=702301718-31052007><FONT face=Arial
size=2>In your case, I'd say you probably couldn't say... periodically execute a
dialplan application that runs in the middle of a call without interrupting the
call (with AGI, anyway). I'd recommend using the Manager interface and polling
for call durations / listening for events and acting on the
information you get back (I'd assume the answered duration is one of those
values you could poll for).</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=702301718-31052007><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=702301718-31052007><FONT face=Arial
size=2>Hope this helps -- others, please jump in if I'm way wrong
:)</FONT></SPAN></DIV>
<DIV> </DIV><!-- Converted from text/plain format -->
<P align=left><FONT size=2>Martin Smith, Systems
Developer<BR>martins@bebr.ufl.edu<BR>Bureau of Economic and Business
Research<BR>University of Florida<BR>(352) 392-0171 Ext. 221</FONT> </P>
<DIV> </DIV><BR>
<BLOCKQUOTE dir=ltr
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 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>Adi
Simon<BR><B>Sent:</B> Thursday, May 31, 2007 5:54 AM<BR><B>To:</B>
asterisk-users@lists.digium.com<BR><B>Subject:</B> [asterisk-users] Passing
call duration to an AGI Script<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV>Hi,</DIV>
<DIV> </DIV>
<DIV>I'm trying to find a way of passing the actual call duration (something
like ANSWEREDTIME) to an AGI</DIV>
<DIV>script that runs periodically during a call. Any ideas?</DIV>
<DIV> </DIV>
<DIV>Thanks,</DIV>
<DIV> </DIV>
<DIV>Adi.</DIV>
<DIV> </DIV></BLOCKQUOTE></BODY></HTML>