Tony Su | 2 Feb 2004 23:22

Question - Installing ejabber on Windows

Believe the documentation needs to be updated.
 
First, a new build of the Erlang emulator has been released (R9C-0)... judging that these emulators are usually backwards compatible, I installed it.
Same when I installed expat, I installed expat_win32bin_1_95_7.exe
 
But, when it came to installing iconv, things look very different. The current build is libiconv-1.8-1-lib.exe
 
The components of this build do not resemble the names and paths described in the documentation.
 
Any suggestions?
 
TIA
 
Tony
Sergei Golovan | 3 Feb 2004 06:29
Picon

Re: Question - Installing ejabber on Windows

On Mon, Feb 02, 2004 at 02:22:19PM -0800, Tony Su wrote:
> 
>    But, when it came to installing iconv, things look very different. The
>    current build is libiconv-1.8-1-lib.exe

You have to download and install also libiconv-1.8-1-bin.exe. It contains
libiconv-2.dll.

> 
>    The components of this build do not resemble the names and paths
>    described in the documentation.

OK. This is a bug in ejabberd documentation.

--

-- 
Sergei 'TeopeTuK' Golovan                       <mailto:sgolovan(a)kengu.ru>
                                                <xmpp:sgolovan(a)nes.ru>

Tony Su | 4 Feb 2004 01:42

RE: Question - Installing ejabber on Windows

Thanks for your help, although the link in the documentation points only
to lib.exe I now have both lib.exe and bin.exe installed.

Now, hoping you can clarify another point in the installation...
I've only seen "make" files in a UNIX/LINUX context... Is this command
supposed to be executed within a Visual C++ compiler?
Referring to the following commands

Being in ejabberd\src directory run: 
configure
nmake -f Makefile.win32

TIA,
Tony

-----Original Message-----
From: Sergei Golovan [mailto:sgolovan <at> kengu.ru] 
Sent: Monday, February 02, 2004 9:30 PM
To: ejabberd <at> jabber.ru
Subject: Re: [ejabberd] Question - Installing ejabber on Windows

On Mon, Feb 02, 2004 at 02:22:19PM -0800, Tony Su wrote:
> 
>    But, when it came to installing iconv, things look very different.
The
>    current build is libiconv-1.8-1-lib.exe

You have to download and install also libiconv-1.8-1-bin.exe. It
contains libiconv-2.dll.

> 
>    The components of this build do not resemble the names and paths
>    described in the documentation.

OK. This is a bug in ejabberd documentation.

--

-- 
Sergei 'TeopeTuK' Golovan
<mailto:sgolovan(a)kengu.ru>
                                                <xmpp:sgolovan(a)nes.ru>

_______________________________________________
ejabberd mailing list
ejabberd <at> jabber.ru http://lists.jabber.ru/mailman/listinfo/ejabberd

Sergei Golovan | 4 Feb 2004 05:52
Picon

Re: Question - Installing ejabber on Windows

On Tue, Feb 03, 2004 at 04:42:29PM -0800, Tony Su wrote:
> Thanks for your help, although the link in the documentation points only
> to lib.exe I now have both lib.exe and bin.exe installed.
> 
> Now, hoping you can clarify another point in the installation...
> I've only seen "make" files in a UNIX/LINUX context... Is this command
> supposed to be executed within a Visual C++ compiler?

You should run nmake from the windows command prompt.
Before that you may have to setup some environment variables (as for me, I've
added "C:\Program Files\Microsoft Visual Studio\vc98\bin" to PATH and run
vcvars32.bat from this directory).

> Referring to the following commands
> 
> Being in ejabberd\src directory run: 
> configure
> nmake -f Makefile.win32

--

-- 
Sergei 'TeopeTuK' Golovan                       <mailto:sgolovan(a)kengu.ru>
                                                <xmpp:sgolovan(a)nes.ru>

Picon

Cannot connect via SSL

Hello!

I use FreeBSD-current and erlang-r9c0_4.

I have the following in my ejabberd.cfg:

{listen, [{5222, ejabberd_c2s,
                      [{access,   c2s},
                       {shaper,   c2s_shaper}]},
          {5223, ejabberd_c2s,
                      [{access,   c2s},
                       {shaper,   c2s_shaper},
                       {ssl,    [{certfile, "./ssl.pem"}]}
]},
          {5269, ejabberd_s2s_in,
                      [{shaper,   s2s_shaper}]}]}.

