Hi all,
Am new to openfire and IM Gateway. My requirement is like sending instant messages to Gtalk, skype, yahoo, msn IDs.
I have installed openfire in Ubuntu and also I can access this openfire admin settings via http:localhost:9090/. and also I have instlled jabberd in my system. Then I installed IMgateway plugin by copying the .jar file into plugins folder of openfire.
Then it creates one folder named gateway inside plugins folder. But I cant view the gateway plugin in admin section.
Then I tried some ruby code in irb to get connected using this account… username/ password to login to openfire admin panel is like admin/admin. I tried the folowing ruby code. But got the error as follows:
require ‘xmpp4r’
=>
include Jabber
=> Object
jid = JID::new(‘admin@localhost’)
=> #<Jabber::JID:0xb6f64e18 @domain=“localhost”, @resource=nil, @node=“admin”>
c=Client::new(jid)
=> #<Jabber::Client:0xb6f62ba4 @wakeup_thread=nil, @ssl_verifycb=nil, @presencecbs=#<Jabber::CallbackList:0xb6f62ac8 @list=>, @parser_thread=nil, @port=nil, @threadblocks=, @status=1, @ssl_capath=nil, @streamid=nil, @iqcbs=#<Jabber::CallbackList:0xb6f62af0 @list=>, @xmlcbs=#<Jabber::CallbackList:0xb6f62b54 @list=>, @keepalive_interval=60, @exception_block=nil, @tls=false, @messagecbs=#<Jabber::CallbackList:0xb6f62b18 @list=>, @host=nil, @streamns=“jabber:client”, @fd=nil, @jid=#<Jabber::JID:0xb6f64e18 @domain=“localhost”, @resource=nil, @node=“admin”>, @use_ssl=false, @features_timeout=10, @last_send=Mon Sep 22 17:51:52 +0530 2008, @send_lock=#Mutex:0xb6f62aa0, @allow_tls=“constant”, @features_sem=#<Jabber::Semaphore:0xb6f62a3c @tickets=0, @cond=#ConditionVariable:0xb6f62a00, @lock=#Mutex:0xb6f62a14>, @stanzacbs=#<Jabber::CallbackList:0xb6f62b40 @list=>>
c.connect
=> #<Jabber::Client:0xb6f62ba4 @keepaliveThread=#<Thread:0xb6f46968 sleep>, @wakeup_thread=nil, @ssl_verifycb=nil, @presencecbs=#<Jabber::CallbackList:0xb6f62ac8 @list=>, @socket=#TCPSocket:0xb6f5f42c, @parser_thread=#<Thread:0xb6f5f3a0 sleep>, @port=5222, @threadblocks=, @status=2, @ssl_capath=nil, @streamid=“48D78DE4”, @iqcbs=#<Jabber::CallbackList:0xb6f62af0 @list=>, @parser=#<Jabber::StreamParser:0xb6f5f3b4 @stream=#TCPSocket:0xb6f5f42c, @listener=#<Jabber::Client:0xb6f62ba4 …>, @current=nil, @started=true>, @xmlcbs=#<Jabber::CallbackList:0xb6f62b54 @list=>, @stream_mechanisms=, @keepalive_interval=60, @exception_block=nil, @stream_features={}, @tls=false, @messagecbs=#<Jabber::CallbackList:0xb6f62b18 @list=>, @host=“localhost”, @streamns=“jabber:client”, @fd=#TCPSocket:0xb6f5f42c, @jid=#<Jabber::JID:0xb6f64e18 @domain=“localhost”, @resource=nil, @node=“admin”>, @use_ssl=false, @features_timeout=10, @last_send=Mon Sep 22 17:51:56 +0530 2008, @send_lock=#Mutex:0xb6f62aa0, @allow_tls=“constant”, @features_sem=#<Jabber::Semaphore:0xb6f62a3c @tickets=0, @cond=#ConditionVariable:0xb6f62a00, @lock=#Mutex:0xb6f62a14>, @stanzacbs=#<Jabber::CallbackList:0xb6f62b40 @list=>>
c.auth(‘admin’)
Jabber::ClientAuthenticationFailure: : Not Acceptable
from /home/railsfactory/Public/projects/Artiklz/vendor/plugins/xmpp4r-0.4/lib/xmpp4r /client.rb:116:in `auth’
from (irb):16
when authendicating I always got the error ClientAuthenticationFailure. But I can login into admin console via http://localhost:9090/ using the account admin/admin.
Please suggest your ideas inorder to send IM messages to other protocols like MSN, Yahoo.
Regards,
Veeraa.