Fix returned vcard4.0 format to allow them to be parsed properly in liblinphone

This commit is contained in:
Timothée Jaussoin 2021-11-10 16:24:08 +01:00
parent d091b0dbcf
commit 1804432e7d
2 changed files with 6 additions and 3 deletions

View file

@ -234,11 +234,14 @@ KIND:individual
IMPP:sip:'.$this->getIdentifierAttribute();
if (!empty($this->attributes['display_name'])) {
$vcard . '
$vcard .= '
FN:'.$this->attributes['display_name'];
} else {
$vcard .= '
FN:'.$this->getIdentifierAttribute();
}
if ($this->types) {
if ($this->types->count() > 0) {
$vcard .= '
X-LINPHONE-ACCOUNT-TYPE:'.$this->types->implode('key', ',');
}

View file

@ -8,7 +8,7 @@
#%define _datadir %{_datarootdir}
#%define _docdir %{_datadir}/doc
%define build_number 113
%define build_number 114
%define var_dir /var/opt/belledonne-communications
%define opt_dir /opt/belledonne-communications/share/flexisip-account-manager