Yealink Forums

Full Version: HTTP Provisioning passing phone parameters in the URL (MAC, model, etc.)
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Dear friends

Is it possible to define a configuration URL that passes some internal parameters as variables? I mean, something like...


My intention is to have only one configuration file (phone.php) that will dinamically change specific parameters for the phone specified by the mac and model variable. This is much more easy than having to create one file for each phone. This is how we do it know with Cisco SMB phones, and it¡s really confortable.

In fact, with this behaviour you could also mantain the actual way just defining an static URL...


Is there anyway to do this (or something similar) know? Any plans to develop this? In fact, it's similar to what you do in the Action URLs... Maybe this is the potential of HTTP provisioning against TFTP, being able to dinamically change file content.

Hi arcanos,

I think you can use XML Browser feature.
XML Browser_V72
If you're using PHP the information is easy enough to find without requiring that the phone pass it as separate URL variables. Take a look at the User Agent string that the phone sends when it makes it's request to your provisioning script, all the goodies are there. With some relatively simple session caching you can also map model file requests to MAC file requests, giving you a simple way to know the model of each phone when it pulls for the mac file... if that was something you needed.
I've already solved it using rewrite module in apache, so this url...


... is automatically rewrited as...


... and done!

Anyway, the user agent option sounds good. Maybe take into account that would be neccesary to add the .cfg extension to apache as a php file.

But I keep thinking that the posibility to set it directly with a variable in the url of the common file would be better (at least more open). Smile

Regards and thank you all!
Thanks to your advice.
Reference URL's