Summary:ASTERISK-03140: [patch] agent logins should persist through an asterisk restart
Reporter:Lee Howard (faxguy)Labels:
Date Opened:2004-12-30 15:02:52.000-0600Date Closed:2005-01-05 00:13:45.000-0600
Versions:Frequency of
Environment:Attachments:( 0) asterisk-chan_agent-1.0.3.patch
( 1) chan_agent.diff
( 2) conf.diff
Description:If, for some reason, a server needs to be restarted or asterisk must be restarted, it would certainly be nice if agents who are logged in before the shutdown would stay logged in after the restart.

It's a major pain to take note of which agents are logged in before I do a shutdown, and then to manually log all of them in after the restart.
Comments:By: Mark Spencer (markster) 2004-12-30 20:10:47.000-0600

The add/remove dynamic queue members already behave in that way.  Perhaps you could port the code from that to the agent callback login to behave similarly?

By: nick (nick) 2004-12-31 04:58:21.000-0600

I have a patch for this forthcoming as soon as I can make sure it's really working.

By: nick (nick) 2004-12-31 15:22:06.000-0600

The patch is borrows from the stuff in app_queue, but it isn't a complete rip-off :-).  The patch also adds a [general] section to agents.conf and a field to configure persistance.

Disclaimer is being filed.

By: Lee Howard (faxguy) 2004-12-31 16:12:13.000-0600

I just uploaded the patch ported to release 1.0.3.  Works as promised.  Great.  Thanks nick.

By: Mark Spencer (markster) 2004-12-31 16:31:50.000-0600

Let me know if you've sent it in and I'll go ahead and merge it.  Thanks!

By: nick (nick) 2004-12-31 18:23:37.000-0600

Yes, I faxed mine earlier today.

Thanks Mark!

By: Mark Spencer (markster) 2004-12-31 19:01:50.000-0600

Added to CVS head, thanks very much for your contribution, nick!

By: Lee Howard (faxguy) 2004-12-31 19:03:47.000-0600

Any chance in this getting into STABLE?  Or does it need to play in HEAD for a while first?

By: twisted (twisted) 2004-12-31 19:17:32.000-0600

The only patches that go into stable are bug fixes.  Once this is around for a while, it will likely make it into a stable release.  You can talk to drumkilla to request it added, but that's the best you can do.  Also, it must be in resolved status for him to even see it as added to head ;)  Re-Resolving.

By: twisted (twisted) 2004-12-31 19:17:50.000-0600

added to cvs head by markster

By: Russell Bryant (russell) 2005-01-05 00:13:45.000-0600

not included in 1.0