Hi
I've installed FOP2 under elastix on Centos 64 bit, also freepbx fop2 module
without problems
Configured manager connection (from freepbx interface), and purchased fop2 license
[root@jorju ~]# /usr/local/fop2/fop2_server --test Flash Operator Panel 2 - Valid License (1) Connection to manager OK!
Of course, I've disabled fop2
[root@jorju ~]# grep FOPRUN /etc/amportal.conf # FOPRUN: set to true if you want FOP started by freepbx_engine (amportal_start), false otherwise FOPRUN=false
then on 4445 port is running fop2
[root@jorju ~]# netstat -lnp | grep 4445 tcp 0 0 0.0.0.0:4445 0.0.0.0:* LISTEN 23275/fop2_server
Also, I don't have firewall rules for tcp 4445 traffic (fop1 was working without problems on 4445 before install fop2)
Others settings
cat /etc/asterisk/sip_general_custom.conf [testqueue] eventwhencalled=yes
How ever, I can't login to web fop2 interface.
I've setup user 302 with password 302 (from fop2 freepbx web admin module)
this is my fop2.cfg
[general]
; AMI definitions
manager_host=localhost
manager_port=5038
manager_user=fop2
manager_secret=fop2414243
;event_mask=agent,call,command,system,user,dialplan; Daemon definitios
listen_port = 4445
;restrict_host = http://www.asternic.org
;web_dir = /var/www/html/operator/fop2; Global Config
poll_interval = 86400
poll_voicemail = 1
monitor_ipaddress = 0; Force blind transfer on asterisk 1.6
blind_transfer = 1; Force supervised transfer on asterisk 1.4
; requires the atxfer manager backport patch
; supervised_transfer = 1; Force delimiter for asterisk applications
; force_parameter_delimiter = ","; When adding or removing members to a queue, fop2 will default to
; AddQueueMember/RemoveQueueMember commands. If you set use_agentlogin
; to 1, together with the QueueChannel in a button definition set to
; an Agent number it will use AgentCallbackLogin and Agentlogoff instead.
;
; use_agentlogin = 0; Master Password that overrides any individual one
;master_key = 5678; Options to send to chan_spy when doing a Listen action
; This global setting is overriden by the individual button
; spyoptions directive if set (in the button config).
; Asterisk 1.6.1 or higher has the option "d" that lets you
; switch spying modes using the keypad:
;4 = spy mode
;5 = whisper mode
;6 = barge mode
spy_options="bq"; Options to send to chan_spy when doing a Whisper action
; In Asterisk 1.6.1 or higher you can use B to enable barge (speak
; to both channels on a call).
whisper_options = "w"; When you spy to an ongoing call, your spy session will end as
; soon as the conversation you are listening to finishes. If you
; rather keep the chan spy session open after the call end, uncomment
; the following line.
;persistent_spy=1; Filename to use when start monitoring, you can use ${UNIQUEID},
; ${ORIG_EXTENSION}, ${DEST_EXTENSION}
; and date formats %Y %m %d to construct the filename.
;
; Settings for modifying the recording filename
; Available variables are:
; ${UNIQUEID} = Unique Id of the call
; ${TIMESTAMP} = Unix Timestamp when the recording was initiated
; ${CLIDNUM} = Callerid or Dialed number for the active call
; ${CLIDNAME} = Callerid name for the active call
; ${DEST_EXTENSION} = Target extenstion being monitored
; ${ORIG_EXTENSION} = Extension/User that started the recording (not
; the other leg)
; ${MBOX} = Mailbox of the extension/user that startend the
; recording
;
; Date variables:
; %Y 4 digits year
; %y 2 digits year
; %m 2 digits month
; %d 2 digits day
; %h 2 digits hour
; %i 2 digits minute
; %s 2 digits seconds; For elastix Monitoring Tab:
; monitor_filename=g${DEST_EXTENSION}-${UNIQUEID}; For fop2 recording interface
monitor_filename=/var/spool/asterisk/monitor/${ORIG_EXTENSION}_${DEST_EXTENSION}_%h%i%s_${UNIQUEID}
monitor_format=wav
monitor_mix=true; To enable the recording interface you must uncomment the following
; line, but also you might need to modify the script a little bit
; depending on the sox version you have installed.
;
;monitor_exec=/usr/local/fop2/recording_fop2.pl; You could specify your own script to be executed when the recording
; is finished. It will receive 3 parameters, the complete
; path and filename of the IN leg, the OUT leg and the final
; recording NAME. You should run soxmix in your script to join
; the recordings into one file.
;
; monitor_exec=/var/lib/asterisk/bin/postrecording-script.sh; FOP2 can fire notifications/popups when an extension or queue
; member receives a call. The default behaviour is to show a
; notification on state RINGING (notify_on_ringing=1).
;
; To customize notifications, you must uncomment the custom_popup
; function in checkdir.php you can replace that notification with
; a custom popup function to integrate with other web applications.
;
; For call centers you might need to perform a popup not on the
; RINGING state but when the call is CONNECTED to an agent. If you
; set in the queue configuration in queues.conf the option
; eventwhencalled=yes and then set here notify_on_connect=1,
; fop2 will send notifications on queue connected calls
; during AGENTCONNECT events. This will only work for inbound calls
; from a queue.
;
; notify_on_ringing = 1
; notify_on_connect = 1; Call pickup uses the pickupmark variable by default. In multi tenant
; systems this might lead to problems as you might end un picking up
; some other tenant call. In that case you might want to try to
; pickup the call by its context uncomenting the following line:
;
; no_pickupmark=1; Path to your voicemail directory
; For voicemail to work the fop2 server must run on the same server
; as asterisk, or your voicemail directory must be network mounted
voicemail_path=/var/spool/asterisk/voicemail; By default IM chats are not logged/saved. If you uncomment
; the following parameter, all chats will be stored on the chatlog
; table inside the fop2settings.db sqlite database.
;
; save_chat_log=1; Khomp GSM interface to send SMS messages
; If there is a card plugged, fop2 will auto discover it
; and use the first one available. If you want to change it
; to a fixed one, uncomemnt the folowing line and change the name
; to your liking
;
; khomp_gsm=Khomp/b0; --- SAMPLE GROUPS ---
; group=queues:QUEUE/100,QUEUE/101
; group=deptA:SIP/100,SIP/101,SIP/102
; --- END SAMPLE ---; --- SAMPLE USER LIST ---
; format: user= EXTENSION : SECRET : PERMISSIONS : GROUPS
; You can enumerate several permissions and groups separated by comma
; available permissions: 'all', 'dial', 'hangup', 'meetme', 'pickup',
; 'record', 'spy', 'transfer', 'whisper',
; 'queuemanager', 'queueagent', 'phonebook',
; 'chat', 'preferences', 'hangupself',
; 'recordself', 'voicemailadmin'
;
; user=620:1234:all:queues
; user=621:1234:dial,transfer,pickup:deptA
; user=622:1234:all
; user=623:1234:meetme,pickup
; buttonfile=buttons.cfg
; ------ END SAMPLE ------; This line is NOT commented, it executes
; the autoconfig configuration for FreePBX
#exec autoconfig-users-freepbx.sh
If I run fop2 on debug mode
/usr/local/fop2/fop2_server -X 511
I get a lot of info...
when I try to login , I get this:
** MAIN New client connection 190.176.223.25
- * MAIN AMI event received...
- * MAIN Processing command received from flash clients...
190.176.223.25 <= <msg data="GENERAL|contexto|1|" />
-- PROCESS_FLASH_COMMAND origen GENERAL accion contexto destino 1 password
190.176.223.25 => { "btn": "0", "cmd": "key", "data": "rM7TxbVHTeHjTneG4l", "slot": "" }
190.176.223.25 => { "btn": "0@GENERAL", "cmd": "version", "data": "2.22!Jorgu!1", "slot": "" }
- * MAIN AMI event received...
- * MAIN Processing command received from flash clients...
190.176.223.25 <= <msg data="1|auth|302|d218673e1822234266497bf555a190f3" />
-- PROCESS_FLASH_COMMAND origen 1 accion auth destino 302 password d218673e1822234266497bf555a190f3
** RECEIVING AUTH REQUEST for 302
TRYING TO VALIDATE USER 302
VALIDAR USUARIO 302
VALIDAR USUARIO 302 OK con clave regular (190.176.223.25)
** SENDING BUTTONS from GENERAL to client at 190.176.223.25
mi perm all = 0 (0)
190.176.223.25 => { "btn": "0@GENERAL", "cmd": "preferences", "data": "e30=", "slot": "" }
190.176.223.25 => { "btn": "0@GENERAL", "cmd": "vmailpath", "data": "/var/spool/asterisk/voicemail", "slot": "" }
190.176.223.25 => { "btn": "0@GENERAL", "cmd": "permit", "data": "YWxs", "slot": "" }
190.176.223.25 => { "btn": "0@GENERAL", "cmd": "permitbtn", "data": "YWxsITA=", "slot": "" }
190.176.223.25 => { "btn": "75@GENERAL", "cmd": "zbuttons", "data": "pZvBcts2EIbveQr51nbGY2NBiNJBM5Ft2fVUklVLSdPeYAl2mVBkSlGdpONX7qkvUFCiJMK7a8GDW0LTy///SWA/gLR4fzMYD+77w+eHdVnm2fPJsH8xGPZGukh0a2HS1uXJqH87vvy5Px7b49PbydnUzAtTbk64MYXJ5ok+ufwwnd2N+tPZ1UXv8rpxyv6MXz8MPgwu78azwadZ77HIl6d/rc3anMx+nwx65ltpslWSZ/Vp9dWG+Vyn1PXeHwqcZc8Tk+m0/N47fx6Z5YMpxnppmg6ep6UuzW1WmuJRzw1rwiobjKe3d+Meod+RnlS17EXfAcrvUEScn9dpzkxqHvMsWZW6ddoaJmmiM41yrc5/kWN1yDM4Wp9k7u8gTRaUAoEViIBbZ3/b41ZtxFA3qbp4M0/BuIwYlzOzygtT/Es5BewUgpyCh9O9INotOG6BcauOubXP2H3+jX7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z43MqkQbFT3Sa+ua3JKkqtBBNY/sn9U12S8Zqz/Buh0JNI1uDvpU5sZTXQR/UrI56FOZG1VVkajbiWOBZe+O+9TnRtihDha/O+5TnxtthzqSqe8168TcyDvUwX+HszvuU5/9RmpfRzH1vUZ5zI3IQ502U99rHMXc2DzUwR8U7I771OfG6aFOh6nvNWb/Bw==", "slot": "" }
190.176.223.25 => { "btn": "0@GENERAL", "cmd": "notionline", "data": "52", "slot": "0" }
- * MAIN AMI event received...
- * MAIN Processing command received from flash clients...
190.176.223.25 <= <msg data="1|ping||" />
-- PROCESS_FLASH_COMMAND origen 1 accion ping destino password
190.176.223.25 => { "btn": "0", "cmd": "pong", "data": "PGRpdiBpZD0iI3tpZH0iPjxhIGhyZWY9Imh0dHA6Ly93d3cuZm9wMi5jb20iPkZPUDI8L2E+IC0gVmVyc2lvbiA8c3BhbiBpZD0iZm9wdmVyc2lvbiI+I3t2ZXJzaW9ufTwvc3Bhbj4gLSBMaXRlIFZlcnNpb24gLSBMaW1pdGVkIHRvIDE1IGV4dGVuc2lvbnMgLiBCdXkgaXQgPGEgaHJlZj0iaHR0cDovL3d3dy5mb3AyLmNvbS9idXkucGhwIj5ub3c8L2E+IGZvciB1bmxpbWl0ZWQgZXh0ZW5zaW9ucy4gSWYgeW91IGFscmVhZHkgaGF2ZSBhIGNvZGUgZW50ZXIgaXQgPGEgaHJlZj0iIyIgb25DbGljaz0icmVnaXN0ZXIoKTsgcmV0dXJuIGZhbHNlOyI+aGVyZTwvYT48L2Rpdj4=", "slot": "" }
- * MAIN AMI event received...
- * MAIN Processing command received from flash clients...
190.176.223.25 <= <msg data="1|ping||" />
-- PROCESS_FLASH_COMMAND origen 1 accion ping destino password
190.176.223.25 => { "btn": "0", "cmd": "pong", "data": "PGRpdiBpZD0iI3tpZH0iPjxhIGhyZWY9Imh0dHA6Ly93d3cuZm9wMi5jb20iPkZPUDI8L2E+IC0gVmVyc2lvbiA8c3BhbiBpZD0iZm9wdmVyc2lvbiI+I3t2ZXJzaW9ufTwvc3Bhbj4gLSBMaXRlIFZlcnNpb24gLSBMaW1pdGVkIHRvIDE1IGV4dGVuc2lvbnMgLiBCdXkgaXQgPGEgaHJlZj0iaHR0cDovL3d3dy5mb3AyLmNvbS9idXkucGhwIj5ub3c8L2E+IGZvciB1bmxpbWl0ZWQgZXh0ZW5zaW9ucy4gSWYgeW91IGFscmVhZHkgaGF2ZSBhIGNvZGUgZW50ZXIgaXQgPGEgaHJlZj0iIyIgb25DbGljaz0icmVnaXN0ZXIoKTsgcmV0dXJuIGZhbHNlOyI+aGVyZTwvYT48L2Rpdj4=", "slot": "" }
- * MAIN AMI event received...
- * MAIN Processing command received from flash clients...
190.176.223.25 <= <msg data="1|ping||" />
-- PROCESS_FLASH_COMMAND origen 1 accion ping destino password
190.176.223.25 => { "btn": "0", "cmd": "pong", "data": "PGRpdiBpZD0iI3tpZH0iPjxhIGhyZWY9Imh0dHA6Ly93d3cuZm9wMi5jb20iPkZPUDI8L2E+IC0gVmVyc2lvbiA8c3BhbiBpZD0iZm9wdmVyc2lvbiI+I3t2ZXJzaW9ufTwvc3Bhbj4gLSBMaXRlIFZlcnNpb24gLSBMaW1pdGVkIHRvIDE1IGV4dGVuc2lvbnMgLiBCdXkgaXQgPGEgaHJlZj0iaHR0cDovL3d3dy5mb3AyLmNvbS9idXkucGhwIj5ub3c8L2E+IGZvciB1bmxpbWl0ZWQgZXh0ZW5zaW9ucy4gSWYgeW91IGFscmVhZHkgaGF2ZSBhIGNvZGUgZW50ZXIgaXQgPGEgaHJlZj0iIyIgb25DbGljaz0icmVnaXN0ZXIoKTsgcmV0dXJuIGZhbHNlOyI+aGVyZTwvYT48L2Rpdj4=", "slot": "" }
- * MAIN AMI event received...
- * MAIN Processing command received from flash clients...
190.176.223.25 <= <msg data="1|ping||" />
-- PROCESS_FLASH_COMMAND origen 1 accion ping destino password
190.176.223.25 => { "btn": "0", "cmd": "pong", "data": "PGRpdiBpZD0iI3tpZH0iPjxhIGhyZWY9Imh0dHA6Ly93d3cuZm9wMi5jb20iPkZPUDI8L2E+IC0gVmVyc2lvbiA8c3BhbiBpZD0iZm9wdmVyc2lvbiI+I3t2ZXJzaW9ufTwvc3Bhbj4gLSBMaXRlIFZlcnNpb24gLSBMaW1pdGVkIHRvIDE1IGV4dGVuc2lvbnMgLiBCdXkgaXQgPGEgaHJlZj0iaHR0cDovL3d3dy5mb3AyLmNvbS9idXkucGhwIj5ub3c8L2E+IGZvciB1bmxpbWl0ZWQgZXh0ZW5zaW9ucy4gSWYgeW91IGFscmVhZHkgaGF2ZSBhIGNvZGUgZW50ZXIgaXQgPGEgaHJlZj0iIyIgb25DbGljaz0icmVnaXN0ZXIoKTsgcmV0dXJuIGZhbHNlOyI+aGVyZTwvYT48L2Rpdj4=", "slot": "" }
- * MAIN AMI event received...
- * MAIN Processing command received from flash clients...
190.176.223.25 <= <msg data="1|ping||" />
-- PROCESS_FLASH_COMMAND origen 1 accion ping destino password
190.176.223.25 => { "btn": "0", "cmd": "pong", "data": "PGRpdiBpZD0iI3tpZH0iPjxhIGhyZWY9Imh0dHA6Ly93d3cuZm9wMi5jb20iPkZPUDI8L2E+IC0gVmVyc2lvbiA8c3BhbiBpZD0iZm9wdmVyc2lvbiI+I3t2ZXJzaW9ufTwvc3Bhbj4gLSBMaXRlIFZlcnNpb24gLSBMaW1pdGVkIHRvIDE1IGV4dGVuc2lvbnMgLiBCdXkgaXQgPGEgaHJlZj0iaHR0cDovL3d3dy5mb3AyLmNvbS9idXkucGhwIj5ub3c8L2E+IGZvciB1bmxpbWl0ZWQgZXh0ZW5zaW9ucy4gSWYgeW91IGFscmVhZHkgaGF2ZSBhIGNvZGUgZW50ZXIgaXQgPGEgaHJlZj0iIyIgb25DbGljaz0icmVnaXN0ZXIoKTsgcmV0dXJuIGZhbHNlOyI+aGVyZTwvYT48L2Rpdj4=", "slot": "" }