Look at "Loading it up" here:
http://telegraph.rubyforge.org/wiki/wiki.pl?UsingAMI
The key line is
Telegraph::AsteriskManager.establish_connection!(:username=>''user'',
:secret=>''password'')
Jonathan
On 6/20/07, Tim Uckun <timuckun at gmail.com>
wrote:>
> I get the following error when I attempt to start the AMI server.
>
> D:\Source\trunk\borg\telegraph_test>ruby script\ami_server
> d:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
> `gem_original_require'': no such file to load --
script/../vendor/plu
> gins/rai/lib/ami_server (LoadError)
> from
> d:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
> `require''
> from script/ami_server:79:in `start''
> from script/ami_server:65:in `send''
> from script/ami_server:65:in `initialize''
> from script/ami_server:170:in `new''
> from script/ami_server:170
>
>
> What am I missing here?
>
> Also how do I specify which machine my asterisk server is on? What is
> the equivalent of..
>
> ami_server = Rami::Server.new({''host'' =>
''192.168.3.1'', ''username'' =>
> ''username'', ''secret'' =>
''password''})
> _______________________________________________
> Telegraph-users mailing list
> Telegraph-users at rubyforge.org
> http://rubyforge.org/mailman/listinfo/telegraph-users
>
--
Jonathan Palley | Idapted Inc.
jpalley at idapted.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://rubyforge.org/pipermail/telegraph-users/attachments/20070620/b12f539e/attachment-0001.html