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;