Open sjamaan opened 8 years ago
Please provide a log at trace level and Gemfile.lock for both working and broken cases.
Just in case, here are the source Gemfiles: Gemfile-2.3-ok.txt Gemfile-2.4-bad.txt
@sjamaan It would be useful if you would step through available Punchblock versions to determine which release caused this.
I'll get back to you on that, might take a few days
OK, had time to look into it today already.
The bug occurs somewhere between Punchblock 2.1.1 (which works) and Punchblock 2.2.0 (which doesn't). From the changelog, "Bugfix: Remove per-call/component actors from Asterisk translator for performance/stability super-charge" sounds like a likely culprit. I'm unsure how to actually debug it at this level, though.
While upgrading an Adhearsion application from 2.3 to 2.4 I noticed that my code which interrogates the status of Asterisk queues would ntermittently return everything, nothing, or only some of the entries.
After a bit of debugging, I found that if I run the following in the
ahn
console:This will print
DONE!
intermixed with the events in Adhearsion 2.4, while it will printDONE!
after all the events in 2.3. I think the new behaviour is a bug, because the documentation for adhearsion-asterisk indicates thatexecute_ami_action()
is (intended to be) synchronous.I've tried to debug this but the Punchblock code is extremely abstract, and difficult to follow. Any help would be appreciated!