----- Original Message -----
Sent: Saturday, January 07, 2006 5:16
PM
Subject: RE: [Asterisk-Users] Asterisk
initialization
Do not know what version you are
running,
But there are a few ways to do
this.
There is a persistant setting:
from agents.conf
;
; Define whether callbacklogins should be
stored in astdb for
; persistence. Persistent logins will be reloaded
after
; Asterisk restarts.
;
persistentagents=yes
If you want to handle it outside of Asterisk via an AGI
you can have your AGI execute:
AgentCallbackLogin([AgentNo][|[options][|[EMAIL PROTECTED]):
this
is providing that you have the information saved in your
DB.
Personal Opinion:
Use
the builtin features with the persistentagents options and use the php script
in the contribs directory to see who is on.
Hi,
I am doing an AGI that logs to a database every
Agent login/logoff.
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.
The problem is that I would need to reload
their status from this AGI when Asterisk initializes. Is there a way to do
this?
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.
Is there another way of running an AGI on
initialization?
Thank you
Dov