#117 ✓resolved
Ludovic Gasc

Impossible to configure :auto_reconnect for AMI in startup.rb

Reported by Ludovic Gasc | September 9th, 2010 @ 05:17 AM | in 1.0.0

lib/adhearsion/voip/asterisk/manager_interface.rb, you've now a new option :auto_reconnect, but it's impossible to configure in the config/startup.rb.

Backtrace:
/home/lg/.gem/ruby/1.8/gems/adhearsion-0.8.6/lib/adhearsion/initializer/configuration.rb:111:in send': undefined methodauto_reconnect=' for #<Adhearsion::Configuration::AsteriskConfiguration::AMIConfiguration:0x7f02831ed228> (NoMethodError)

    from /home/lg/.gem/ruby/1.8/gems/adhearsion-0.8.6/lib/adhearsion/initializer/configuration.rb:111:in `initialize'
    from /home/lg/.gem/ruby/1.8/gems/adhearsion-0.8.6/lib/adhearsion/initializer/configuration.rb:110:in `each_pair'
    from /home/lg/.gem/ruby/1.8/gems/adhearsion-0.8.6/lib/adhearsion/initializer/configuration.rb:110:in `initialize'
    from /home/lg/.gem/ruby/1.8/gems/adhearsion-0.8.6/lib/adhearsion/initializer/configuration.rb:181:in `initialize'
    from /home/lg/.gem/ruby/1.8/gems/adhearsion-0.8.6/lib/adhearsion/initializer/configuration.rb:9:in `new'
    from /home/lg/.gem/ruby/1.8/gems/adhearsion-0.8.6/lib/adhearsion/initializer/configuration.rb:9:in `enable_ami'
    from /home/lg/tests/config/startup.rb:32
    from /home/lg/.gem/ruby/1.8/gems/adhearsion-0.8.6/lib/adhearsion/initializer/configuration.rb:28:in `configure'
    from /home/lg/tests/config/startup.rb:13
    from /home/lg/.gem/ruby/1.8/gems/activesupport-2.3.9/lib/active_support/dependencies.rb:171:in `load_without_new_constant_marking'
    from /home/lg/.gem/ruby/1.8/gems/activesupport-2.3.9/lib/active_support/dependencies.rb:171:in `load'
    from /home/lg/.gem/ruby/1.8/gems/activesupport-2.3.9/lib/active_support/dependencies.rb:547:in `new_constants_in'
    from /home/lg/.gem/ruby/1.8/gems/activesupport-2.3.9/lib/active_support/dependencies.rb:171:in `load'
    from /home/lg/.gem/ruby/1.8/gems/adhearsion-0.8.6/lib/adhearsion/initializer.rb:271:in `load_all_init_files'
    from /home/lg/.gem/ruby/1.8/gems/adhearsion-0.8.6/lib/adhearsion/initializer.rb:271:in `each'
    from /home/lg/.gem/ruby/1.8/gems/adhearsion-0.8.6/lib/adhearsion/initializer.rb:271:in `load_all_init_files'
    from /home/lg/.gem/ruby/1.8/gems/adhearsion-0.8.6/lib/adhearsion/initializer.rb:146:in `start'
    from /home/lg/.gem/ruby/1.8/gems/adhearsion-0.8.6/lib/adhearsion/initializer.rb:102:in `start'
    from /home/lg/.gem/ruby/1.8/gems/adhearsion-0.8.6/lib/adhearsion/cli.rb:129:in `start'
    from /home/lg/.gem/ruby/1.8/gems/adhearsion-0.8.6/lib/adhearsion/cli.rb:19:in `send'
    from /home/lg/.gem/ruby/1.8/gems/adhearsion-0.8.6/lib/adhearsion/cli.rb:19:in `execute!'
    from /home/lg/.gem/ruby/1.8/gems/adhearsion-0.8.6/bin/ahn:28
    from /home/lg/.gem/ruby/1.8/bin/ahn:19:in `load'
    from /home/lg/.gem/ruby/1.8/bin/ahn:19

Comments and changes to this ticket

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.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Shared Ticket Bins

People watching this ticket

Pages