[Telegraph-users] problem starting ami_event_handler
Peter P GMX
Prometheus001 at gmx.net
Sun Apr 6 14:50:43 EDT 2008
Thanks for the hint. This works in the controller class.
In my case I had to change a line in script/ami_event_handler
I changed
c = DRbObject.new(nil, 'druby://localhost:9000')
to my local IP where ami_server is listening on:
c = DRbObject.new(nil, 'druby://192.168.178.51:9000')
Now I start ami_server and then ami_event_handler and it finally works.
I am happy.
Best regards
Peter
ENG Borei schrieb:
> hi
>
> guys, just try to change RAI in the ami logic class declaration by
> Telegraph.
>
> hope thats will works
>
> Boreï
>
> --- En date de : *Ven 4.4.08, Peter P GMX /<Prometheus001 at gmx.net>/* a
> écrit :
>
> De: Peter P GMX <Prometheus001 at gmx.net>
> Objet: Re: [Telegraph-users] problem starting ami_event_handler
> À: telegraph-users at rubyforge.org
> Date: Vendredi 4 Avril 2008, 12h27
>
> Hello Mike,
>
> for me it seems, that the Drb server doesn't connect to Asterisk. I am
> also struggling with that. I had the same problem with ami_server which
> had a missing Telegraph constant. After I passed the correct login
> credentials to Asterisk it worked fine.
>
> Maybe we can solve it together. So my first question is: Where
> and how
> do you place your login credentials for ami_event_handler?
>
> Best regards
> Peter
>
> Mike Clark schrieb:
> > I could not get the ami_event_handler to start. I get the following
> > error messages.
> >
> > # script/ami_event_handler
> > Loading DRb
> > ** Signals ready. TERM => stop. USR2 => restart. INT => stop
> (no
> > restart).
> >
> /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:266:in
>
> > `load_missing_constant': uninitialized constant RAI (NameError)
> > from
> >
> /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:452:in
>
> > `const_missing'
> > from
> >
> /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:464:in
>
> > `const_missing'
> > from
> ./script/../config/../app/ami_logic/ami_logic.rb:1
> > from
> > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
> > `gem_original_require'
> > from
> > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
> `require'
> > from
> >
> /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:495:in
>
> > `require'
> > from
> >
> /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:342:in
>
> > `new_constants_in'
> > from
> >
> /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:495:in
>
> > `require'
> > ... 22 levels...
> > 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
> >
> > _______________________________________________
> > Telegraph-users mailing list
> > Telegraph-users at rubyforge.org
> > http://rubyforge.org/mailman/listinfo/telegraph-users
> >
> >
> _______________________________________________
> Telegraph-users mailing list
> Telegraph-users at rubyforge.org
> http://rubyforge.org/mailman/listinfo/telegraph-users
>
>
> ------------------------------------------------------------------------
> Envoyé avec Yahoo! Mail
> <http://us.rd.yahoo.com/mailuk/taglines/isp/control/*http://us.rd.yahoo.com/evt=52423/*http://fr.docs.yahoo.com/mail/overview/index.html>.
> Une boite mail plus intelligente.
> ------------------------------------------------------------------------
>
> _______________________________________________
> Telegraph-users mailing list
> Telegraph-users at rubyforge.org
> http://rubyforge.org/mailman/listinfo/telegraph-users
>
More information about the Telegraph-users
mailing list