Yealink Forums

Full Version: T46G Directory issues
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I am in the process of moving the company from an old digital PBX to an Asterisk base FreePBX system. We are currently evaluating phones. We like the Yealink phones, but are having directory issues.

I was unable to find a definitive doc on the XML directory file, so created a few entries in the phone (a T46G with 180 firmware), exported it and created a directory based upon that exported file. I placed the created directory on our internal web server, pointed the phones at it. They seem to download the file, but the information either doesn't show up at all, or sporadically does.

For awhile it seemed that if I put an entry into the phone, it would pull the full directory from the server, but even that is inconsistent.

I turned on syslog and it seems that the phone thinks that the file is the same as what it has so never redownloads etc. Which is fine, except it displays an empty directory. Even if I add or delete entries from it, the syslog showed that it downloaded it because it was different, but again, it is never displayed.

This is an example of the xml structure:
<?xml version="1.0" encoding="utf-8"?>
<root_group>
<group display_name="All Contacts" ring="" />
<group display_name="Branch 134" ring="" />
<group display_name="Company" ring="" />
<group display_name="Family" ring="" />
<group display_name="Friend" ring="" />
<group display_name="Blacklist" ring="" />
</root_group>

<root_contact>
<contact display_name="Darrin Woods" office_number="510" mobile_number="" other_number="" line="-1" ring="Auto" group_id_name="Company" default_photo="/phone/resource/default/default_contact_image.png" is_favorate="0" />
</root_contact>

I need the phones to consistently pull the file and display it.

On a side note, we are also evaluating the T32G and have not had the same issue. But don't get me started that the two phones use completely different formatted XML files for their directories.

Can anyone help me to figure out why the T46G won't consistently display the directory information it's downloading?
Hi dwoods,

1.Sorry. Our T4X have different formatted XML files.
We have a phonebook generation tool which can creats a local xml phonebook or remote phonebook for version 71(T4X and T2X).
http://www.yealink.com/Upload/T4X/GA/Yea...952205.zip

2. You also make mistakes in your xml file.
Below is the right syntax. The syntax line="0" means for account 1.
-------------------------------
<?xml version="1.0" encoding="utf-8"?>
<root_group>
<group display_name="All Contacts" ring="" />
<group display_name="Branch 134" ring="" />
<group display_name="Company" ring="" />
<group display_name="Family" ring="" />
<group display_name="Friend" ring="" />
<group display_name="Blacklist" ring="" />
</root_group>
<root_contact>
<contact display_name="Darrin Woods" office_number="510" mobile_number="" other_number="" line="0" ring="Auto" group_id_name="Company" default_photo="Defult:default_contact_image.png" />
</root_contact>
----------------------------------
Can you kindly test again?
I have made the change you suggested:

<?xml version="1.0" encoding="utf-8"?>
<root_group>
<group display_name="All Contacts" ring="" />
<group display_name="Branch 134" ring="" />
<group display_name="Company" ring="" />
<group display_name="Family" ring="" />
<group display_name="Friend" ring="" />
<group display_name="Blacklist" ring="" />
</root_group>

<root_contact>
<contact display_name="Darrin Woods" office_number="510" mobile_number="" other_number="" line="0" ring="Auto" group_id_name="Company" default_photo="/phone/resource/default/default_contact_image.png" is_favorate="0" />
<contact display_name="Aaron Forrister" office_number="517" mobile_number="" other_number="" line="0" ring="Auto" group_id_name="Company" default_photo="/phone/resource/default/default_contact_image.png" is_favorate="0" />
</root_contact>

I then reset the phone to factory defaults, put the ip address of our pbx in the auto provision and let the phone do it's thing. The phone rebooted but did not show the directory. The directory is blank.

The log files from the web server where the directory is stored show that the phone successfully downloaded the file three times:

207.114.243.226 - - [30/Dec/2013:09:20:25 -0600] "GET /directory.xml HTTP/1.1" 200 6564 "-" "Yealink SIP-T46G 28.71.0.180 00:15:65:50:55:61"
207.114.243.226 - - [30/Dec/2013:09:24:34 -0600] "GET /directory.xml HTTP/1.1" 200 6564 "-" "Yealink SIP-T46G 28.71.0.180 00:15:65:50:55:61"
207.114.243.226 - - [30/Dec/2013:09:26:17 -0600] "GET /directory.xml HTTP/1.1" 200 6564 "-" "Yealink SIP-T46G 28.71.0.180 00:15:65:50:55:61"

We have to make a final decision on phone vendor soon so I need this fixed before we place the order.
As to the phonebook generation tool....

I don't use a windows PC. I gave the file to someone that does and is also an excel expert and they were unable to get it to work, They told me that it appeared that the macro was missing. I have seen other posts from people here on the forum that the spreadsheet is incredibly particular as to the environment it runs on and what it has write access to and the user that it must run under.
(12-30-2013 11:52 PM)dwoods Wrote: [ -> ]I have made the change you suggested:

<?xml version="1.0" encoding="utf-8"?>
<root_group>
<group display_name="All Contacts" ring="" />
<group display_name="Branch 134" ring="" />
<group display_name="Company" ring="" />
<group display_name="Family" ring="" />
<group display_name="Friend" ring="" />
<group display_name="Blacklist" ring="" />
</root_group>

