That's great... I didn't know about the persistentagents features!
 
I'll test it asap!
 
Thank you
Dov
----- 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.
 
 
 
 


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Dov Bigio
Sent: Friday, January 06, 2006 4:24 PM
To: [email protected]
Subject: [Asterisk-Users] Asterisk initialization

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
_______________________________________________
--Bandwidth and Colocation provided by Easynews.com --

Asterisk-Users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to