[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,683
Joined: Dec 2012
Reputation: 25
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,683
Joined: Dec 2012
Reputation: 25
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
Smile W73P dect phone not allowing to auto-provision as different extension Andi_Dee 2 1,184 02-05-2024 12:49 PM
Last Post: bekean
  How to disable Voicemail from .cfg in auto provisioning file? boniakowski 2 1,316 09-19-2023 12:03 AM
Last Post: boniakowski
  account.X provisioning vieri 7 4,729 02-10-2023 07:02 PM
Last Post: vieri
  T46U Not Contacting Provisioning Server 88fingerslukee 0 2,104 09-06-2022 11:43 PM
Last Post: 88fingerslukee
  Need help auto provisioning a phone with Nextiva service. LittleDogTech 3 4,786 08-30-2022 06:28 PM
Last Post: complex1
Question "Trusted Certificates" and auto provisioning jobst 3 5,990 06-15-2022 11:00 AM
Last Post: dbonnell
  T46G RingCentral Provisioning jszima 0 3,606 03-07-2022 10:24 AM
Last Post: jszima
  Setting of lang.gui via remote provisioning cloudaware 1 4,356 10-26-2021 07:11 PM
Last Post: cloudaware
  zero touch provisioning & firewall gareth20202 2 7,068 10-09-2021 04:55 PM
Last Post: Phil2021
  Step by Step for Auto Provisioning nguyenp 2 9,665 08-06-2021 04:27 PM
Last Post: Phil2021

Forum Jump:


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

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