Hello ! First, thanks you for this plugin that solve the lack of carddav support in every softphone i tried :)
I wanted to display the company name of my contacts during a call.
I made my dirty little modification in my corner and it works:
329c340,351
< $foundCNAM = $vCard->fn[0]; //this is the name
---
> if (count($vCard->org)>0) {
> $services = ' (' . $vCard->org[0]['Name'] ;
>
> if (! empty($vCard->org[0]['Unit1'])) {
> $services .= ' - '.$vCard->org[0]['Unit1'];
> }
>
> $services .= ')';
>
> }
>
> $foundCNAM = $vCard->fn[0] . $services; //this is the name
I think it may be useful to be able to customize the displayed name from freepbx admin with some templating for instance.
Hello ! First, thanks you for this plugin that solve the lack of carddav support in every softphone i tried :)
I wanted to display the company name of my contacts during a call.
I made my dirty little modification in my corner and it works:
I think it may be useful to be able to customize the displayed name from freepbx admin with some templating for instance.