ejabberd - Comments for "Linux: ejabberd-1.0.0 + jit-1.1.7 не работает поиск ICQ это нормально?" https://www.ejabberd.im/node/644 en It works with JIT 1.1.7 https://www.ejabberd.im/node/644#comment-2554 <p>It works with JIT 1.1.7 ( <noindex><a href="http://www.jabber.ru/files/jit/jit-1.1.7.tar.gz" title="http://www.jabber.ru/files/jit/jit-1.1.7.tar.gz" rel="nofollow" >http://www.jabber.ru/files/jit/jit-1.1.7.tar.gz</a></noindex> )</p> <p>I use this patch (with included announce of real jids and this search).<br /> <noindex><a href="http://www.jabber.ttn.ru/files/server/jit/ttn20061120-jit-1.1.7.diff" title="http://www.jabber.ttn.ru/files/server/jit/ttn20061120-jit-1.1.7.diff" rel="nofollow" >http://www.jabber.ttn.ru/files/server/jit/ttn20061120-jit-1.1.7.diff</a></noindex></p> Sun, 19 Nov 2006 22:40:41 +0000 MMM comment 2554 at https://www.ejabberd.im таже проблема, https://www.ejabberd.im/node/644#comment-1608 <p>таже проблема, пробовал с эти патчем. не помогло, как искал долго, так и ишет, пробовал другой патч тоже не помогло.</p> <p>может еще что то где то надо подправить?</p> Wed, 26 Apr 2006 19:08:42 +0000 sjvov comment 1608 at https://www.ejabberd.im I confirm that JIT 1.1.6 https://www.ejabberd.im/node/644#comment-1550 <p>I confirm that JIT 1.1.6 with this patch can search in ICQ. Package for Debian sarge is in the usual place <noindex><a href="http://sgolovan.nes.ru/debian" / rel="nofollow" >http://sgolovan.nes.ru/debian/</a></noindex>.</p> Fri, 07 Apr 2006 20:33:31 +0000 teo comment 1550 at https://www.ejabberd.im Patch для реанимации поиска в JIT https://www.ejabberd.im/node/644#comment-1549 <pre>--- SNAC-SRV.cpp.orig Thu Jan 9 19:41:56 2003 +++ SNAC-SRV.cpp Thu Apr 6 18:39:41 2006 @@ -216,32 +216,70 @@ b &lt;&lt; (unsigned short)2000 /* type 9808 */ &lt;&lt; (unsigned short)m_requestID /* low word of the request ID */ - &lt;&lt; (unsigned short)0x0533; /* subtype wp-full-request */ - b.PackUint16TranslatedNull(m_firstname); - b.PackUint16TranslatedNull(m_lastname); - b.PackUint16TranslatedNull(m_nickname); - b.PackUint16TranslatedNull(m_email); - b &lt;&lt; (unsigned short)m_min_age; // minimum age - b &lt;&lt; (unsigned short)m_max_age; // maximum age - b &lt;&lt; (unsigned char)m_sex; // sex - b &lt;&lt; (unsigned char)m_language; // language - b.PackUint16TranslatedNull(m_city); // city - b.PackUint16TranslatedNull(m_state); // state - b &lt;&lt; (unsigned short)m_country; // country - b.PackUint16TranslatedNull(m_company_name); // company name - b.PackUint16TranslatedNull(m_department); // department - b.PackUint16TranslatedNull(m_position); // position - b &lt;&lt; (unsigned char)0x00; // occupation - b &lt;&lt; (unsigned short)0x0000; // past info category - b.PackUint16TranslatedNull(""); // description - b &lt;&lt; (unsigned short)0x0000; // interests category - b.PackUint16TranslatedNull(""); // description - b &lt;&lt; (unsigned short)0x0000; // affiliation/organization - b.PackUint16TranslatedNull(""); // description - b &lt;&lt; (unsigned short)0x0000; // homepage category - b.PackUint16TranslatedNull(""); // description - b &lt;&lt; (unsigned char)(m_only_online ? 0x01 : 0x00); + &lt;&lt; (unsigned short)0x055f; /* subtype wp-full-request */ + Buffer::marker m3; + if(m_firstname.size()){ + b &lt;&lt; (unsigned short)0x0140; + m3 = b.getAutoSizeShortMarker(); + b.PackUint16TranslatedNull(m_firstname); + b.setAutoSizeMarker(m3); + }; + if(m_lastname.size()){ + b &lt;&lt; (unsigned short)0x014A; + m3 = b.getAutoSizeShortMarker(); + b.PackUint16TranslatedNull(m_lastname); + b.setAutoSizeMarker(m3); + }; + if(m_nickname.size()){ + b &lt;&lt; (unsigned short)0x0154; + m3 = b.getAutoSizeShortMarker(); + b.PackUint16TranslatedNull(m_nickname); + b.setAutoSizeMarker(m3); + }; + if(m_email.size()){ + b &lt;&lt; (unsigned short)0x015e; + m3 = b.getAutoSizeShortMarker(); + b.PackUint16TranslatedNull(m_email); + b.setAutoSizeMarker(m3); + }; + if(m_min_age &lt; m_max_age){ + b &lt;&lt; (unsigned short)0x0168 + &lt;&lt; (unsigned short)0x0004 + &lt;&lt; (unsigned short)m_min_age // minimum age + &lt;&lt; (unsigned short)m_max_age; // maximum age + }; + if(m_sex){ + b &lt;&lt; (unsigned short)0x017c + &lt;&lt; (unsigned short)0x0001 + &lt;&lt; (unsigned char)m_sex; // sex + }; +// b &lt;&lt; (unsigned char)m_language; // language + if(m_city.size()){ + b &lt;&lt; (unsigned short)0x0190; + m3 = b.getAutoSizeShortMarker(); + b.PackUint16TranslatedNull(m_city); + b.setAutoSizeMarker(m3); + }; +// b.PackUint16TranslatedNull(m_state); // state +// b &lt;&lt; (unsigned short)m_country; // country +// b.PackUint16TranslatedNull(m_company_name); // company name +// b.PackUint16TranslatedNull(m_department); // department +// b.PackUint16TranslatedNull(m_position); // position +// b &lt;&lt; (unsigned char)0x00; // occupation +// b &lt;&lt; (unsigned short)0x0000; // past info category +// b.PackUint16TranslatedNull(""); // description +// b &lt;&lt; (unsigned short)0x0000; // interests category +// b.PackUint16TranslatedNull(""); // description +// b &lt;&lt; (unsigned short)0x0000; // affiliation/organization +// b.PackUint16TranslatedNull(""); // description +// b &lt;&lt; (unsigned short)0x0000; // homepage category +// b.PackUint16TranslatedNull(""); // description + if(m_only_online){ + b &lt;&lt; (unsigned short)0x0230 + &lt;&lt; (unsigned short)0x0001 + &lt;&lt; (unsigned char)0x01; // only-online flag + }; b.setAutoSizeMarker(m1); b.setAutoSizeMarker(m2); } </pre><p>--<br /> I1.</p> Fri, 07 Apr 2006 13:06:54 +0000 divider comment 1549 at https://www.ejabberd.im