<!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.2802" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=947161817-07012006>Do not know what version you are
running,</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=947161817-07012006></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=947161817-07012006>But there are a few ways to do
this.</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=947161817-07012006></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=947161817-07012006>There is a persistant setting:</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=947161817-07012006></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=947161817-07012006>from agents.conf</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT><SPAN class=947161817-07012006><FONT face=Arial
color=#0000ff size=2>;<BR>; Define whether callbacklogins should be stored in
astdb for<BR>; persistence. Persistent logins will be reloaded after<BR>;
Asterisk restarts.<BR>;<BR>persistentagents=yes<BR></FONT></DIV>
<DIV></SPAN></FONT><SPAN class=947161817-07012006><FONT face=Arial color=#0000ff
size=2>If you want to handle it outside of Asterisk via an AGI you can have your
AGI execute:</FONT></SPAN></DIV>
<DIV><SPAN class=947161817-07012006><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=947161817-07012006><FONT face=Arial color=#0000ff
size=2> AgentCallbackLogin([AgentNo][|[options][|[exten]@context]]):</FONT></SPAN></DIV>
<DIV><SPAN class=947161817-07012006><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=947161817-07012006><FONT face=Arial color=#0000ff size=2>this
is providing that you have the information saved in your DB.</FONT></SPAN></DIV>
<DIV><SPAN class=947161817-07012006><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=947161817-07012006><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=947161817-07012006><FONT face=Arial color=#0000ff
size=2>Personal Opinion:</FONT></SPAN></DIV>
<DIV><SPAN class=947161817-07012006><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=947161817-07012006><FONT face=Arial color=#0000ff size=2>Use
the builtin features with the persistentagents options and use the php script in
the contribs directory to see who is on.</FONT></SPAN></DIV>
<DIV><SPAN class=947161817-07012006><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=947161817-07012006></SPAN> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT> </DIV>
<DIV><BR></DIV>
<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>Dov
Bigio<BR><B>Sent:</B> Friday, January 06, 2006 4:24 PM<BR><B>To:</B>
asterisk-users@lists.digium.com<BR><B>Subject:</B> [Asterisk-Users] Asterisk
initialization<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV><FONT face=Arial size=2>Hi,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I am doing an AGI that logs to a database every
Agent login/logoff.</FONT></DIV>
<DIV><FONT face=Arial size=2>My idea is to be able to go to this database and
check which agents where logged so that I can force their login in case
Asterisk goes down for some reason.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>The problem is that I would need to reload their
status from this AGI when Asterisk initializes. Is there a way to do
this?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>One idea I had was to make safe_asterisk to
generate a .call file that calls and extension that would call the AGI to log
all the agents back on.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Is there another way of running an AGI on
initialization?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Thank you</FONT></DIV>
<DIV><FONT face=Arial size=2>Dov</FONT></DIV></BLOCKQUOTE></BODY></HTML>