8 comments
-
Oscar Colka Koster, I have been tested the FOP2 solution with MyPBX U series and it worked fine, but it is a little bit complex for me to install the configure the whole system.
I follow this guide:
https://www.fop2.com/docs/installation.php
Not sure if S-Series would work or not. I think it would be better and easier if Yeastar can embedded some kind of similar panel into the S-Series.
-
Sergey Schwartz I would love to see FOP2 like application embedded to S series. Contact center supervisor basically need to see queues load(busy/free agents, call wait timers, etc), be able to add/remove/pause an agent and get a daily stats per queue and per agent.
-
Roel Koster I had it working on Yeastar S50 last week, i will test it next time when i have another S50 here.
For S series you have to configure "PJSIP/11" etc extensions and for MyPBX U100 "SIP/11" etc. extensions. You need also configure the AMI interface of the PBX and FOP2 server
-
Oscar Colka Wow Koster, you have it worked! That is really good news!
I think it would be better to embeded into the S Series PBX but it might be difficult, also, this would take some hardware resource of the S Series PBX and thus affect the stability, performance of PBX. So not sure if Yeastar team would consider this.
-
Sergey Schwartz Hi guys!
Have anybody tried QPanel with S series pbx ?
https://github.com/roramirez/qpanel
looks like a nice alternative to fop2
-
Dzmitry Zholud Oscar Colka
I try to run FOP2 on a separate server and connect to the u520. Does not work. Can you describe in more detail your actions?
-
Oscar Colka Dzmitry, I didn't try FOP2 myself. I think Koster did, could you help? @Koster
-
Roel Koster I Have running fop2 on a separate server. Here are the steps i have done:
(some linux/asterisk knowledge is essential)
- install ubuntu 14.04 server on your server
- at the last step of installation, you can select packages, install SSH server en LAMP package
(LAMP = linux/apache webserver/mysql/PHP)
-fill in password for MySQL and remember that password.
- reboot server and login
-update system:
sudo apt-get update
- install make program (needed for fop2 installation):
sudo apt-get install make
- add mysql user for fop2:
mysql -u root -p -e "GRANT all ON fop2.* TO fop2@localhost identified by 'fop2pw'"
-install FOP2:
cd /usr/src (go to directory)
sudo wget http://www.fop2.com/download/debian64 -O fop2.tgz (get the software)
sudo tar zxvf fop2.tgz (unpack file)
cd fop2 (goto unpacked directory)
sudo make install (installation)<fop2 is installed>
-modify fop2.cfg:
sudo nano /usr/local/fop2/fop2.cfgchange:
[general]
; AMI definitions
manager_host=192.168.55.151
manager_port=5038
manager_user=admin
manager_secret=amp111fill in the needed information for connection with the yeastar S pbx
uncomment folowing line in the file for pickup another phone:
use_pickupchan=1
- login into yeastar PBX and enable AMI (Settings/System/Security/Service/Enable AMI)
fill in username/password and network permissions-restart fop2 server:
/etc/init.d/fop2 restart- test in fop2 server the connection with yeastar:
/usr/local/fop2/fop2_server --test -----> Connection to manager OK!
-add users to fop2.cfg file:
sudo nano /usr/local/fop2/fop2.cfg(have added this to the end of the file:)
;#exec autoconfig-users.sh <--I have disabled this
user=1002:1234:all <--- user with login and permissions
user=1003:1234:dial,transfer,spy,hangup,pickup,recordbuttonfile=buttons_custom.cfg <---- location of button file
-make buttonfile:
sudo nano /usr/local/fop2/buttons_custom.cfghere is a sample:
[PJSIP/1002]
type=extension
extension=1002
context=Local_Default_CallingRules
label=John Doe
mailbox=600@default
extenvoicemail=*600@default
channel=PJSIP/1002
autoanswerheader=__SIPADDHEADER51=Call-Info=answer-after=0.001
originatevariables=FROM_USER=23,OTHER_VARIABLE=test
queuecontext=queue[PJSIP/1003]
type=extension
extension=1003
context=DLPN_DialPlan1003
label=John Doe
mailbox=600@default
extenvoicemail=*600@default
channel=PJSIP/1003
autoanswerheader=__SIPADDHEADER51=Call-Info=answer-after=0.001
originatevariables=FROM_USER=23,OTHER_VARIABLE=test
[PJSIP/1004]
type=extension
extension=1004
context=DLPN_DialPlan1004
label=Mary Jones
mailbox=601@default
extenvoicemail=*601@from-internal
email=test[PJSIP/1005]
type=extension
extension=1005
context=DLPN_DialPlan1005
label=John Doe
mailbox=600@default
extenvoicemail=*600@default
group=sales[PJSIP/1006]
type=extension
extension=1006
context=DLPN_DialPlan1006
label=John Doe
mailbox=600@default
extenvoicemail=*600@default
group=sales[PJSIP/1007]
type=extension
extension=1007
context=DLPN_DialPlan1007
label=John Doe
mailbox=600@default
extenvoicemail=*600@default
group=sales[PJSIP/1008]
type=extension
extension=1008
context=DLPN_DialPlan1008
label=John Doe
mailbox=600@default
extenvoicemail=*600@default
group=sales
[DAHDI/1] <---- FXS extension
type=extension
extension=1000
context=DLPN_DialPlan1000
label=analoog1
mailbox=601@default
extenvoicemail=*601@from-internal
group=analoog[DAHDI/2]
type=extension
extension=1001
context=DLPN_DialPlan1001
label=analog2
mailbox=601@default
extenvoicemail=*601@from-internal
group=analoog[QUEUE/queue-6700]
type=queue
label=Queuename
extension=6700
context=queues
[RINGGROUP/6200]
type=ringgroup
extension=6200
label=ringgroupname
context=Local_Default_CallingRules
[PJSIP/trunk-Test-endpoint] // "Test" = name of SIP Trunk given in yeastar PBX
type=trunk
label=lijn Test
channel=PJSIP/trunk-Test-endpoint
context=Local_Default_CallingRules
[PARK/default]
label=Park
type=park
extension=6900
context=parkedcalls-above button sample is not complete, i am working on it, but you get an idea.
- after saving the file restart fop2:
sudo /etc/init.d/fop2 restart-login to your fop2 server as user:
http://your.server/fop2login with username and password --> now have you to see the buttons!
- edit /var/www/html/fop2/config.php and /var/www/html/fop2/admin/config.php to have visual phonebook working:
// Database connection details
//$DBHOST = 'localhost';
$DBNAME = 'fop2';
$DBUSER = 'fop2';
$DBPASS = 'fop2pw';Finally run this script to create all required tables:
php /var/www/html/fop2/admin/update_conf.php 1 1
For Yeastar U series you have to change "PJSIP" into "SIP"
Yeastar S series uses PJSIP
login to fop2 manager: (http://your.server/fop2/admin) fop2admin/fop2admin-------------------------------------------------------------------------------------------------------------------------------
If you like to have the action buttons (call/transfer/onhook etc) in color instead off monochrome, do the following:
Since version 2.31.09, action buttons are now represetend as fonts instead of images. This lets us make the FOP2 UI fully responsive, something that is really dificult to achieve if you use images.
There is one drawback on this approach, fonts are monochromatic.
Anyways, FOP2 display styles can be tweaked using CSS. Since version 2.30 it is possible to write custom CSS modifications in your own 'theme' file to change the visual aspect.
We are going to use that feature in order to "restore" the original image action icons.
In order to write your own custom theme, you must create or edit this file:
/var/www/html/fop2/css/custom_theme/theme.css
And write this classes to restore the icon images:.actionbutton {
padding:0;
}
.fop2-dial {
background: url(../../images/toolbar/llamar.png) no-repeat;
width:40px;
height:40px;
}
.fop2-dial:before {
content: ''
}
.fop2-transfer {
background: url(../../images/toolbar/transferir.png) no-repeat;
width:40px;
height:40px;
}
.fop2-transfer:before {
content: ''
}
.fop2-supervised_transfer {
background: url(../../images/toolbar/supervised_transfer.png) no-repeat;
width:40px;
height:40px;
}
.fop2-supervised_transfer:before {
content: ''
}
.fop2-vmail_transfer {
background: url(../../images/toolbar/transferir_a_voicemail.png) no-repeat;
width:40px;
height:40px;
}
.fop2-vmail_transfer:before {
content: ''
}
.fop2-mobile_transfer {
background: url(../../images/toolbar/transferir_a_movil.png) no-repeat;
width:40px;
height:40px;
}
.fop2-mobile_transfer:before {
content: ''
}
.fop2-pickup {
background: url(../../images/toolbar/pickup.png) no-repeat;
width:40px;
height:40px;
}
.fop2-pickup:before {
content: ''
}
.fop2-spy {
background: url(../../images/toolbar/espiar.png) no-repeat;
width:40px;
height:40px;
}
.fop2-spy:before {
content: ''
}
.fop2-whisper {
background: url(../../images/toolbar/susurrar.png) no-repeat;
width:40px;
height:40px;
}
.fop2-whisper:before {
content: ''
}
.fop2-hangup {
background: url(../../images/toolbar/cortar.png) no-repeat;
width:40px;
height:40px;
}
.fop2-hangup:before {
content: ''
}
.fop2-record {
background: url(../../images/toolbar/record.png) no-repeat;
width:40px;
height:40px;
}
.fop2-record:before {
content: ''
}