Skip to content

Customize the displayed names #4

Description

@zerrac

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions