Yealink Forums
Variable in common.cfg - Printable Version

+- Yealink Forums (http://forum.yealink.com/forum)
+-- Forum: IP Phone Series (/forumdisplay.php?fid=4)
+--- Forum: Auto Provisioning (/forumdisplay.php?fid=14)
+--- Thread: Variable in common.cfg (/showthread.php?tid=11343)



Variable in common.cfg - yeacpt - 11-06-2015 11:24 PM

Hi,

Can we use variables on the file common.cfg.

I need to call a web page from a programable key and I would like to pass the USER (phone number) to a XML browser application.

Whithout that, I will have to connect on the web page of all the phones to add their USER in my URL.

programablekey.1.type = 27
programablekey.X.label = MyApp
programablekey.X.value = http://10.10.10.10/app/index.php?phone=$user
(i.e. programablekey.X.value = http://10.10.10.10/app/index.php?phone=3120)

Regards.


RE: Variable in common.cfg - Yealink_Michael - 11-07-2015 04:31 AM

hi

Thanks for your information

i am sorry that the common.cfg can not support variables for the moment

but if you want to use web page to call, you can refer to the action URI feature download from below link :

http://support.yealink.com/faq/faqInfo?id=173

TKS & BR

Michael


RE: Variable in common.cfg - Frank Drews - 11-23-2015 08:05 PM

Hi Yeacpt,

how do you provision your phones? Maybe you can just use the MAC-specific provisioning file and use the variables provided by your pbx. E.g. with 3cx this should work fine, you only have to edit the template ones.

best regards Frank

(11-06-2015 11:24 PM)yeacpt Wrote:  Hi,

Can we use variables on the file common.cfg.

I need to call a web page from a programable key and I would like to pass the USER (phone number) to a XML browser application.

Whithout that, I will have to connect on the web page of all the phones to add their USER in my URL.

programablekey.1.type = 27
programablekey.X.label = MyApp
programablekey.X.value = http://10.10.10.10/app/index.php?phone=$user
(i.e. programablekey.X.value = http://10.10.10.10/app/index.php?phone=3120)

Regards.



RE: Variable in common.cfg - yeacpt - 11-27-2015 11:25 PM

Hi,

It is with Asterisk, and the common file is edited by hand.

It is not the mac file.

Regards.


RE: Variable in common.cfg - mkeuter - 11-28-2015 03:44 AM

@ yeacpt

Since you use Asterisk, maybe you like to take a look at AstLinux:
http://www.astlinux.org

It includes a provisioning framework where you can easily do what you want with templates:
http://doc.astlinux.org/userdoc:tt_ip_phoneprov_howto