I tried both ejabberd-0.5 and the version from today's CVS.

When I am trying to connect with SSL enabled, I get in ejabber log:

=INFO REPORT==== 2-Feb-2004::13:03:57 ===
I(<0.241.0>:ejabberd_listener:92): ({sslsocket,7,<0.2268.0>}) Accepted SSL conne
ction {{194,87,2,103},49377} -> {{194,87,2,103},5223}

TKabber prints the following in the console window:

jlib: (jlib::disconnect)
jlib: (jlib::connect) Socket:'sock4' Server:'tear.demos.ru' ConnectionID:'1'
jlib: (jlib::outmsg) (1) '<stream:stream xmlns:stream='http://etherx.jabber.org/
streams' xmlns='jabber:client' to='tear.demos.ru'>'
jlib: (jlib::inmsg) (1) ''
jlib: error (jlib::inmsg) Socket is closed by server. Disconnecting...
RECONNECT 1

At the same time, I can successfully login without SSL.

I generated my ssl.pem with the following command:

openssl req -x509 -newkey rs:1024 -keyout ssl.pem -out ssl.pem -days 365 -nodes

What should I do to login over SSL?

Thanks!

Picon

ejabberd & JIT

Добрый день!

Пожалуйста, подскажите, что надо написать в конфиг
ejabberd, чтобы 
заработал ICQ-транспорт (JIT).

Спасибо!

Sergei Golovan | 8 Feb 2004 07:04
Picon

Re: ejabberd & JIT

On Sat, Feb 07, 2004 at 10:39:10PM +0300, Дмитрий Сиваченко wrote:
> Добрый день!
> 
> Пожалуйста, подскажите, что надо написать в конфиг
ejabberd, чтобы 
> заработал ICQ-транспорт (JIT).

1) This mailing list is read by not only russians, so, use English, please.

2) I have in my ejabberd.cfg the following (in tuple listen):

{16385, ejabberd_service, [{access, icq},
                           {hosts, ["icq.nes.ru"], [{password, "xxxx"}]}]}

ejabberd listens for JIT at port 16385, uses acl icq, have hostname icq.nes.ru
and secret xxxx

Corresponding service section in JIT config:

<service id="jitlinker">
  <host>nes.ru</host>
  <uplink/>
  <connect>
    <ip>127.0.0.1</ip>
    <port>16385</port>
    <secret>xxxx</secret>
  </connect>
</service>

Best wishes!
--

-- 
Sergei 'TeopeTuK' Golovan                       <mailto:sgolovan(a)kengu.ru>
                                                <xmpp:sgolovan(a)nes.ru>

dvspm | 8 Feb 2004 12:42
Picon
Favicon

Re: ejabberd Digest, Vol 7, Issue 3

Здравствуйте, ejabberd-request.

Вы писали 8 февраля 2004 г., 12:00:02:

erjr> Send ejabberd mailing list submissions to
erjr> 	ejabberd <at> jabber.ru

erjr> To subscribe or unsubscribe via the World Wide Web, visit
erjr> 	http://lists.jabber.ru/mailman/listinfo/ejabberd
erjr> or, via email, send a message with subject or body 'help' to
erjr> 	ejabberd-request <at> jabber.ru

erjr> You can reach the person managing the list at
erjr> 	ejabberd-owner <at> jabber.ru

erjr> When replying, please edit your Subject line so it is more specific
erjr> than "Re: Contents of ejabberd digest..."

erjr> Today's Topics:

erjr>    1. ejabberd & JIT (??????? ?????????)
erjr>    2. Re: ejabberd & JIT (Sergei Golovan)

erjr> ----------------------------------------------------------------------

erjr> Message: 1
erjr> Date: Sat, 7 Feb 2004 22:39:10 +0300
erjr> From: ??????? ????????? <mitya <at> cavia.pp.ru>
erjr> Subject: [ejabberd] ejabberd & JIT
erjr> To: ejabberd <at> jabber.ru
erjr> Message-ID: <20040207193910.GA9291 <at> fling-wing.demos.su>
erjr> Content-Type: text/plain; charset=koi8-r

erjr> дПВТЩК ДЕОШ!

erjr> рПЦБМХКУФБ, РПДУЛБЦЙФЕ, ЮФП ОБДП ОБРЙУБФШ Ч
ЛПОЖЙЗ ejabberd, ЮФПВЩ
erjr> ЪБТБВПФБМ ICQ-ФТБОУРПТФ (JIT).

