-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adhearsion::Asterisk.execute_ami_action is asynchronous in adhearsion >= 2.4 #16
Comments
Please provide a log at trace level and Gemfile.lock for both working and broken cases. |
Just in case, here are the source Gemfiles: |
@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!
The text was updated successfully, but these errors were encountered: