<!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.3790.2541" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=110534606-07012006><FONT face=Arial
color=#0000ff size=2>Not exactly. I run the PHP script as a daemon with
stratigically placed sleep statements.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=110534606-07012006><FONT face=Arial
color=#0000ff size=2>I check for active conferences once a minute. I then
lookup the scheduled endtime of the conference,</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=110534606-07012006><FONT face=Arial
color=#0000ff size=2>play an announcement if the endtime is 5 minutes from the
current check, then use the manager</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=110534606-07012006><FONT face=Arial
color=#0000ff size=2>API to issue a 'kick all'. The five minute warning
allows the clients to extend the conference through</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=110534606-07012006><FONT face=Arial
color=#0000ff size=2>a web page, and as I check the endtime of active conference
once a minute I don't kick empty</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=110534606-07012006><FONT face=Arial
color=#0000ff size=2>conferences and allow for extensions.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=110534606-07012006><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=110534606-07012006><FONT face=Arial
color=#0000ff size=2>The script is crude, but works fine for our
needs.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=110534606-07012006><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=110534606-07012006><FONT face=Arial
color=#0000ff size=2>Dan</FONT></SPAN></DIV><BR>
<BLOCKQUOTE style="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-dev-bounces@lists.digium.com
[mailto:asterisk-dev-bounces@lists.digium.com] <B>On Behalf Of </B>ast
guy<BR><B>Sent:</B> Friday, January 06, 2006 9:01 PM<BR><B>To:</B> Asterisk
Developers Mailing List<BR><B>Subject:</B> Re: [Asterisk-Dev] Setting
conference room timeout<BR></FONT><BR></DIV>
<DIV></DIV>and you are executing php script on `defined interval` to check
conference timeout value and hang up the conference room ? <BR><BR>
<DIV><SPAN class=gmail_quote>On 1/6/06, <B class=gmail_sendername>Dan
Austin</B> <<A href="mailto:Dan_Austin@phoenix.com">
Dan_Austin@phoenix.com</A>> wrote:</SPAN>
<BLOCKQUOTE class=gmail_quote
style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">ast
wrote:<BR>> We are working on a prepaid conference room
application, <BR>> currently the problem we are facing is related to
timeout.<BR>> Like we terminate a call session after some time by
calling<BR>> `settimeout()` application,<BR><BR>> How do I associate a
timeout value while starting a conference <BR>> room, that conference
room e.g.3049 (along with it's related<BR>> connected calls) are
terminated/disconnected after 'X' timeout<BR>> value.<BR><BR>This is more
of a -user question, but here's a couple ideas <BR><BR>I have a out-of-tree
module that stores conference information<BR>in a database and includes a
termination time. To accomplish<BR>the 'timeout', I have a small
PHP script that monitors for active<BR>conferences, checks their scheduled
end time, gives a five minute <BR>warning and then uses the manager API to
shutdown the conference at<BR>the correct time.<BR><BR>If you're conferences
will not use fixed start/stop times the<BR>problem is just a small bit
different. You can use the manager <BR>API to get a list of
conferences and their duration, and if a<BR>conference is over
it's limit, use the manager API to end
the<BR>conference.<BR><BR>Dan<BR><BR>_______________________________________________<BR>--Bandwidth
and Colocation provided by <A href="http://Easynews.com">Easynews.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">http://lists.digium.com/mailman/listinfo/asterisk-dev
</A><BR></BLOCKQUOTE></DIV><BR></BLOCKQUOTE></BODY></HTML>