On Mon, 2007-11-26 at 12:20 +0530, Voip Dev wrote: > Hi all, > I am having requirment to display the status of the users continuously > updated, for that I am having a php script which checks the status > channels every seconds using the AMI .Now for this task the manager > logs on and off every second. So, can any one help me to make manger > just log in once and remain logged in > Thanks in advance.
This really isn't asterisk related. Your problem is really related to the application you have written and the technology you have chosen. The problem you have encountered is exactly why astman was written all those years ago. Essentially you needed some way to maintain information about state. If you are worried about the logins and logouts, then what you will need is a form of proxy. You will need to write a central clearinghouse for the information you have gathered from the AMI interface. This clearinghouse will be a long running application that can just receive the AMI messages and keep a internal state of things. From here you will connect your php written webapp. Of course you will be replicating well tested code. You will be adding complexity where it may not be truely beneficial for anything but moving where certain workloads occur. -- critch <[EMAIL PROTECTED]> _______________________________________________ --Bandwidth and Colocation Provided by http://www.api-digital.com-- asterisk-dev mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-dev
