From timuckun at gmail.com Wed Feb 27 22:26:19 2008 From: timuckun at gmail.com (Tim Uckun) Date: Thu, 28 Feb 2008 16:26:19 +1300 Subject: [Telegraph-users] Rails 2 In-Reply-To: <6B3727B1924AC94F915E95DC9063EFFA03F5D9CD@norwalk-ex1.ad.adeptra.com> References: <6B3727B1924AC94F915E95DC9063EFFA03F5D9CD@norwalk-ex1.ad.adeptra.com> Message-ID: <855e4dcf0802271926v69f35ddcif4595346cebca388@mail.gmail.com> On Sat, Jan 5, 2008 at 4:19 PM, Patrick Baker wrote: > This may have been discussed before, so apologies if I'm bringing up an old topic. Has anyone tested telegraph with the recently released Rails 2.0? Just today I tried it with rails 2.0 When I went to generate an AMI model I got the following error. D:\Source\ruby\telegraph_test_new>ruby script/generate ami_model AMIModel d:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require': no such file to load -- breakpoint (MissingSourceFile) from d:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require' from d:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:496:in `require' from d:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:342:in `new_constants_in' from d:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:496:in `require' from D:/Source/ruby/telegraph_test_new/vendor/plugins/telegraph/lib/call_connection.rb:8 from d:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require' from d:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require' from d:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:496:in `require' ... 17 levels... from d:/ruby/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/commands/generate.rb:1 from d:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require' from d:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require' from script/generate:3 D:\Source\ruby\telegraph_test_new> So looks like something is not right. From Prometheus001 at gmx.net Fri Feb 29 06:13:55 2008 From: Prometheus001 at gmx.net (Peter P GMX) Date: Fri, 29 Feb 2008 12:13:55 +0100 Subject: [Telegraph-users] Problem starting ami-event_handler Message-ID: <47C7E8F3.2050503@gmx.net> when I start the ami-event_handler I get the following message: Loading DRb ** Signals ready. TERM => stop. USR2 => restart. INT => stop (no restart). Loaded AMI Event Handler # /usr/lib/ruby/1.8/drb/drb.rb:736:in `open': druby://localhost:9000 - # (DRb::DRbConnError) from /usr/lib/ruby/1.8/drb/drb.rb:729:in `each' from /usr/lib/ruby/1.8/drb/drb.rb:729:in `open' from /usr/lib/ruby/1.8/drb/drb.rb:1189:in `initialize' from /usr/lib/ruby/1.8/drb/drb.rb:1169:in `new' from /usr/lib/ruby/1.8/drb/drb.rb:1169:in `open' from /usr/lib/ruby/1.8/drb/drb.rb:1085:in `method_missing' from /usr/lib/ruby/1.8/drb/drb.rb:1103:in `with_friend' from /usr/lib/ruby/1.8/drb/drb.rb:1084:in `method_missing' from ./script/../config/../vendor/plugins/telegraph/lib/ami_server.rb:55:in `watch_for_events' from script/ami_event_handler:82:in `start' from script/ami_event_handler:58:in `send' from script/ami_event_handler:58:in `initialize' from script/ami_event_handler:162:in `new' from script/ami_event_handler:162 root at HP530PST:~/aptana_workspace/Telegraph# I had this problem before with agi_server, and after I changed the localhost against my eth0 address it worked. The strange thing is: For ami_event_handler I changed in the configs at all places druby://localhost:9000 against druby://192.168.x.x:9000, but no change. Just for my understanding: 9000 is the port on the local machine where the ruby processes communicate internally, hein? Any hint where to search? Just a hint: My Asterisk Server runs on a different host. Best regards Peter