[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: ejabberd + jit



Hello,

2006/1/24, Anton Anikin <htower@icc.ru>:
> Привет всем. Возник вопрос - кто-нибудь поднимал такое сочетание ? Если да, то
> буду ОЧЕНЬ признателен, если датите посмотреть на рабочие конфиги + укажите
> версии софта. Проблема, просто, в том, что я, вроде, все поднял и настроил,
> севис работает, все регистрируется и коннектится. НО: не работает
> автоматический импорт контактов (из аськи) в список. Руками добавлять -
> полный мазохизм. Буду благодарен за любую помощь...
>

А асечный список точно на сервере хранится?
ejabber 1.0.0 (самосбор) + jabber-jit из sarge.
Правка в конфигах в аттачах

--
With best wishes
Dmitry Baryshkov
--- etc/jabber/jabber-jit.xml	2003-12-17 06:27:23.000000000 +0300
+++ /etc/jabber/jabber-jit.xml	2005-12-18 14:06:11.000000000 +0300
@@ -24,15 +25,16 @@
      you use xdb_ldap, xdb_sql or other non-file XDB
      implementations, too.
      See xdb_file directory for more information.
+     -->
   <xdb id="xdb">
     <host/>
     <load>
-      <xdb_file>xdb_file/xdb_file.so</xdb_file>
+      <xdb_file>/usr/lib/jabber/xdb_file/xdb_file.so</xdb_file>
     </load>
     <xdb_file xmlns="jabber:config:xdb_file">
-      <spool><jabberd:cmdline flag='s'>./spool</jabberd:cmdline></spool>
+      <spool><jabberd:cmdline flag='s'>/var/lib/jabber/</jabberd:cmdline></spool>
     </xdb_file>
-  </xdb> -->
+  </xdb>
 
   <!--
      localhost is your jabber host.
@@ -40,15 +42,15 @@
      and have all host names here resolveable via DNS if you
      want the transport to be available to the public.
   -->
-  <service id="icq.localhost">
+  <service id="icq.jabber.school.ioffe.ru">
 
     <!-- to enable sms. Replace localhost with the same name as above -->
-    <host>sms.icq.localhost</host>
+    <host>sms.jabber.school.ioffe.ru</host>
    
     <!-- JIT configuration -->
     <icqtrans xmlns="jabber:config:icqtrans">
       <sms>
-        <host>sms.icq.localhost</host>
+        <host>sms.jabber.school.ioffe.ru</host>
   	<show>away</show>
 	<status></status>
       </sms>
@@ -82,14 +84,14 @@
            the user's roster via xdb get then (meaning the peer
            uses jabberd 2 or the peer uses a remote jabber
            server). 
-      <own_roster/>
       -->
+      <own_roster/>
 
       <!-- When present, this tag will tell JIT not to try to
            get the user's roster (which will take a bit of time
            to fail in scenarios described above).
-      <no_jabber_roster/>
       -->
+      <no_jabber_roster/>
       
       <!-- File with stats -->        
       <user_count_file>session_count.log</user_count_file>
@@ -104,7 +106,7 @@
       <session_timeout>18000</session_timeout>
 
       <!-- Charset -->
-      <charset>windows-1252</charset>
+      <charset>windows-1251</charset>
 
       <server>
          <host port="5190">login.icq.com</host>
--- /home/ftp/pub/debian-local/ejabberd/ejabberd-1.0.0/debian/ejabberd.cfg	2006-01-16 20:52:29.000000000 +0300
+++ /etc/ejabberd/ejabberd.cfg	2005-12-17 19:45:21.000000000 +0300
@@ -7,6 +7,7 @@
 % will be successfully registered on server to get admin access:
 %{acl, admin, {user, "aleksey"}}.
 %{acl, admin, {user, "ermine"}}.
+{acl, admin, {user, "lumag"}}.
 
 % Blocked users:
 %{acl, blocked, {user, "test"}}.
@@ -25,10 +26,10 @@
 {access, configure, [{allow, admin}]}.
 
 % Every username can be registered via in-band registration:
-{access, register, [{allow, all}]}.
+%{access, register, [{allow, all}]}.
 
 % None username can be registered via in-band registration:
-%{access, register, [{deny, all}]}.
+{access, register, [{deny, all}]}.
 
 % After successful registration user will get message with following subject
 % and body:
@@ -97,11 +98,11 @@
 
 % Host(s) name: (replace for your hostname(s))
 % Old {host, "localhost"}. option is equivalent to {hosts, ["localhost"]}.
-{hosts, ["localhost"]}.
+{hosts, ["jabber.school.ioffe.ru"]}.
 
 
 % Default language for server messages
-{language, "en"}.
+{language, "ru"}.
 
 % Listened ports:
 {listen,
@@ -121,33 +122,38 @@
 % External MUC jabber-muc (but internal mod_muc is better :))
 % {5554, ejabberd_service, [{ip, {127, 0, 0, 1}},
 %                           {access, all},
-%                           {host, "muc.localhost", [{password, "secret"}]}]},
+%                           {host, "muc.jabber.school.ioffe.ru", [{password, "secret"}]}]},
 
 % Jabber ICQ Transport
-% {5555, ejabberd_service, [{ip, {127, 0, 0, 1}},
+{5555, ejabberd_service, [{ip, {127, 0, 0, 1}},
+                          {access, all},
+                          {hosts, ["icq.jabber.school.ioffe.ru", "sms.jabber.school.ioffe.ru"], [{password, "secret"}]}]},
+
+% Jabber ICQ Transport
+% {5347, ejabberd_service, [{ip, {127, 0, 0, 1}},
 %                           {access, all},
-%                           {hosts, ["icq.localhost", "sms.localhost"], [{password, "secret"}]}]},
+%                           {hosts, ["icq.jabber.school.ioffe.ru"], [{password, "secret"}]}]},
 
 % AIM Transport
 % {5556, ejabberd_service, [{ip, {127, 0, 0, 1}},
 %                           {access, all},
-%                           {host, "aim.localhost", [{password, "secret"}]}]},
+%                           {host, "aim.jabber.school.ioffe.ru", [{password, "secret"}]}]},
 
 % MSN Transport
 % {5557, ejabberd_service, [{ip, {127, 0, 0, 1}},
 %                           {access, all},
-%                           {host, "msn.localhost", [{password, "secret"}]}]},
+%                           {host, "msn.jabber.school.ioffe.ru", [{password, "secret"}]}]},
 
 % Yahoo! Transport
 % {5558, ejabberd_service, [{ip, {127, 0, 0, 1}},
 %                           {access, all},
-%                           {host, "yahoo.localhost", [{password, "secret"}]}]},
+%                           {host, "yahoo.jabber.school.ioffe.ru", [{password, "secret"}]}]},
 
 % External JUD (internal is more powerful,
 % but doesn't allow to register users from other servers)
 % {5559, ejabberd_service, [{ip, {127, 0, 0, 1}},
 %                           {access, all},
-%                           {host, "jud.localhost", [{password, "secret"}]}]},
+%                           {host, "jud.jabber.school.ioffe.ru", [{password, "secret"}]}]},
 
 % HTTP service (You may choose options HTTP-polling and Web-administering)
 % When commenting out, be careful with commas
@@ -171,7 +177,7 @@
   {mod_stats,      []},
   {mod_vcard,      []},
   {mod_offline,    []},
-  {mod_echo,       []},
+%  {mod_echo,       []},
   {mod_private,    []},
   {mod_irc,        []},
 % Default options for mod_muc:

Reply to: