ICQ transport

Hi,

Could anyone please explain me how to configure an ICQ transport (JIT) with ejabberd?

I've managed to do the following:
1. Install and run ejabberd
Relevant part of config is:
{listen,
[{5222, ejabberd_c2s, [{access, c2s}, {shaper, c2s_shaper}]},
{5555, ejabberd_service, [{access, all},
{host, ["icq.mydomain.org"],
[{password, "secret"}]}]},
{5280, ejabberd_http, [http_poll, web_admin]}
]}.

2. Install and run JIT
Relevant part of config jit.xml is:
...

icq.mydomain.org

Please give your UIN and password
Search useres in ICQ

JIT
JIT Jabber ICQ Transport by Lukas
http://jit.sf.net

3907

/var/log/jit/session_count.log

5

5

18000

windows-1251

login.icq.com

/usr/lib/jit/jit.so

/var/run/jabber/jit.pid

localhost

127.0.0.1
5555
secret

...

3. Both are run and see each other (looks like):
ejabberd.log:
=INFO REPORT==== 2005-03-23 19:30:33 ===
I(<0.240.0>:ejabberd_listener:89): (#Port<0.341>) Accepted connection {{127,0,0,1},36435} -> {{127,0,0,1},5555}

4. Now the question is: what should I specify in my ICQ client instead of login.icq.com:5190 to connect to local ICQ server instead of icq.com? I tried icq.mydomain.org and ports 5222, 5555, 5280 and even 34955, 34957 (they are discovered by lsof) - not a chance.

Thanks a lot in advance!

Alexander

Did you saw the JIT transport

Did you saw the JIT transport config in cvs?
-- sander

Yes, I did. And didn't find a

Yes, I did. And didn't find any valuable differences with the one I use..
Could you please be more specific and point me to the section of the config which I don't have?
And I still don't understand what port should I use in the client..

Well, you need to WPJabber bi

Well, you need to WPJabber binary (included with the JIT) and point to that config file (in the example the master.xml). Also you need to make JIT doing the logging and storing of messages (xdb) by itself. Therefore there are 2 important entries extra needed in the config file of JIT:
1) one which points to the xdb library (you need to compile this manually AFAIR (it is in jit/xdb/)
2) two entries for the logging (search on logging in the example file)

BTW: As you can see I splitted the config files.

--
sander

Everything you specified is i

Everything you specified is in the config - I've just skipped it. Please, look at the full version:
master.xml
----------

/var/log/jit/icqerror

record
/var/log/jit/icqrecord

/usr/lib/jit/xdb_file.so

/var/lib/jit

sms.icq.mydomain.org

sms.icq.mydomain.org

away

Fill in your UIN and password.
Search ICQ users.
./vCard.xml

3907

/var/log/jit/session_count.log

5

5

18000
windows-1251

login.icq.com

/usr/lib/jit/jit.so

icq.mydomain.org

127.0.0.1
5555
secret

/var/run/jabber/jit.pid

Where should I specify WPJabber? And how would that lines look like?

"./vCard.xml" -->Are you s

"./vCard.xml"

-->Are you sure you have the vCard.xml file in the same directory as the master.xml? If you want to be sure: replace the above line with the content of the vCard.xml file in cvs.

--
sander

Yes, I'm sure. Here it is:

Yes, I'm sure. Here it is:

ICQ Transport (JIT)
This is the Jabber ICQ Transport.
http://jit.jabberstudio.org/

(I removed MAILADD line).
I've just included this part into master.xml - no difference..

[root@master jabber]# pwd
/etc/jabber
[root@master jabber]# ls -la
total 60
drwxr-xr-x 2 jabber root 4096 Mar 24 16:21 .
drwxr-xr-x 72 root root 12288 Mar 25 04:02 ..
-rw------- 1 jabber root 32 Feb 21 18:58 cookie
-rw-r----- 1 jabber root 5351 Mar 15 14:28 ejabberd.cfg
-rw-r--r-- 1 root root 3829 Mar 24 19:06 master.xml
-rw-r--r-- 1 root root 273 Mar 24 16:09 vCard.xml

[root@master jabber]# ps -ef|grep jab
jabber 14168 1 0 Mar15 ? 00:00:00 /usr/lib/erlang/erts-5.3.6.3/bin/epmd -daemon
jabber 26412 1 0 Mar23 ? 00:00:03 /usr/lib/erlang/erts-5.3.6.3/bin/beam -- -root /usr/lib/erlang -progname erl -- -home /home/jabber -pa /usr/lib/ejabberd/ebin -setcookie 3902c541800b6f5750e00190c20572c8 -sname ejabberd -s ejabberd -ejabberd config "/etc/jabber/ejabberd.cfg" log_path "/var/log/ejabberd/ejabberd.log" -sasl sasl_error_logger {file,"/var/log/ejabberd/sasl.log"} -heart -noshell -noinput
jabber 26415 26412 0 Mar23 ? 00:00:00 heart -pid 26412
jabber 26416 26412 0 Mar23 ? 00:00:00 /usr/lib/erlang/lib/ssl-3.0.2/priv/bin/ssl_esock
jabber 2281 1 0 Mar24 ? 00:02:02 jit -u jabber -d -H /var/log/jit -c /etc/jabber/master.xml

ICQ transport is not a kind of local ICQ server

> 4. Now the question is: what should I specify in my ICQ client instead of login.icq.com:5190 to connect to local ICQ server [..]

You cannot use jabber transport as a local server, since it was designed for quite the contrary purpose — to act as a gateway between local jabber clients and global ICQ (or any other proprietary IM network) server. So local users should use Jabber client instead of ICQ one and register on icq transport (icq.mydomain.org according to your config).

Now I see. Thanks a lot!

Now I see. Thanks a lot!

Syndicate content