Polycom Paging : New Firmware : Elastix

Change the value of  $alertinfo = ‘Alert-Info: Ring Answer’ to  $alertinfo = ‘Alert-Info: Auto Answer’
File : /var/www/html/admin/modules/paging/functions.inc.php

Login to Elastix, Navigate to PBX >> Paging and Intercom >> Add new extension for Paging.

Advertisements

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;

FreePBX FOP1 to FOP2

How to change FOP1 to FOP2 on Elastix

1.  Download and install FOP2

cd /usr/src
wget http://www.fop2.com/file.php?file=20
tar -zxvf fop2-2.22-centos5-i386.tgz 
cd fop2
make && make install

2. Add fop2 user to Asterisk Manager.

Edit /etc/asterisk/manager.conf

[fop2]
secret = psfop2
deny=0.0.0.0/0.0.0.0
permit=127.0.0.1/255.255.255.0
read = system,call,log,verbose,command,agent,user,config,command,dtmf,reporting,cdr,dialplan,originate
write = system,call,log,verbose,command,agent,user,config,command,dtmf,reporting,cdr,dialplan,originate

3. Edit /usr/localfop2/fop2.cfg and change the following lines.

manager_user=fop2
manager_secret=psfop2

4.Edit /etc/amportal.conf and edit the uncomment the line starting FOPRUN and change it as following.

FOPRUN=false

5. Edit /var/www/html/panel/op_server.cfg and change listen_port.

listen_port=4444

6. Edit /etc/httpd/conf/httpd.conf and add the following line under  Aliases:

alias /panel /var/www/html/fop2

7. Add FreePBX index file and change the fop2 ownership asterisk.

cp /var/www/html/fop2/index.html /var/www/html/fop2/index_amp.php
chown -R asterisk.asterisk /var/www/html/fop2

8. Restart httpd,amportal and fop2 services.

/etc/init.d/httpd restart
chkconfig fop2 on
service fop2 start
/usr/sbin/amportal restart