[SOLVED] ejabberd mod_vcard_ldap: Display more then one phone number

I’ll show in this post how you can display more then one phone number in vcard, as you can see in Image 01:

vcard
Image 01: jabber client vcard window

This is how you can display more then one phone number from Active Directory in ejabberd vcard, if you are using mod_vcard_ldap.

  Configurar o SELinux para permitir o PHP conectar em banco de dados remoto

Add this line to your ejabberd.yml configuration file, under ldap_vcard_map:

"TEL": {"%s | %s": ["telephoneNumber","mobile"]}

As you can see in Image 02:

  Instalar PHP-FPM 7 no Ubuntu 16.10

In images 03 and 04 you can see where the phone information came from:

active_directory_telephoneNumber

Image 03: Active Directory General tab
active_directory_mobile

Image 04: Active Directory Telephones tab

I’ve published this in response to: https://www.ejabberd.im/node/24694