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
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 > >
<table cellspacing=''0'' cellpadding=''0''
border=''0'' ><tr><td style=''font:
inherit;''>hi<br><br>guys, just try to change RAI in the
ami logic class declaration by Telegraph.<br><br>hope thats will
works<br><br>Boreï<br><br>--- En date de : <b>Ven
4.4.08, Peter P GMX <i><Prometheus001@gmx.net></i></b> a
écrit :<br><blockquote style="border-left: 2px solid rgb(16, 16,
255); margin-left: 5px; padding-left: 5px;">De: Peter P GMX
<Prometheus001@gmx.net><br>Objet: Re: [Telegraph-users] problem
starting ami_event_handler<br>À:
telegraph-users@rubyforge.org<br>Date: Vendredi 4 Avril 2008,
12h27<br><br><pre>Hello Mike,<br><br>for me it
seems, that the Drb server doesn''t connect to Asterisk. I am
<br>also struggling with that. I had the same problem with ami_server
which <br>had a missing Telegraph constant. After I passed the correct
login <br>credentials to Asterisk it worked fine.<br><br>Maybe
we can solve it together. So my first question is: Where
and how <br>do you place your login credentials for
ami_event_handler?<br><br>Best
regards<br>Peter<br><br>Mike Clark schrieb:<br>> I
could not get the ami_event_handler to start. I get the following <br>>
error messages.<br>><br>> #
script/ami_event_handler<br>> Loading DRb<br>> ** Signals
ready. TERM => stop. USR2 => restart. INT => stop<br>(no
<br>>
restart).<br>><br>/usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:266:in<br><br>>
`load_missing_constant'': uninitialized constant RAI
(NameError)<br>> from
<br>><br>/usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:452:in<br><br>>
`const_missing''<br>> from
<br>><br>/usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:464:in<br><br>>
`const_missing''<br>> from
./script/../config/../app/ami_logic/ami_logic.rb:1<br>> from
<br>>
/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
<br>> `gem_original_require''<br>> from
<br>>
/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in<br>`require''<br>>
from
<br>><br>/usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:495:in<br><br>>
`require''<br>> from
<br>><br>/usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:342:in<br><br>>
`new_constants_in''<br>> from
<br>><br>/usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:495:in<br><br>>
`require''<br>> ... 22 levels...<br>>
from script/ami_event_handler:58:in `send''<br>> from
script/ami_event_handler:58:in `initialize''<br>> from
script/ami_event_handler:162:in
`new''<br>> from
script/ami_event_handler:162<br>><br>>
_______________________________________________<br>> Telegraph-users
mailing list<br>> Telegraph-users@rubyforge.org<br>>
http://rubyforge.org/mailman/listinfo/telegraph-users<br>><br>>
<br>_______________________________________________<br>Telegraph-users
mailing
list<br>Telegraph-users@rubyforge.org<br>http://rubyforge.org/mailman/listinfo/telegraph-users</pre></blockquote></td></tr></table><br>
<hr size="1">
Envoyé avec <a
href="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">Yahoo!
Mail</a>.<br>Une boite mail plus intelligente. </a>
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
>