Elastix Yealink Provisioning Add BLF Configuration

Edit /var/www/html/modules/endpoint_configurator/libs/vendors/Yealink.cfg.php

Enable BLF Button
Add the following function at the end of the file
Change the password in 2nd line of the code according to your configuration.
—————————————————————————————————————————————-
function addBLF($dev_id){
$mysql_conn = mysql_connect(‘localhost’, ‘root’, ‘password’);
mysql_select_db(‘asterisk’, $mysql_conn );
$result= mysql_query(“select extension from users where extension!=$dev_id order by extension asc”, $mysql_conn);
$ki=1;
$content=””;
while($row = mysql_fetch_row($result))
{
$pcnt = “
[ memory”.$ki.” ]
path = /yealink/config/vpPhone/vpPhone.ini
Line = 0
type = blf
Value = $row[0]
Callpickup =
DKtype = 16
PickupValue = **
“;
$ki++;
$content=$content.$pcnt;
}
return $content;
}
———————————————————————————————————————————————————————-
Add the below line before return $content.
[ memory16 ]
path = /yealink/config/vpPhone/vpPhone.ini
DKtype = 15
Line = 1
Value =
type =
“;
$content=$content.addBLF($id_device);
 return $content;
Advertisements

, , , , , , , ,

  1. Leave a comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: