mod_vcard_ldap and multiple telephone types

Hi,
We are running enterprise-internal ejabberd server for all our employees.
It works great, and now i'm trying to implement possibility to acquire/view in clients (Miranda IM v0.7.0 Test Build #32) full info about all our peoples.
It does work in basic form:
{ldap_vcard_map,
[{"NICKNAME", "%u", []}, % just use user's part of JID as his nickname
{"GIVEN", "%s", ["givenName"]},
{"FAMILY", "%s", ["sn"]},
{"FN", "%s, %s", ["sn", "givenName"]}, % example: "Smith, John"
{"TEL", "%s", ["telephoneNumber"]},
{"PHOTO", "%s", ["jpegPhoto"]},
{"EMAIL", "%s", ["mail"]}]},

but i would like to show everybody's multiple phone numbers (already stored in LDAP) - telephoneNumber contains WORK-internal voice-phone numbers, but i've got also "mobile" attribute which contains cell phone numbers.
According to http://www.xmpp.org/extensions/xep-0054.html and http://www.ietf.org/rfc/rfc2426.txt
it should be possible (using combinations of: and )
but i wonder how to write config of module for such usage.
Maybe somebody got any idea ?

Greets, Tomasz Przewlucki

in russian about

in russian about miranda
http://www.ejabberd.im/node/967

Quote:

Developers miranda do not wish to support completely JEP-0055, and do search not requesting a server about that that it supports. As a result on one servers search works, on others is not present

Thanks, but my question is

Thanks, but my question is not about searching - it's about vcard fields mapping.
Miranda actually shows properly simple "TEL" mapped to telephoneNumber from LDAP, but i wonder how to configure ejabberd to map few types of telephone numbers, i've tried for example such config [without success :( ]
{"TEL/WORK", "%s", ["telephoneNumber"]},
{"TEL/CELL", "%s", ["mobile"]},

regardless of which client will be used to communicate and display vcards...

Anyone have a solution to

Anyone have a solution to this yet? I have a similar problem and wish to display multiple telephone numbers in a vcard entry stored as different attributes in LDAP?

Syndicate content