It turned out to be retry=0 in the queue config. retry=0 definitely causes a lockup when no-one is in the queue or a phone in the queue is unregistered.
Possibly a retry of 0 could be special-cased into a 100-200ms delay, in order to prevent undocumented foot-shooting. ---Nathan Nathan Hawkins wrote: >AgentCallbackLogin. We're using SIP for both trunks and phones. I see lots of >these: >Jun 9 11:36:44 WARNING[3079576496] channel.c: Avoided initial deadlock for >'0x80e6620', 10 retries! > >and some similar messages. I got it with a build from about thursday or so, >and with a snapshot from April 3rd. > > >Bartek Kania wrote: > > > >>-----BEGIN PGP SIGNED MESSAGE----- >>Hash: SHA1 >> >>On Wed, 14 Jun 2006, Nathan Hawkins wrote: >> >> >> >> >>>Guys, >>>I've been having a huge problem with deadlocks when using queues with >>>chan_agent. Testing worked fine, but when I moved it into production, I >>>started having the system lock up, with openpbx taking 100% CPU. >>>This is with current OpenPBX pre-0.2 branch on Xen with Linux 2.6.16, >>>running on a DL/360. We've had very good results with OpenPBX and Xen up >>>till now. >>>There is no crash, OpenPBX just runs away with the CPU (which is a pain >>>when you're using realtime priority). It seems to do that for a few >>>minutes, then recover, and work perfectly for a while. The only thing >>>that seems to work while this is going on is ping. >>>It was doing this with no load on the system, no calls up, and no agents >>>logged in. We hadn't seen it before trying to use chan_agent, and there >>>are numerous reports of deadlocks with that code in *. >>> >>> >>> >>> >>That's odd.. >>I've been running opbx pre-0.2 in production for a few months now, and >>we use chan_agent (with AgentCallbackLogin) and Queue a lot. >>No problems what so ever so far... >> >>Do you use AgentCallbackLogin or AgentLogin? >> >>/B >>- -- >>* GPG-Key: http://evil.gnarf.org/mrbk.pgp >> >>A: Because we read from top to bottom, left to right. >>Q: Why should i start my reply below the quoted text? >>- -- http://www.i-hate-computers.demon.co.uk/ >> >>-----BEGIN PGP SIGNATURE----- >>Version: GnuPG v1.4.1 (GNU/Linux) >> >>iD8DBQFEkHRQckvkFeO3ANARAoINAJ9qwnjZBGKbgXqJM5CsgBeGbnJJpACgoYVw >>di5dP5tn8fTrCaop/Y+TrQ8= >>=7kCZ >>-----END PGP SIGNATURE----- >>_______________________________________________ >>Openpbx-dev mailing list >>[email protected] >>http://lists.openpbx.org/mailman/listinfo/openpbx-dev >> >> >> >> > >_______________________________________________ >Openpbx-dev mailing list >[email protected] >http://lists.openpbx.org/mailman/listinfo/openpbx-dev > > _______________________________________________ Openpbx-dev mailing list [email protected] http://lists.openpbx.org/mailman/listinfo/openpbx-dev
