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.

AMI failed authentication consumes 100% CPU

#43

If AMI authentication fails, asterisk drops the socket, but adhearsion doesn't catch that and repeatedly reads from the socket in a tight loop.

Reported by ronin-9952 (at lighthouseapp) · December 17th, 2008 @ 07:01 PM

State: resolved
Milestone: none
Assigned to: Jay Phillips Jay Phillips

Activity

  1. Jay Phillips
    Jay Phillips
    • State changed from new to open

    December 18th, 2008 @ 03:03 PM

  2. Jay Phillips
  3. Ben Klang
    Ben Klang
    • State changed from open to resolved
    • Milestone order changed from 0 to 0

    This seems to have been fixed at some point in the past. Should authentication fail now, an exception is raised:

    DEBUG ami: Sending AMI action: 
    >>> Action: login
    >>> ActionID: uruyVaLv-LqAS-KOzU-FZ4m-Dtci5YlUSZNu
    >>> Username: adhearsion
    >>> Secret: the_wrong_password
    >>> Events: Off
    >>> 
    ERROR ami: Error connecting to AMI! #<Adhearsion::VoIP::Asterisk::Manager::ManagerInterface::AuthenticationFailedException: Incorrect username and password! Authentication failed>
    ERROR ami: AMI connection for ACTION disconnected !!!
    [Fri Jul 30 12:18:32 2010] Adhearsion::VoIP::Asterisk::AGI::Server::RubyServer 0.0.0.0:1050 start
    

    July 30th, 2010 @ 12:19 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.