<root_contact>
<contact display_name="Darrin Woods" office_number="510" mobile_number="" other_number="" line="0" ring="Auto" group_id_name="Company" default_photo="/phone/resource/default/default_contact_image.png" is_favorate="0" />
<contact display_name="Aaron Forrister" office_number="517" mobile_number="" other_number="" line="0" ring="Auto" group_id_name="Company" default_photo="/phone/resource/default/default_contact_image.png" is_favorate="0" />
</root_contact>

I then reset the phone to factory defaults, put the ip address of our pbx in the auto provision and let the phone do it's thing. The phone rebooted but did not show the directory. The directory is blank.

The log files from the web server where the directory is stored show that the phone successfully downloaded the file three times:

207.114.243.226 - - [30/Dec/2013:09:20:25 -0600] "GET /directory.xml HTTP/1.1" 200 6564 "-" "Yealink SIP-T46G 28.71.0.180 00:15:65:50:55:61"
207.114.243.226 - - [30/Dec/2013:09:24:34 -0600] "GET /directory.xml HTTP/1.1" 200 6564 "-" "Yealink SIP-T46G 28.71.0.180 00:15:65:50:55:61"
207.114.243.226 - - [30/Dec/2013:09:26:17 -0600] "GET /directory.xml HTTP/1.1" 200 6564 "-" "Yealink SIP-T46G 28.71.0.180 00:15:65:50:55:61"

We have to make a final decision on phone vendor soon so I need this fixed before we place the order.
Hi

Please name this file as "contact.xml". And your xml file format is wrong though you just export it from T46G.
You need to use a new format as my below syntax.

---------------------------------------
<?xml version="1.0" encoding="utf-8"?>
<root_group>
<group display_name="All Contacts" ring="" />
<group display_name="Branch 134" ring="" />
<group display_name="Company" ring="" />
<group display_name="Family" ring="" />
<group display_name="Friend" ring="" />
<group display_name="Blacklist" ring="" />
</root_group>
<root_contact>
<contact display_name="Darrin Woods" office_number="510" mobile_number="" other_number="" line="0" ring="Auto" group_id_name="Company" default_photo="Defult:default_contact_image.png" />
</root_contact>
----------------------------------

This is no default_photo="/phone/resource/default/default_contact_image.png" is_favorate="0" /> in my syntax.
Please kindly test.
The directory file has been renamed and is being read:

207.114.243.226 - - [31/Dec/2013:09:20:33 -0600] "GET /contact.xml HTTP/1.1" 200 4268 "-" "Yealink SIP-T46G 28.71.0.180 00:15:65:50:55:61"

This is what the file looks like:


<?xml version="1.0" encoding="utf-8"?>
<root_group>
<group display_name="All Contacts" ring="" />
<group display_name="Branch 134" ring="" />
<group display_name="Company" ring="" />
<group display_name="Family" ring="" />
<group display_name="Friend" ring="" />
<group display_name="Blacklist" ring="" />
</root_group>

<root_contact>
<contact display_name="Darrin Woods" office_number="510" mobile_number="" other_number="" line="0" ring="Auto" group_id_name="Company" />
<contact display_name="Aaron Forrister" office_number="517" mobile_number="" other_number="" line="0" ring="Auto" group_id_name="Company" />
</root_contact>

There are actually a lot more entries, but I've just showing the first two as all the others are the same except different 'office_number'.

We rebooted one T46G and it loaded the directory. The other test phone had the directory. I reset it to factory defaults, but when it rebooted it had no directory. I performed a normal reboot and still no directory. I will reply as soon as I am able to try with the first phone (the one that did load the directory). I'm going to reset it to factory and see if it still loads the directory.
We have reset both units to factory defaults as well as rebooted them, and neither are displaying the directory that it is downloading.
Hi dwoods,

Please follow my below steps:
1. Edit your contact.xml.(Your xml is correct.)
2. Upload the xml to your auto-provisioning server. For example: http://10.2.91.240:8080/contact.xml
3. Then edit the y000000000028.cfg file as my below step.
------------------------------------------------------------
#!version:1.0.0.1

##File header "#!version:1.0.0.1" can not be edited or deleted, and must be placed in the first line.##

local_contact.data.url = http://10.2.91.240:8080/contact.xml
------------------------------------------------------------
4. Then upload y000000000028.cfg to your auto-provisioning server.
5. Then do a auto-provisioning through webpage.
I added the following line to the ...28.cfg file (I also deleted it from the MAC.cfg file where it was located):

local_contact.data.url = http://208.81.243.50/contact.xml

The server does not listen on port 8080 so I removed that part. The phone is downloading the file as you can see here:

207.114.243.226 - - [02/Jan/2014:07:47:18 -0600] "GET /contact.xml HTTP/1.1" 200 4358 "-" "Yealink SIP-T46G 28.71.0.197 00:15:65:50:59:33"

I performed the autoprovision from the browser by going to 'Settings' --> 'Auto Provision' and clicking 'Auto Provision Now'

I then reset the unit to factory defaults by holding the 'OK' button. After inputing the ip address of the server into 'Menu' --> 'Advanced' --> '6. Auto Provision'. The unit did pull the directory this time successfully. I am attempting to do the same with our other test T46G.
Reference URL's