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

JIT не поднимается



Привет.

Извините если не в тему. Прошу помочь.

Собрал версию jit 1.1.7, в ejabberd.conf добавил в listen

{5555, ejabberd_service, [{ip, {127, 0, 0, 1}}, [{access, all}, {hosts, ["icq.neryungri.ru", "sms.icq.neryungri.ru"], [{password, "mysecret"}]}]}

Подправил jabber-icq.xml

<jabber>

  <log id='elogger'>
    <host/>
    <logtype/>
    <format>%d: [%t] (%h): %s</format>
    <file>/var/log/ejabberd/icqerror</file>
  </log>

  <log id='rlogger'>
    <host/>
    <logtype>record</logtype>
    <format>%d %h %s</format>
    <file>/var/log/ejabberd/icqrecord</file>
  </log>

  <xdb id="xdb">
    <host/>
    <load>
      <xdb_file>/usr/local/ejabberd/jit/xdb_file.so</xdb_file>
    </load>
    <xdb_file xmlns="jabber:config:xdb_file">
      <spool><jabberd:cmdline flag='s'>/usr/local/ejabberd/jit</jabberd:cmdline></spool>
    </xdb_file>
  </xdb>

  <!--
     localhost is your jabber host.
     Replace "localhost" by the full host name of your server
     and have all host names here resolveable via DNS if you
     want the transport to be available to the public.
  -->
  <service id="icq.neryungri.ru">

    <!-- to enable sms. Replace localhost with the same name as above -->
    <host>sms.icq.neryungri.ru</host>

    <!-- JIT configuration -->
    <icqtrans xmlns="jabber:config:icqtrans">
      <sms>
        <host>sms.icq.neryungri.ru</host>
        <show>away</show>
        <status></status>
        <name>SMS over Jabber ICQ Transport</name>
      </sms>

      <instructions>Please enter your UIN and password</instructions>

      <search>Search users in ICQ</search>

      <vCard>
        <FN>JIT</FN>
        <DESC>Jabber ICQ Transport</DESC>
      </vCard>

      <!-- Hashtable for users -->
      <prime>3907</prime>

      <!-- Send messages from icq as chat to jabber clients -->
      <chat/>

      <!-- Enable this for ICQ web presence
      <web/> -->

      <!-- If you don't want jabber:x:data forms
           in reg and search uncomment this tag.
           Not recomended -->
      <no_xdata/>

      <own_roster/>

      <no_jabber_roster/>

      <!-- File with stats -->
      <user_count_file>/var/log/ejabberd/session_count.log</user_count_file>

      <!-- Interval beetween checking sessions: ping, messages, acks -->
      <session_check>5</session_check>

      <!-- Reconnect retries. -->
      <reconnects>5</reconnects>

      <!-- Time in sec when session can be inactive, 0  - disabled -->
      <session_timeout>18000</session_timeout>

      <!-- Charset -->
      <charset>windows-1251</charset>

      <!-- You may want to replace login.icq.com by the corresponding
           IPs to speed up JIT but keep in mind the IPs may change -->
      <server>
         <host port="5190">login.icq.com</host>
      </server>

    </icqtrans>

    <!-- JIT module -->
    <load>
      <icqtrans>/usr/local/ejabberd/jit/jit.so</icqtrans>
    </load>

  </service>

  <!--
     The settings here have to match the setting you made
     in your main Jabber server's configuration file.
     Replace localhost with your main jabber server host name
  -->
  <service id="icqlinker">
    <uplink/>
    <connect>
      <ip>127.0.0.1</ip>
      <port>5555</port>
      <secret>mysecret</secret>
    </connect>
  </service>

</jabber>

$ pwd
/usr/local/ejabberd/jit
$ ls -l
-rwxr-xr-x  1 ejabberd ejabberd 1126745 Июн 10 01:01 jabberd-jit*
-rw-r--r--  1 ejabberd ejabberd    3042 Июн 10 20:10 jabber-icq.xml
-rwxr-xr-x  1 ejabberd ejabberd 5099463 Июн 10 01:02 jit.so*
-rwxr-xr-x  1 ejabberd ejabberd  102461 Июн 10 01:02 xdb_file.so*

Все запускаю, psi не коннектится, как только делаю строчку сервиса jit в ejabberd.conf закоментированной, перезапускаю
демон, psi коннектится, не могу понять где ошибся.
Подскажите, спасибо.


--
С уважением, Никита.



Reply to: