Provisioning - how to host files referenced by cfg file?

Status
Not open for further replies.

iota

New Member
May 29, 2020
24
9
3
USA
For the benefit of others... it seems if you place your Talking.xml in /var/www/fusionpbx/app/yealink/resources/... then you can use https://username:password@server.com/app/yealink/resources/Talking.xml in your phones config.

However if you use FusionPBX's provisioning Device Profiles / custom_softkey_talking.url = https://... this value doesn't work for some reason (FusionPBX doesn't put the value into the resulting cfg file for your phone). I have a support ticket in on this (there are several cfg entries not being forwarded by FusionPBX right now, not just this one).
 

mat1010

Member
Jun 8, 2019
56
14
8
Germany
For the benefit of others... it seems if you place your Talking.xml in /var/www/fusionpbx/app/yealink/resources/... then you can use https://username:password@server.com/app/yealink/resources/Talking.xml in your phones config.

However if you use FusionPBX's provisioning Device Profiles / custom_softkey_talking.url = https://... this value doesn't work for some reason (FusionPBX doesn't put the value into the resulting cfg file for your phone). I have a support ticket in on this (there are several cfg entries not being forwarded by FusionPBX right now, not just this one).

Hi, the following should work:
Add your Talking.xml into /var/www/fusionpbx/resources/templates/provision/yeaklink/<YOUR_PHONE_TYPE>/

Now request the URL as following https://username:password@server.com/app/provision/?mac=<YOUR_MAC_ADDRESS>&file=Talking.xml

This should route your request through the templating engine (smarty) and fill your variables. With your other method fusionpbx will only deliver the plain file since it does not know how to template it.
 
Last edited:
  • Like
Reactions: iota

Adrian Fretwell

Well-Known Member
Aug 13, 2017
1,500
414
83
You just simply use the programmable keys category for this. See the screenshot below, here I have made the Hold button (programmable key 12) dial music on hold (*9664):

Screenshot from 2020-08-29 17-08-13.png

Result:

Screenshot from 2020-08-29 17-11-39.png
 

iota

New Member
May 29, 2020
24
9
3
USA
You just simply use the programmable keys category for this. See the screenshot below, here I have made the Hold button (programmable key 12) dial music on hold (*9664):

Thank you for taking the time, but this isn't at all related to my issue.
 

iota

New Member
May 29, 2020
24
9
3
USA
Hi, the following should work:
Add your Talking.xml into /var/www/fusionpbx/resources/templates/provision/yeaklink/<YOUR_PHONE_TYPE>/

Now request the URL as following https://username:password@server.com/app/provision/?mac=<YOUR_MAC_ADDRESS>&file=Talking.xml

This should route your request through the templating engine (smarty) and fill your variables. With your other method fusionpbx will only deliver the plain file since it does not know how to template it.

Thank you for this! It appears you can put anything under /var/www/fusionpbx/app/yealink/resources/ and give it chown www-data:www-data, and it can be retrievable with http://yourdomain.com/app/yealink/resources/file.xml

Now my big issue is that fusionpbx won't forward some of the device profile entries into the resulting generated MAC.cfg file. Working with their support on this one.
 
Status
Not open for further replies.