[YMCS/YDMP Free Trial Program]Yealink would like to offer Free Trial Program of Yealink device management service for our current eligible customers. You can see the details below.
https://www.yealink.com/ydmp-freetrial-2020


Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Detailed boot process and ways to add local configuration?
Author Message
DanH Offline
Junior Member
**

Posts: 10
Joined: Nov 2013
Reputation: 0
Post: #1
Detailed boot process and ways to add local configuration?
(I post here since I was not able to post this text below in "Auto Provisioning". I appologize.

However, ultimatively it's a question about configuration.. :-)

Is there somewhere a detailed description of the boot process of yealink phones available?

I mean really detailed. I find lots of information on the boot process, but distributed in several places in several detail levels. However, I did not find anywhere a description that includes for example a (boot) flow diagram or the complete boot process from applying power, until the phone is ready to be used.

On each step through the boot process, there are several ways to give a configuration to a phone.
Also the boot process is different between a phone that has no configuration (i.e. there was a factory reset), and a phone that has a configuration.

Why do I ask these questions?
1 - I would like to understand de boot sequence in detail
2 - I want to find out when and how I can introduce additional configuration to a phone


Example:
I have phones (T46S) that are autoprovisioned by an asterisk server located in the cloud. Unfortunately, I cannot change the .cfg files that server is providing to the phones as I do not have direct access to those files on the asterisk server.
The phones need some additional configuration that the server config files are not delivering. Since I cannot add an include file on the server, which would be the most elegant solution, I need to find another way.
The question here is where and in what boot phase can I add those configurations to the phone, without access to the .cfg files on the server?
I could introduce a tftp server with DHCP, but I would have to be careful not to break the provisioning relationship between the phone and the asterisk server.

So, can I tell the phone during the boot process something like:
"Here is your IP address and there is a tftp server.. but only load one small .cfg file on the tftp server and then continue with getting the rest of your configuration from your autoprovisioning server in the cloud..

Having better knowledge of the boot process in detail might help me understand.

Thanks for your help
Dan
(This post was last modified: 10-12-2019 08:56 AM by DanH.)
10-12-2019 08:50 AM
Find all posts by this user    like0    dislike0 Quote this message in a reply
jolouis Offline
Moderator
*****

Posts: 339
Joined: Oct 2013
Reputation: 6
Post: #2
RE: Detailed boot process and ways to add local configuration?
(10-12-2019 08:50 AM)DanH Wrote:  Unfortunately, I cannot change the .cfg files that server is providing to the phones as I do not have direct access to those files on the asterisk server.

This is your underlying problem. From a normal perspective you are basically asking how you can do a man-in-the-middle attack on your own devices.

Yes you could potentially ask the phone to pull in configurations from more than 1 server (i.e. local server + remote server), but to do that you need authority to change the current provisioning setup. Since you don't have access to change the .cfg file on the server, you don't have that access.

The real question is why don't you have access to change/add the values that you need? If it is somebody else's server who refuses to grant you access, then why not simply request that they add the additional configuration options for you?

On the other hand, if the .cfg files are being generated by the server and you do not have/know how to modify them without causing bigger issues, that's a different story.

In either case though I would strongly suggest trying to solve the problem properly rather than hoping to find a loop hole in the way phones provision themselves and pull configurations. (I'm not saying you couldn't find SOME way of making it work the way you are asking, but you are much better off putting time/effort into solving the primary underlying problem rather than hacking unreliable efforts around it...)
10-16-2019 02:57 PM
Find all posts by this user    like0    dislike0 Quote this message in a reply
justingoldberg Offline
Junior Member
**

Posts: 29
Joined: May 2019
Reputation: 0
Post: #3
RE: Detailed boot process and ways to add local configuration?
(10-12-2019 08:50 AM)DanH Wrote:  (I post here since I was not able to post this text below in "Auto Provisioning". I appologize.

However, ultimatively it's a question about configuration.. :-)

Is there somewhere a detailed description of the boot process of yealink phones available?

I mean really detailed. I find lots of information on the boot process, but distributed in several places in several detail levels. However, I did not find anywhere a description that includes for example a (boot) flow diagram or the complete boot process from applying power, until the phone is ready to be used.

On each step through the boot process, there are several ways to give a configuration to a phone.
Also the boot process is different between a phone that has no configuration (i.e. there was a factory reset), and a phone that has a configuration.

Why do I ask these questions?
1 - I would like to understand de boot sequence in detail
2 - I want to find out when and how I can introduce additional configuration to a phone


Example:
I have phones (T46S) that are autoprovisioned by an asterisk server located in the cloud. Unfortunately, I cannot change the .cfg files that server is providing to the phones as I do not have direct access to those files on the asterisk server.
The phones need some additional configuration that the server config files are not delivering. Since I cannot add an include file on the server, which would be the most elegant solution, I need to find another way.
The question here is where and in what boot phase can I add those configurations to the phone, without access to the .cfg files on the server?
I could introduce a tftp server with DHCP, but I would have to be careful not to break the provisioning relationship between the phone and the asterisk server.

So, can I tell the phone during the boot process something like:
"Here is your IP address and there is a tftp server.. but only load one small .cfg file on the tftp server and then continue with getting the rest of your configuration from your autoprovisioning server in the cloud..

Having better knowledge of the boot process in detail might help me understand.

Thanks for your help
Dan

The config below will preserve any locally defined settings: (non-static/user settings, set from the web gui or set from the physical phone itself\) config in MAC-local.cfg. Since your phones, but not you, have a way to upload the MAC-local.cfg files, this is your best bet.

The admin guide is the place to find it, and there's another guide called deployment guide or something similar.

PHP Code:
static.auto_provision.custom.sync=1
static.auto_provision.custom.protect=


Changes made locally are then uploaded to the boot server as mac-local.cfg (if you export them from the phone web interface, these options are called non-static.

Page 91 of the admin guide has the custom.* provisioning flowchart. There are other boot/provisioning flowcharts, but they are all over the place, so you'll have to search for 'flowchart'.
(This post was last modified: 10-16-2019 04:33 PM by justingoldberg.)
10-16-2019 04:24 PM
Find all posts by this user    like0    dislike0 Quote this message in a reply
Post Reply 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  Proxy configuration Laurentt 2 2,139 01-07-2020 12:25 PM
Last Post: Laurentt
  Common Configuration Filenames Rus 3 4,506 06-27-2019 12:52 AM
Last Post: Evan_Yealink
  LDAP Directory Configuration Issue it_prevent 1 1,827 05-15-2019 05:55 AM
Last Post: Mike_Yealink
  BIN vs CFG configuration export/import Mauro 2 2,540 01-31-2019 09:15 AM
Last Post: Mauro
  Button with led configuration Wesley666 1 2,500 03-19-2018 09:54 AM
Last Post: Lucia_Yealink
  Export CFG configuration file Issue Fraukas2 0 3,540 11-08-2017 06:19 PM
Last Post: Fraukas2
  Configuration Generator Tool telepathinc 16 30,058 09-15-2017 02:50 PM
Last Post: Sardar
  Password parameter in configuration file asenthil 1 4,124 10-21-2016 08:29 AM
Last Post: Quinlan_Yealink
  Hold/Bridge Configuration ESGIG 8 13,343 07-07-2016 05:38 PM
Last Post: jmoore
  Failback configuration using web interface RNJ 1 4,869 01-26-2016 04:29 AM
Last Post: Klaus_Yealink

Forum Jump:


User(s) browsing this thread: 1 Guest(s)

Contact Us   Yealink   Return to Top   Return to Content   Lite (Archive) Mode   RSS Syndication