Yealink Forums

Full Version: Variable in common.cfg
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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.
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
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.
Hi,

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

It is not the mac file.

Regards.
@ 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
Reference URL's