<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1528" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>That's great... I didn't know about the <FONT
color=#0000ff>persistentagents features!</FONT></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2>I'll test it asap!</FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2>Thank you</FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2>Dov</FONT></DIV>
<BLOCKQUOTE dir=ltr
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A title=alex.lopez@opsys.com href="mailto:alex.lopez@opsys.com">Alexander
Lopez</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A title=dovb@terra.com.br
href="mailto:dovb@terra.com.br">Dov Bigio</A> ; <A
title=asterisk-users@lists.digium.com
href="mailto:asterisk-users@lists.digium.com">Asterisk Users Mailing List -
Non-Commercial Discussion</A> </DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Saturday, January 07, 2006 5:16
PM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> RE: [Asterisk-Users] Asterisk
initialization</DIV>
<DIV><BR></DIV>
<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 size=+0><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></BLOCKQUOTE></BODY></HTML>