Manager Events not triggered in Daemon mode
Reported by MichelV69 | June 15th, 2010 @ 09:49 AM | in 0.8.4
Adhearsion v0.8.4
events.rb:
events.asterisk.manager_interface.each do |event|
case event.name.downcase
when "hangup"
ahn_log "events.rb: start hangup event"
now = Time.new
ahn_log "events.rb: end hangup event at #{now} "
end
end # do event
I have three different installations for customers right now with similar behavior. In each case, the code in the "hangup" event does not fire (no logs or DB activity) if AHN is running in "daemon" mode in the background. However, when running in foreground mode, the hangup event fires as expected.
Current work around is to run ahn via the "screen" utility:
screen -d -m ahn start .
AHN is thus running in "foreground" mode on a detached screen session and hangup events are handled correctly.
Comments and changes to this ticket
-
Ben Klang June 22nd, 2010 @ 02:37 PM
- Milestone set to 0.8.4
- Tag changed from daemon mode, adhearsion, event, hangup to daemon mode, adhearsion, event
- State changed from new to open
- Title changed from "Hangup" event not processed in Daemon mode to Manager Events not triggered in Daemon mode
Based on my testing, this seems to affect all events, not just Hangup events. Definitely a bug, I'm looking into it.
-
Ben Klang June 23rd, 2010 @ 04:05 PM
A fix for this has been committed. Please try the latest Git snapshot from http://github.com/adhearsion/adhearsion and let me know if it resolves the issue for you.
-
Ben Klang June 23rd, 2010 @ 04:16 PM
- State changed from open to fix
-
Ben Klang June 23rd, 2010 @ 04:16 PM
- State changed from fix to fixcommitted
-
Ben Klang June 23rd, 2010 @ 06:40 PM
- State changed from fixcommitted to resolved
Tested by bklang and reporter.
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป