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 method
auto_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
-
Ben Klang October 2nd, 2010 @ 08:31 AM
- State changed from new to open
- Milestone set to 1.0.0
- Tag changed from ami to ami, configuration
- Milestone order changed from 3031 to 0
-
Ben Klang October 2nd, 2010 @ 08:41 AM
- State changed from open to resolved
Fixed in 1748f7fa973dd66e2fab2baee48678610a4c6c94
http://github.com/adhearsion/adhearsion/commit/1748f7fa973dd66e2fab...
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 ยป