erjr> уРБУЙВП!

erjr> ------------------------------

erjr> Message: 2
erjr> Date: Sun, 8 Feb 2004 09:04:02 +0300
erjr> From: Sergei Golovan <sgolovan <at> kengu.ru>
erjr> Subject: Re: [ejabberd] ejabberd & JIT
erjr> To: ejabberd <at> jabber.ru
erjr> Message-ID: <20040208060402.GA15451 <at> jupiter.golovan.ru>
erjr> Content-Type: text/plain; charset=koi8-r

erjr> On Sat, Feb 07, 2004 at 10:39:10PM +0300, дНЙФТЙК уЙЧБЮЕОЛП wrote:
>> дПВТЩК ДЕОШ!
>> 
>> рПЦБМХКУФБ, РПДУЛБЦЙФЕ, ЮФП ОБДП ОБРЙУБФШ Ч ЛПОЖЙЗ
ejabberd, ЮФПВЩ 
>> ЪБТБВПФБМ ICQ-ФТБОУРПТФ (JIT).

erjr> 1) This mailing list is read by not only russians, so, use English, please.

erjr> 2) I have in my ejabberd.cfg the following (in tuple listen):

erjr> {16385, ejabberd_service, [{access, icq},
erjr>                            {hosts, ["icq.nes.ru"], [{password, "xxxx"}]}]}

erjr> ejabberd listens for JIT at port 16385, uses acl icq, have hostname icq.nes.ru
erjr> and secret xxxx

erjr> Corresponding service section in JIT config:

erjr> <service id="jitlinker">
erjr>   <host>nes.ru</host>
erjr>   <uplink/>
erjr>   <connect>
erjr>     <ip>127.0.0.1</ip>
erjr>     <port>16385</port>
erjr>     <secret>xxxx</secret>
erjr>   </connect>
erjr> </service>

erjr> Best wishes!

--

-- 
С уважением,
 dvspm                          mailto:dvspm <at> mail2k.ru

Mickael Remond | 9 Feb 2004 23:51

Getting the status of connected users

Hello,

I am trying to programmatically get the list and status of all connected
users.
It is easy to get the list of connected users (by looking at the
presence table). However, I did not find an handy way to get the status
(Available, free for chat, ...) of those users.

Any idea ?

--

-- 
Mickaël Rémond
 http://www.erlang-projects.org/

Picon

Re: ejabberd & JIT

On Sun, Feb 08, 2004 at 09:04:02AM +0300, Sergei Golovan wrote:
> On Sat, Feb 07, 2004 at 10:39:10PM +0300, Дмитрий Сиваченко wrote:
> > Добрый день!
> > 
> > Пожалуйста, подскажите, что надо написать в конфиг
ejabberd, чтобы 
> > заработал ICQ-транспорт (JIT).
> 
> 1) This mailing list is read by not only russians, so, use English, please.
> 
> 2) I have in my ejabberd.cfg the following (in tuple listen):
> 
> {16385, ejabberd_service, [{access, icq},
>                            {hosts, ["icq.nes.ru"], [{password, "xxxx"}]}]}
> 
> ejabberd listens for JIT at port 16385, uses acl icq, have hostname icq.nes.ru
> and secret xxxx
> 
> Corresponding service section in JIT config:
> 
> <service id="jitlinker">
>   <host>nes.ru</host>
>   <uplink/>
>   <connect>
>     <ip>127.0.0.1</ip>
>     <port>16385</port>
>     <secret>xxxx</secret>
>   </connect>
> </service>
> 

Thanks, that helps.  The only problem remains: after JIT establishes connection
to ejabberd (it produces the following output
=INFO REPORT==== 10-Feb-2004::12:10:24 ===
I(<0.239.0>:ejabberd_listener:64): (#Port<0.286>) Accepted connection {{127,0,
0,1},4204} -> {{127,0,0,1},8888}  ),

beam and jabberd processes eat 100% CPU.  top(1) shows the following:
48441 mitya     64   0 12960K  8632K RUN      1:49 67.20% 67.19% beam
48439 mitya      2   0  5404K  3044K poll     0:48 27.64% 27.64% jabberd

I use FreeBSD-STABLE, ejabberd and JIT from CVS.

If I use jabberd from jabber.org instead of ejabberd, all works without any 
problems.

Any help would be greatly appreciated.


Gmane