[Asterisk-Users] Asterisk initialization

Alexander Lopez alex.lopez at opsys.com
Sat Jan 7 10:26:23 MST 2006


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][|[exten]@context]]):
 
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: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Dov Bigio
	Sent: Friday, January 06, 2006 4:24 PM
	To: asterisk-users at lists.digium.com
	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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20060107/e5a0596b/attachment.htm


More information about the asterisk-users mailing list