Yealink Forums

Full Version: Local Phonebook autoprovision
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello,

I am having trouble getting the phone to accept local phonebook xml file. Is there any way to provision with .cfg? or is it possible that because my provisioin file is .cfg, but the Directory provision is xml which is why the phone will not accept it?

Phone- T41S

<?xml version="1.0" encoding="utf-8"?>
<root_group>
<group display_name="All Contacts" ring="" />
<group display_name="Blacklist" ring="" />
</root_group>
<root_contact>
<contact display_name="Test1" office_number="2510" mobile_number="2511" other_number="3610" line="1" ring="" group_id_name="All Contacts" default_photo="" auto_divert="" />
<contact display_name="Test2" office_number="3510" mobile_number="3511" other_number="3620" line="2" ring="" group_id_name="Blacklist" default_photo="" auto_divert="" />
<!--
default_photo="" Only T46G、T48G、T29G、T46S、T48S、T54S、T52S supports!
-->
</root_contact>
(02-10-2019 01:01 AM)Aber Wrote: [ -> ]Hello,

I am having trouble getting the phone to accept local phonebook xml file. Is there any way to provision with .cfg? or is it possible that because my provisioin file is .cfg, but the Directory provision is xml which is why the phone will not accept it?

Phone- T41S

<?xml version="1.0" encoding="utf-8"?>
<root_group>
<group display_name="All Contacts" ring="" />
<group display_name="Blacklist" ring="" />
</root_group>
<root_contact>
<contact display_name="Test1" office_number="2510" mobile_number="2511" other_number="3610" line="1" ring="" group_id_name="All Contacts" default_photo="" auto_divert="" />
<contact display_name="Test2" office_number="3510" mobile_number="3511" other_number="3620" line="2" ring="" group_id_name="Blacklist" default_photo="" auto_divert="" />
<!--
default_photo="" Only T46G、T48G、T29G、T46S、T48S、T54S、T52S supports!
-->
</root_contact>

Hi,

I think the best way to create a local phonebook is:

1. Login the phone, go to Directory>Local Directory and add only 1 contact to the phonebook
2. Export phonebook as XML-file
3. Edit XML-file with Notepad(++) and add the other contacts exactly like the first contact you add
4. Save file
5. Import XML-file as local phonebook.

Do not add any comment lines like <!-- blah, blah -->
hello,

I did exactly that, but with no luck. I am also not seeing and directory provision requests from the phone. Is there something I need to enable to provision directory?
(02-10-2019 11:57 AM)Aber Wrote: [ -> ]hello,

I did exactly that, but with no luck. I am also not seeing and directory provision requests from the phone. Is there something I need to enable to provision directory?

Hi,

It is intended that the XML file locally get imported into the phone, not by auto-provisioning.
Please go to Directory>Local Directory, select (Browse...) filename and click Import XML button.

Please let me know if this will work.
[/quote]

Hi,

It is intended that the XML file locally get imported into the phone, not by auto-provisioning.
Please go to Directory>Local Directory, select (Browse...) filename and click Import XML button.

Please let me know if this will work.
[/quote]

That I know works. is there any way to do this through auto provision? Or my only option is to use remote phonebook.

Thank you
(02-10-2019 06:08 PM)Aber Wrote: [ -> ]
Quote:Hi,

It is intended that the XML file locally get imported into the phone, not by auto-provisioning.
Please go to Directory>Local Directory, select (Browse...) filename and click Import XML button.

Please let me know if this will work.

That I know works. is there any way to do this through auto provision? Or my only option is to use remote phonebook.

Thank you

Hi,

To Import Local Directory File please use this provisioning parameter:

local_contact.data.url = http://<provisioning_server>/contact.xml

Note: Please make sure “static.auto_provision.local_contact.backup.enable" is set to 0 (Disabled)

Hope this will help.
(02-10-2019 06:53 PM)complex1 Wrote: [ -> ]
(02-10-2019 06:08 PM)Aber Wrote: [ -> ]
Quote:Hi,

It is intended that the XML file locally get imported into the phone, not by auto-provisioning.
Please go to Directory>Local Directory, select (Browse...) filename and click Import XML button.

Please let me know if this will work.

That I know works. is there any way to do this through auto provision? Or my only option is to use remote phonebook.

Thank you

Hi,

To Import Local Directory File please use this provisioning parameter:

local_contact.data.url = http://<provisioning_server>/contact.xml

Note: Please make sure “static.auto_provision.local_contact.backup.enable" is set to 0 (Disabled)

Hope this will help.

Thank you!!
Reference URL's