Home
ejabberd
ejabberd@conference.jabber.ru
Среда, 16 марта 2011< ^ >
badlop установил(а) тему: www.ejabberd.im english room | ejabberd 2.1.6 and Erlang/OTP R14B01 released
Конфигурация комнаты
Участники комнаты

GMT+3
[00:30:52] jkusznir вышел(а) из комнаты
[01:42:08] deryni вошёл(а) в комнату
[03:39:25] badlop вышел(а) из комнаты
[11:03:07] Jonas вошёл(а) в комнату
[11:06:13] lemenkov вышел(а) из комнаты
[12:00:21] lemenkov вошёл(а) в комнату
[13:53:43] badlop вошёл(а) в комнату
[13:56:21] Sérgio вошёл(а) в комнату
[14:09:32] scippio вошёл(а) в комнату
[14:34:59] noone123 вошёл(а) в комнату
[14:36:48] <noone123> hi, someome here who can help me with mod_vcard_ldap (jpegPhoto) ?
[14:58:48] scippio вышел(а) из комнаты
[16:04:35] noone123 вышел(а) из комнаты: Replaced by new connection
[16:04:59] noone123 вошёл(а) в комнату
[16:05:58] noone123 вышел(а) из комнаты
[16:07:29] noone123 вошёл(а) в комнату
[16:56:13] deryni вышел(а) из комнаты
[17:20:50] <alexeyq> badloop: thanx!
[17:25:56] <alexeyq> Hi all, I need professional consultation about XMPP and TCP. I am implementing chat feature for some android app. I use http-binding on server and Strophe.js on client. I encountered very strange problem. Best explained by voice. I know there are Russians, does anybody have 10 minutes so we can skype?
[17:41:01] deryni вошёл(а) в комнату
[18:02:50] <noone123> if i recieve vcard photo from ldap i only get:
<PHOTO>
<BINVAL>
/9j/4AAQSkZJ...
why is there no  need for
<TYPE>image/jpeg</TYPE> ?
[18:03:53] <badlop> does the XEP require the server to provide TYPE?
[18:05:09] <noone123> XEP said it should be :D any i can't recieve the photo in m< client
[18:05:34] <badlop> do you have exact URL?
[18:05:43] <badlop> of the xep, i mean
[18:06:07] <noone123> http://xmpp.org/extensions/xep-0153.html
[18:07:06] <noone123> its in 4.5 yml syntax
[18:07:09] <badlop> aha
> The <PHOTO/> element SHOULD contain a <TYPE/> child
[18:07:39] <badlop> i imagine that ejabberd doesn't know the type at all, from those options:
> "image/gif", "image/jpeg", or "image/png"
[18:08:04] <badlop> if ejabberd doesn't know the type, it simply doesn't provide any
[18:08:33] <noone123> can i simply place a string line image/jpeg in vcard output ?
[18:09:40] <badlop> are you using mod_vcard? in that case, the client is responsible for setting that TYPE
[18:10:10] <noone123> must be placed in mod_vcard_ldap.erl  in line 352
[18:10:24] <noone123> no.. only mod_ldap_vcard
[18:11:00] <badlop> yes, you can hardcode that value in the code
[18:11:18] <noone123> can you give me a hint :D im not good in erlang :D
[18:12:11] <badlop> i think add one line:
--- a/src/mod_vcard_ldap.erl
+++ b/src/mod_vcard_ldap.erl
@@ -349,6 +349,7 @@ ldap_attribute_to_vcard(vCard, {"email", Value}) ->
ldap_attribute_to_vcard(vCard, {"photo", Value}) ->
     {xmlelement,"PHOTO",[],[
+                           {xmlelement,"TYPE",[],[{xmlcdata, "image/jpeg"}]},
                            {xmlelement,"BINVAL",[],[{xmlcdata, jlib:encode_base64(Value)}]}]};
ldap_attribute_to_vcard(vCardN, {"family", Value}) ->
[18:16:10] <noone123> ok i'll try this and report if its working :D thank you
[18:18:35] scippio вошёл(а) в комнату
[18:18:47] <noone123> yep :D its working :D thank you :D
[18:19:38] badlop установил(а) тему: www.ejabberd.im english room | March releases: exmpp 0.9.6 and ejabberd 3.0.0-alpha-2
[19:10:52] badlop установил(а) тему: www.ejabberd.im english room | March releases: exmpp 0.9.6, ejabberd 3.0.0-alpha-2, and Erlang/OTP R14B02
[19:28:16] lemenkov вышел(а) из комнаты
[19:33:10] Jonas вышел(а) из комнаты
[19:52:18] <noone123> can anybody give me a hint how to remove the first 11charakters of an ldap value with erlang? Openldap needs jpegphoto:: in fromt of my base64 encoded image... so i must remove it manually with erlang
[19:59:21] dk_brest вышел(а) из комнаты: Replaced by new connection
[20:12:25] BcTpe4HbIu вошёл(а) в комнату
[20:14:11] scippio вышел(а) из комнаты
[20:18:16] <badlop> the value as seen by erlang is a string "ABCD...", or a binary <<"ABCD...">> ?
[20:20:17] <noone123> ok thx :D i'll try the strip method
[20:28:26] BcTpe4HbIu вышел(а) из комнаты
[20:28:36] alexeyq вышел(а) из комнаты
[20:28:54] BcTpe4HbIu вошёл(а) в комнату
[20:47:58] noone123 вышел(а) из комнаты
[21:14:28] BcTpe4HbIu вышел(а) из комнаты
[22:04:43] Sérgio вышел(а) из комнаты
[22:10:23] scippio вошёл(а) в комнату
[23:32:28] Darkman вошёл(а) в комнату
[23:32:39] <Darkman> hi
[23:34:04] <Darkman> i've a small question about multiple connects with the same jid: when having the same priority (with multiple resources, of course), and one of the resources change to offline, the user will show up as offline at all - even if there are some valid other online resources - is that a bug?
[23:43:28] <deryni> They show up that way where?
[23:45:23] <Darkman> on other rosters
[23:46:48] <deryni> In what client(s)?
[23:46:54] <Darkman> psi for example
[23:47:56] <deryni> Does it list the other resources anywhere? This sounds like a client issue.
[23:48:11] <Darkman> mh, will check
[23:50:57] <Darkman> nope, the user shows as offline (last avail will be shown), on the ejabberd i see the resource - so he is still there
[23:51:29] <Darkman> its all local users in this case, so no other jabber in between
[23:51:43] <deryni> Does changing status on one of the available resources "fix" the display issue in psi?
[23:51:54] <Darkman> jap
[23:59:01] <Darkman> tested another thing: when i reconnect to the server, the "offline" user will be shown as online again
Powered by ejabberd Powered by Erlang Valid XHTML 1.0 Transitional Valid CSS!