[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
HTTP Provisioning passing phone parameters in the URL (MAC, model, etc.)
Author Message
arcanos Offline
Junior Member
**

Posts: 5
Joined: Mar 2014
Reputation: 0
Post: #1
HTTP Provisioning passing phone parameters in the URL (MAC, model, etc.)
Dear friends

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

Code:
http://192.168.1.50/provisioning/yealink/phone.php?mac=$mac&type=$model

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...

Code:
http://192.168.1.50/provisioning/$mac.cfg

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.

Regards
(This post was last modified: 03-06-2014 09:19 PM by arcanos.)
03-06-2014 09:11 PM
Find all posts by this user    like0    dislike0 Quote this message in a reply
Yealink Support Offline
Administrator
*******

Posts: 2,684
Joined: Dec 2012
Reputation: 24
Post: #2
RE: HTTP Provisioning passing phone parameters in the URL (MAC, model, etc.)
Hi arcanos,

I think you can use XML Browser feature.
XML Browser_V72
03-10-2014 02:09 PM
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: #3
RE: HTTP Provisioning passing phone parameters in the URL (MAC, model, etc.)
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.
03-13-2014 11:07 PM
Find all posts by this user    like0    dislike0 Quote this message in a reply
arcanos Offline
Junior Member
**

Posts: 5
Joined: Mar 2014
Reputation: 0
Post: #4
RE: HTTP Provisioning passing phone parameters in the URL (MAC, model, etc.)
I've already solved it using rewrite module in apache, so this url...

http://X.X.X.X/provisioning/010101010101.cfg

... is automatically rewrited as...

http://X.X.X.X/provisioning/file.php?mac=010101010101

... 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!
03-14-2014 12:11 AM
Find all posts by this user    like0    dislike0 Quote this message in a reply
Yealink Support Offline
Administrator
*******

Posts: 2,684
Joined: Dec 2012
Reputation: 24
Post: #5
RE: HTTP Provisioning passing phone parameters in the URL (MAC, model, etc.)
Thanks to your advice.
03-14-2014 07:46 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
Question "Trusted Certificates" and auto provisioning jobst 2 398 05-06-2022 08:35 PM
Last Post: jobst
  T46G RingCentral Provisioning jszima 0 491 03-07-2022 10:24 AM
Last Post: jszima
  Setting of lang.gui via remote provisioning cloudaware 1 1,813 10-26-2021 07:11 PM
Last Post: cloudaware
  zero touch provisioning & firewall gareth20202 2 2,698 10-09-2021 04:55 PM
Last Post: Phil2021
  Step by Step for Auto Provisioning nguyenp 2 5,633 08-06-2021 04:27 PM
Last Post: Phil2021
  disable provisioning on T26P yeaphild 0 3,028 02-25-2021 07:25 PM
Last Post: yeaphild
  Marking Weekly Upgrade Interval - breaks phone ShaneTotalCare 0 2,087 10-16-2020 04:02 PM
Last Post: ShaneTotalCare
  Provisioning only works on startup Snapdragons 3 5,932 09-29-2020 12:49 AM
Last Post: Jay_Yealink
  One CFG file for one phone xbow 1 3,475 08-21-2020 05:00 AM
Last Post: xbow
  Provisioning of W60B Speeddial secure42tganick 3 5,600 07-30-2020 10:27 AM
Last Post: complex1

Forum Jump:


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

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