<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Linux Forum &mdash; pyicq-t + ejabberd]]></title>
	<link rel="self" href="https://linuxforum.ru/extern.php?action=feed&amp;tid=1211&amp;type=atom" />
	<updated>2010-03-14T15:04:12Z</updated>
	<generator>PunBB</generator>
	<id>https://linuxforum.ru/viewtopic.php?id=1211</id>
		<entry>
			<title type="html"><![CDATA[Re: pyicq-t + ejabberd]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=17637#p17637" />
			<content type="html"><![CDATA[<p>а, это я забыл поправить - старый конфиг. Вообще, совпадают они.</p><p>Так что, н иу кого нет идей?</p>]]></content>
			<author>
				<name><![CDATA[Devoter]]></name>
				<uri>https://linuxforum.ru/profile.php?id=1056</uri>
			</author>
			<updated>2010-03-14T15:04:12Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=17637#p17637</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: pyicq-t + ejabberd]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=17385#p17385" />
			<content type="html"><![CDATA[<div class="quotebox"><blockquote><p>[{password, &quot;pass2&quot;}]</p></blockquote></div><div class="quotebox"><blockquote><p>&lt;secret&gt;icqpassw&lt;/secret&gt;</p></blockquote></div><p>А разве они не должны совпадать?</p>]]></content>
			<author>
				<name><![CDATA[HTaeD]]></name>
				<uri>https://linuxforum.ru/profile.php?id=1158</uri>
			</author>
			<updated>2010-03-09T22:41:00Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=17385#p17385</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[pyicq-t + ejabberd]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=17310#p17310" />
			<content type="html"><![CDATA[<p>Все мои изыскания с openfire закончились тем, что я признал его слишком прожорливым для моего слабенького сервера. Короче, в один прекрасный день (то есть ночь) был произведен перевод на ejabberd. Не долго поковырялся, поставил нужные библиотеки... Короче, ejabberd + mysql вполне адекватно завелись.<br />После этого возник вопрос об использовании icq-транспорта. Ну, выбор не большой - pyicq-t (второго даже название не помню).<br />Установка прошла, вроде как, без ошибок. Сконфигурировал на работу с mysql. Создал базу и пользователя, залил дамп, установил mysql-python. Но pyicq-t не стартует, последние строчки лога:<br /></p><div class="codebox"><pre><code>[2010-03-09 20:40:39] Starting factory &lt;twisted.words.protocols.jabber.xmlstream.XmlStreamFactory object at 0xb74ba2cc&gt;
[2010-03-09 20:40:39] INFO ::  :: PyTransport :: componentConnected :: {&#039;xmlstream&#039;: &lt;twisted.words.protocols.jabber.xmlstream.XmlStream instance at 0x9efc1cc&gt;} :: 
[2010-03-09 20:40:40] Received SIGTERM, shutting down.
[2010-03-09 20:40:40] INFO ::  :: PyTransport :: removeMe :: {} :: 
[2010-03-09 20:40:43] INFO ::  :: PyTransport :: componentDisconnected :: {} :: 
[2010-03-09 20:40:43] &lt;twisted.internet.tcp.Connector instance at 0x9efc12c&gt; will retry in 2 seconds
[2010-03-09 20:40:43] Stopping factory &lt;twisted.words.protocols.jabber.xmlstream.XmlStreamFactory object at 0xb74ba2cc&gt;
[2010-03-09 20:40:43] Main loop terminated.</code></pre></div><p>конфиг ejabberd:<br /></p><div class="codebox"><pre><code>override_global.
override_local.
override_acls.
{loglevel, 4}.
{hosts, [&quot;retechorg.ru&quot;]}.
{listen,
 [
  {5222, ejabberd_c2s, [
            {certfile, &quot;/etc/jabber/ssl.pem&quot;}, starttls,
            {access, c2s},
            {shaper, c2s_shaper},
            {max_stanza_size, 65536}
               ]},
  {5269, ejabberd_s2s_in, [
               {shaper, s2s_shaper},
               {max_stanza_size, 131072}
              ]},
  {8888, ejabberd_service, [
                  {access, all}, 
                  {shaper_rule, fast},
                  {ip, {127,0,0,1}},
                  {hosts, [&quot;icq.retechorg.ru&quot;, &quot;sms.retechorg.ru&quot;],
                   [{password, &quot;pass2&quot;}]
                  }
                 ]},

  {5280, ejabberd_http, [
             http_poll, 
             web_admin
            ]}
 ]}.
{s2s_use_starttls, true}.
{s2s_certfile, &quot;/etc/jabber/ssl.pem&quot;}.
{auth_method, odbc}.
{odbc_server, {mysql, &quot;127.0.0.1&quot;, &quot;ejabberd&quot;, &quot;ejabberd&quot;, &quot;ejabberd&quot;}}.
{shaper, normal, {maxrate, 1000}}.
{shaper, fast, {maxrate, 50000}}.
{acl, admin, {user, &quot;nay&quot;, &quot;retechorg.ru&quot;}}.
{acl, local, {user_regexp, &quot;&quot;}}.
{access, max_user_sessions, [{10, all}]}.
{access, local, [{allow, local}]}.
{access, c2s, [{deny, blocked},
           {allow, all}]}.
{access, c2s_shaper, [{none, admin},
              {normal, all}]}.
{access, s2s_shaper, [{fast, all}]}.
{access, announce, [{allow, admin}]}.
{access, configure, [{allow, admin}]}.
{access, muc_admin, [{allow, admin}]}.
{access, muc, [{allow, all}]}.
{access, pubsub_createnode, [{allow, all}]}.
{access, register, [{allow, all}]}.
{language, &quot;ru&quot;}.
{modules,
 [
  {mod_adhoc,    []},
  {mod_announce, [{access, announce}]}, % recommends mod_adhoc
  {mod_caps,     []}, 
  {mod_configure,[]}, % requires mod_adhoc
  {mod_disco,    []},
  %%{mod_echo,   [{host, &quot;echo.localhost&quot;}]},
  {mod_irc,      []},
  {mod_last_odbc,     []},
  {mod_muc,      [
          %%{host, &quot;conference.@HOST@&quot;},
          {access, muc},
          {access_create, muc},
          {access_persistent, muc},
          {access_admin, muc_admin}
         ]},
  %%{mod_muc_log,[]},
  {mod_offline_odbc,  []},
  {mod_privacy,  []},
  {mod_private,  []},
  %%{mod_proxy65,[]},
  {mod_pubsub,   [ % requires mod_caps
          {access_createnode, pubsub_createnode},
          {plugins, [&quot;default&quot;, &quot;pep&quot;]}
         ]},
  {mod_register, [
          {welcome_message, {&quot;Welcome!&quot;, 
                     &quot;Hi\nWelcome The ReTech.Org Jabber server.&quot;}},
          {registration_watchers, [&quot;nay@retechorg.ru&quot;]},

          {access, register}
         ]},
  {mod_roster_odbc,   []},
  %%{mod_service_log,[]},
  {mod_shared_roster,[]},
  {mod_stats,    []},
  {mod_time,     []},
  {mod_vcard_odbc,    [{search, true},{matches, infinity}, {allow_return_all, true}]},
  {mod_version,  []}
 ]}.</code></pre></div><p>конфиг pyicq-t<br /></p><div class="codebox"><pre><code>&lt;pyicqt&gt;
    &lt;!-- The JabberID of the transport. --&gt;
    &lt;jid&gt;icq.retechorg.ru&lt;/jid&gt;

    &lt;!-- The component JID of the transport. Unless you&#039;re doing clustering, leave this alone --&gt;
    &lt;!-- &lt;compjid&gt;icq1&lt;/compjid&gt; --&gt;

    &lt;!-- The location of the spool directory.. if relative, relative to --&gt;
    &lt;!-- this directory.  Do not include the jid of the transport. --&gt;
    &lt;spooldir&gt;/var/spool/jabber&lt;/spooldir&gt;

    &lt;!-- The location of the PID file.. if relative, relative to this dir. --&gt;
    &lt;!-- Comment out if you do not want a pid file --&gt;
    &lt;pid&gt;/var/run/jabber/pyicq-t.pid&lt;/pid&gt;

    &lt;!-- The IP address of the main Jabberd server --&gt;
    &lt;mainServer&gt;127.0.0.1&lt;/mainServer&gt;

    &lt;!-- The JID of the main Jabber server --&gt;
    &lt;mainServerJID&gt;retechorg.ru&lt;/mainServerJID&gt;

    &lt;!-- The website of the Jabber service --&gt;
    &lt;website&gt;http://retechorg.ru&lt;/website&gt;
    
    &lt;!-- The website of the transport service --&gt;
    &lt;!-- &lt;transportWebsite&gt;&lt;/transportWebsite&gt; --&gt;
    
    &lt;!-- The support room on your server --&gt;
    &lt;!-- &lt;supportRoom&gt;&lt;/supportRoom&gt; --&gt;
    
    &lt;!-- The JID of a service admin or helpdesk --&gt;
    &lt;!-- &lt;supportJid&gt;&lt;/supportJid&gt; --&gt;

    &lt;!-- The TCP port to connect to the Jabber server on --&gt;
    &lt;!-- (this is the default for Jabberd2) --&gt;
    &lt;port&gt;8888&lt;/port&gt;

    &lt;!-- The TCP port that the web admin interface will answer on --&gt;
    &lt;!-- (uncomment to enable) --&gt;
    &lt;!-- &lt;webport&gt;12345&lt;/webport&gt; --&gt;

    &lt;!-- The authentication token to use when connecting to the Jabber server --&gt;
    &lt;secret&gt;icqpassw&lt;/secret&gt;

    &lt;!-- The default language to use (for error/status messages) --&gt;
    &lt;lang&gt;ru&lt;/lang&gt;

    &lt;!-- Default one-byte message encoding to use --&gt;
    &lt;encoding&gt;cp1251&lt;/encoding&gt;

    &lt;!-- The hostname of the ICQ server you wish to connect to --&gt;
    &lt;icqServer&gt;login.icq.com&lt;/icqServer&gt;

    &lt;!-- The port of the ICQ server you wish to connect to --&gt;
    &lt;icqPort&gt;5190&lt;/icqPort&gt;

    &lt;!-- Enable it if you want md5 authentication --&gt;
    &lt;usemd5auth/&gt;

    &lt;!-- The name of Socks Proxy if connecting thru a proxy --&gt;
    &lt;!-- &lt;socksProxyServer&gt;im-proxy2&lt;/socksProxyServer&gt; --&gt;

    &lt;!-- The Socks Proxy port to use when connecting thru a proxy --&gt;
    &lt;!-- &lt;socksProxyPort&gt;1080&lt;/socksProxyPort&gt; --&gt;

    &lt;!-- Send greeting on login (enter text to be sent to users here) --&gt;
    &lt;!-- &lt;sessionGreeting&gt;enter message here&lt;/sessionGreeting&gt; --&gt;
    
    &lt;!-- Send message to user on transport stop/restart --&gt;
    &lt;enableShutdownMessage/&gt;
    
    &lt;!-- Custom shutdown message --&gt;
    &lt;!-- &lt;customShutdownMessage&gt;&lt;/customShutdownMessage&gt; --&gt;

    &lt;!-- Send message on successful registration --&gt;
    &lt;!-- &lt;registerMessage&gt;You have successfully registered with PyICQt&lt;/registerMessage&gt; --&gt;

    &lt;!-- Allow users of ICQ gateway to chat with AIM users --&gt;
    &lt;!-- (uncomment to enable) --&gt;
    &lt;!-- &lt;crossChat/&gt; --&gt;

    &lt;!-- Disable registration with the transport --&gt;
    &lt;!-- (uncomment to disable) --&gt;
    &lt;!-- &lt;disableRegister/&gt; --&gt;

    &lt;!-- Enable automatic invitation to reconnect on restart --&gt;
    &lt;!-- (uncomment to enable) --&gt;
    &lt;!-- &lt;enableAutoInvite/&gt; --&gt;

    &lt;!-- Disable xhtml support (messages with fonts and colors) --&gt;
    &lt;!-- (uncomment to disable) --&gt;
    &lt;!-- &lt;disableXHTML/&gt; --&gt;

    &lt;!-- Disable mail notifications --&gt;
    &lt;!-- (uncomment to disable) --&gt;
    &lt;!-- &lt;disableMailNotifications/&gt; --&gt;

    &lt;!-- Disable use of default avatar if none is specified --&gt;
    &lt;!-- (uncomment to disable) --&gt;
    &lt;!-- &lt;disableDefaultAvatar/&gt; --&gt;

    &lt;!-- Disable use of iq-based avatars (JEP-0008) --&gt;
    &lt;!-- (uncomment to disable) --&gt;
    &lt;!-- &lt;disableIQAvatars/&gt; --&gt;

    &lt;!-- Disable use of vcard-based avatars (JEP-0153) --&gt;
    &lt;!-- (uncomment to disable) --&gt;
    &lt;!-- &lt;disableVCardAvatars/&gt; --&gt;

    &lt;!-- Disable use of PEP-based avatars (JEP-0084) --&gt;
    &lt;!-- (uncomment to disable) --&gt;
    &lt;!-- NOT IMPLEMENTED YET --&gt;
    &lt;!-- &lt;disablePEPAvatars/&gt; --&gt;
    
    &lt;!-- Support for x-statuses --&gt;
    &lt;!-- &lt;xstatusessupport/&gt; --&gt;
    
    &lt;!-- Try detect Unicode:
        0 - never
        1 - in offline messages
        2 - and in nicknames
        Attention: this solution can be slowly on high-load servers
    --&gt;
    &lt;detectunicode&gt;1&lt;/detectunicode&gt;

    &lt;!-- You can choose which users you wish to have as administrators. These users can perform some tasks with Ad-Hoc commands that others cannot --&gt;
    &lt;admins&gt;
    &lt;jid&gt;nay@retechorg.ru&lt;/jid&gt;
    &lt;!--&lt;jid&gt;admin@host.com&lt;/jid&gt;--&gt;
    &lt;/admins&gt;

    &lt;!-- You can select which event loop PyICQt will use. It&#039;s probably safe to leave this as the default --&gt;

    &lt;!-- Use epoll for high-load Linux servers running kernel 2.6 or above --&gt;
    &lt;reactor&gt;epoll&lt;/reactor&gt;
    &lt;!-- For MySQL --&gt;
    &lt;xdbDriver&gt;mysql&lt;/xdbDriver&gt;
    &lt;xdbDriver_mysql&gt;
    &lt;username&gt;pyicqt&lt;/username&gt;
    &lt;password&gt;pyicqt&lt;/password&gt;
    &lt;database&gt;pyicqt&lt;/database&gt;
    &lt;server&gt;localhost&lt;/server&gt;
    &lt;format&gt;encrypted&lt;/format&gt; &lt;!-- Enable encryption of passwords --&gt;
    &lt;/xdbDriver_mysql&gt;
    &lt;!-- Default Ad-Hoc settings --&gt;
    &lt;adhocDefaults&gt;
      &lt;user&gt; &lt;!-- ... for new users - they can change these settings later --&gt;
        &lt;xstatus_receiving_mode&gt;0&lt;/xstatus_receiving_mode&gt; &lt;!-- 0 - disable x-status receiving, 1 - receive as ICQ 5.1, 2 - as ICQ 6, 3 - combined --&gt;
        &lt;xstatus_sending_mode&gt;0&lt;/xstatus_sending_mode&gt; &lt;!-- 0 - disable x-status sending, 1 - send as ICQ 5.1, 2 - as ICQ 6, 3 - combined --&gt;
        &lt;xstatus_saving_enabled&gt;1&lt;/xstatus_saving_enabled&gt; &lt;!-- 1 - restore latest x-status after login, 0 - do not restore --&gt;
        &lt;xstatus_option_smooth&gt;1&lt;/xstatus_option_smooth&gt; &lt;!-- 1 - allow partial interconnect between ICQ 5.1 and ICQ 6 x-statuses --&gt;
        &lt;xstatus_display_icon_as_PEP&gt;1&lt;/xstatus_display_icon_as_PEP&gt; &lt;!-- 1 - display x-status icon as User Mood/Activity/Tune --&gt;
        &lt;xstatus_display_text_as_PEP&gt;1&lt;/xstatus_display_text_as_PEP&gt; &lt;!-- 1 - Try interpret x-status text as User Mood/Activity/Tune --&gt;
        &lt;xstatus_icon_for_transport&gt;0&lt;/xstatus_icon_for_transport&gt; &lt;!-- 1 - show self x-status icon as User Mood/Activity/Tune for transport (works for Gajim when transport displayed in roster) --&gt;
        &lt;away_messages_receiving&gt;1&lt;/away_messages_receiving&gt; &lt;!-- 1 - ask contacts for Away messages --&gt;
        &lt;away_messages_sending&gt;1&lt;/away_messages_sending&gt; &lt;!-- 1 - allow own Away Message sending --&gt;
        &lt;clist_show_phantombuddies&gt;0&lt;/clist_show_phantombuddies&gt; &lt;!-- 1 - show old deleted contacts without authorization in roster --&gt;
        &lt;clist_deny_all_auth_requests&gt;0&lt;/clist_deny_all_auth_requests&gt; &lt;!-- 1 - auto send &#039;Deny&#039; reply on any authorization request --&gt;
        &lt;utf8_messages_sendmode&gt;2&lt;/utf8_messages_sendmode&gt; &lt;!-- 0 - never send messages in Unicode, 1 - only when contact sends messages in Unicode, 2 - send always --&gt;
        &lt;offline_messages_sendenc&gt;2&lt;/offline_messages_sendenc&gt; &lt;!-- 0 - send offline messages in Unicode, 1 - in default message encoding (see above), 2 - auto detect --&gt;
        &lt;msgconfirm_sendmode&gt;2&lt;/msgconfirm_sendmode&gt; &lt;!-- 0 - never send message confirmations, 1 - send for Unicode messages, 2 - for all messages --&gt;
        &lt;msgconfirm_recvmode&gt;1&lt;/msgconfirm_recvmode&gt; &lt;!-- 1 - receive message confirmations --&gt;
        &lt;user_mood_receiving&gt;1&lt;/user_mood_receiving&gt; &lt;!-- 1 - transport should send User Mood/Activity/Tune events to connected user --&gt;
        &lt;user_activity_receiving&gt;1&lt;/user_activity_receiving&gt; &lt;!--  (requirted for x-status as icon displaying) --&gt;
        &lt;user_mood_receiving&gt;1&lt;/user_mood_receiving&gt; &lt;!-- set options if most of users has client with support of these PEP events --&gt;
        &lt;autoanswer_enable&gt;0&lt;/autoanswer_enable&gt; &lt;!-- enable auto answer as reply on any incoming message --&gt;
        &lt;autoanswer_hide_dialog&gt;0&lt;/autoanswer_hide_dialog&gt; &lt;!-- hide incoming messages when autoanswer enabled --&gt;
      &lt;/user&gt;
    &lt;/adhocDefaults&gt;
&lt;/pyicqt&gt;</code></pre></div><p>Некоторые из закомментированных строчки удалены в целях сокращения текста.<br />Возможно, кто-то уже сталкивался с подобной проблемой?</p>]]></content>
			<author>
				<name><![CDATA[Devoter]]></name>
				<uri>https://linuxforum.ru/profile.php?id=1056</uri>
			</author>
			<updated>2010-03-09T20:49:40Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=17310#p17310</id>
		</entry>
</feed>
