From c367a67a9fb210e8ec8092549ac61ea3fb341071 Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Tue, 4 Dec 2018 11:10:29 -0700 Subject: [PATCH] Update directory.xml --- .../provision/yealink/t46g/directory.xml | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/resources/templates/provision/yealink/t46g/directory.xml b/resources/templates/provision/yealink/t46g/directory.xml index a05b029e18..81f4fcec97 100644 --- a/resources/templates/provision/yealink/t46g/directory.xml +++ b/resources/templates/provision/yealink/t46g/directory.xml @@ -3,6 +3,11 @@ {if $smarty.get.contacts == "users" && $row.category == "users"} {if $row.contact_name_given != ""} + {if $row.contact_organization != ""} + {$row.contact_organization} {$row.contact_name_given} {$row.contact_name_family} + {else} + {$row.contact_name_given} {$row.contact_name_family} + {/if} {$row.contact_name_given} {$row.contact_name_family} {else} {$row.effective_caller_id_name} @@ -19,7 +24,11 @@ {elseif $smarty.get.contacts == "groups" && $row.category == "groups"} {if $row.contact_name_given != ""} - {$row.contact_name_given} {$row.contact_name_family} + {if $row.contact_organization != ""} + {$row.contact_organization} {$row.contact_name_given} {$row.contact_name_family} + {else} + {$row.contact_name_given} {$row.contact_name_family} + {/if} {else} {$row.effective_caller_id_name} {/if} @@ -48,7 +57,11 @@ {elseif $smarty.get.contacts == "all"} {if $row.contact_name_given != ""} - {$row.contact_name_given} {$row.contact_name_family} + {if $row.contact_organization != ""} + {$row.contact_organization} {$row.contact_name_given} {$row.contact_name_family} + {else} + {$row.contact_name_given} {$row.contact_name_family} + {/if} {else} {$row.effective_caller_id_name} {/if} @@ -71,4 +84,4 @@ {/if} {/foreach} - \ No newline at end of file +