Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

Manager Events not triggered in Daemon mode

#97

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.

Reported by MichelV69 · June 15th, 2010 @ 09:49 AM

State: resolved
Milestone: 0.8.4
Assigned to: Ben Klang Ben Klang

Activity

  1. Ben Klang
    Ben Klang
    • 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.

    June 22nd, 2010 @ 02:37 PM

  2. Ben Klang
    Ben Klang

    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.

    June 23rd, 2010 @ 04:05 PM

  3. Ben Klang
    Ben Klang
    • State changed from open to fix

    June 23rd, 2010 @ 04:16 PM

  4. Ben Klang
    Ben Klang
    • State changed from fix to fixcommitted

    June 23rd, 2010 @ 04:16 PM

  5. Ben Klang
    Ben Klang
    • State changed from fixcommitted to resolved

    Tested by bklang and reporter.

    June 23rd, 2010 @ 06:40 PM

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.