fbot |
Posted: Sun Apr 27, 2008 10:18 pm Post subject: [RU_JABBER@LJ] в свой профессиональный праздник. |
|
Здраствуйте. У меня есть некоторая проблема с pyicq-t на ejabbed. В кратце, я бы описал проблему, как пустые станзы ответа на запрос ресурсов. Под катом конфиги и прочие радости отладки. Кто нибудь сталкивался? Лечили? Есть идеи чего делатЬ, кроме смены платформы?
Использую я SLES 10 SP 1 (2.6.16-54), на нём стоит python 2.4, twisted 8.0.1 видимо (скачал с сайта сырцы, собрал, поставил), pyicqt 0.8b. Конфиги сервера и транспорта: #> cat ejabber.cfg {loglevel, 4}. {hosts, ["domain.ru"]}. {listen, [ {5222, ejabberd_c2s, [ {certfile, "/opt/ejabberd-2.0.0/conf/server.pem"}, starttls, {access, c2s}, {shaper, c2s_shaper}, {max_stanza_size, 65536} ]}, {5269, ejabberd_s2s_in, [ {shaper, s2s_shaper}, {max_stanza_size, 131072} ]}, {5347, ejabberd_service, [ {access, all}, {shaper_rule, fast}, {hosts, ["icq.domain.ru"], [{password, "secret"}]} ]}, {5280, ejabberd_http, [ http_bind, http_poll, web_admin ]} ]}. {auth_method, ldap}. {ldap_servers, ["localhost"]}. {ldap_uids, [{"uid", "%u"}]}. {ldap_base, "o=domain"}. {ldap_rootdn, ""}. {ldap_password, ""}. {shaper, normal, {maxrate, 1000}}. {shaper, fast, {maxrate, 50000}}. {acl, admin, {user, "admin", "domain.ru"}}. {acl, admin, {user, "oxpa", "domain.ru"}}. {acl, local, {user_regexp, ""}}. {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, register, [{deny, all}]}. {access, pubsub_createnode, [{allow, all}]}. {language, "ru"}. {modules, [ {mod_adhoc, []}, {mod_announce, [{access, announce}]}, % requires mod_adhoc {mod_caps, []}, {mod_configure,[]}, % requires mod_adhoc {mod_disco, []}, {mod_http_bind,[]}, {mod_irc, []}, {mod_last, []}, {mod_muc, [ {host, "conference.@HOST@"}, {access, muc}, {access_create, muc}, {access_persistent, muc}, {access_admin, muc_admin}, {min_message_interval, 0.2}, {min_presence_interval, 3} ]}, {mod_offline, [{user_max_messages, 500}]}, {mod_privacy, []}, {mod_private, []}, {mod_pubsub, [ % requires mod_caps {access_createnode, pubsub_createnode}, {plugins, ["default", "pep"]} ]}, {mod_roster, []}, {mod_shared_roster,[]}, {mod_time, []}, {mod_vcard_ldap, [{ldap_vcard_map, [{"NICKNAME", "%u", []}, {"GIVEN", "%s", ["givenName"]}, {"MIDDLE", "%s", ["initials"]}, {"FAMILY", "%s", ["sn"]}, {"FN", "%s", ["uid"]}, {"EMAIL", "%s", ["mail"]}, {"ORGNAME", "%s", ["company"]}, {"ORGUNIT", "%s", ["department"]}, {"CTRY", "%s", ["c"]}, {"LOCALITY", "%s", ["l"]}, {"STREET", "%s", ["streetAddress"]}, {"REGION", "%s", ["st"]}, {"PCODE", "%s", ["postalCode"]}, {"TITLE", "%s", ["title"]}, {"URL", "%s", ["wWWHomePage"]}, {"DESC", "%s", ["description"]}, {"TEL", "%s", ["telephoneNumber"]}]}, {ldap_search_fields, [{"User", "%u"}, {"Name", "givenName"}, {"Family Name", "sn"}, {"Email", "mail"}, {"Description", "description"}, {"Phone", "telephoneNumber"}]}, {ldap_search_reported, [{"Full Name", "FN"}, {"Nickname", "NICKNAME"}, {"Email", "EMAIL"}]} ]}, {mod_version, []} ]}. ########################################################################## <pyicqt> <jid>icq.internet.infromsviaz.ru</jid> <spooldir>./spool</spooldir> <pid>PyICQt.pid</pid> <mainServer>domain.ru</mainServer> <mainServerJID>domain.ru</mainServerJID> <website>http://domain.ru:5280/</website> <port>5347</port> <secret>secret</secret> <lang>en</lang> <encoding>utf8</encoding> <icqServer>login.icq.com</icqServer> <icqPort>5190</icqPort> <sessionGreeting>enter message here</sessionGreeting> <registerMessage>You have successfully registered with PyICQt</registerMessage> <admins> <jid>adminforjabber@domain.ru</jid> <jid>oxpa@domain.ru</jid> </admins> <reactor>epoll</reactor> <xdbDriver>xmlfiles</xdbDriver> </pyicqt> ################################################################## Диалог клиента с сервером из ткаббера при попытке получить список ресурсов: OUT(1,oxpa@domain.ru/tkabber): <iq id='21' to='icq.domain.ru' type='get' xml:lang='ru-RU'> <query xmlns='http://jabber.org/protocol/disco#info'/> </iq> OUT(1,oxpa@domain.ru/tkabber): <iq id='22' to='icq.domain.ru' type='get' xml:lang='ru-RU'> <query xmlns='http://jabber.org/protocol/disco#items'/> </iq> IN(1,oxpa@domain.ru/tkabber): <iq from='icq.domain.ru' to='oxpa@domain.ru/tkabber' type='result' id='21'> <query xmlns='http://jabber.org/protocol/disco#info'/> </iq> IN(1,oxpa@domain.ru/tkabber): <iq from='icq.domain.ru' to='oxpa@domain.ru/tkabber' type='result' id='22'> <query xmlns='http://jabber.org/protocol/disco#items'/> </iq> Для сравнения - корректно работющий IRC OUT(1,oxpa@domain.ru/tkabber): <iq id='23' to='irc.domain.ru' type='get' xml:lang='ru-RU'> <query xmlns='http://jabber.org/protocol/disco#info'/> </iq> OUT(1,oxpa@domain.ru/tkabber): <iq id='24' to='irc.domain.ru' type='get' xml:lang='ru-RU'> <query xmlns='http://jabber.org/protocol/disco#items'/> </iq> IN(1,oxpa@domain.ru/tkabber): <iq from='irc.domain.ru' to='oxpa@domain.ru/tkabber' id='23' type='result'> <query xmlns='http://jabber.org/protocol/disco#info'> <identity category='conference' type='irc' name='IRC Транспорт'/> <feature var='http://jabber.org/protocol/muc'/> <feature var='jabber:iq:register'/> <feature var='vcard-temp'/> </query> </iq> IN(1,oxpa@domain.ru/tkabber): <iq from='irc.domain.ru' to='oxpa@domain.ru/tkabber' id='24' type='result'> <query xmlns='http://jabber.org/protocol/disco#items'/> </iq> _____________________________
Текст исходной публикации: http://community.livejournal.com/ru_jabber/115752.html Данный текст извлечен агрегатором из RSS. Внимание: Чтобы узнать, кто автор публикации, а также просмотреть изображения (если таковые имеются), пройдите по ссылке. Сделанные по месту комментарии в оригинальную публикацию не транслируются! |
|