I am having a issue. The recording function works. It records in and out. I get two separate audio files.
Issue 1: They are not compiled into 1 mix. Can this be solved from within fop2 or should I solve this from within asterisk?
Do you have any tips helping me in the right direction?
Issue 2: The recording won't show up in the tab. I can see the recording tab but nothing shows up. Also the database table is there but there a 0 rows in it. I guess this has to do with configuration of FOP2, do you have any directions for setting this?
I am using Asterisk 11.0.1.. I enabled the fop 2 config like this (for readability all explanation has been removed):
[general] ; AMI definitions manager_host=192.168.1.4 manager_port=5038 manager_user=user1 manager_secret=secret10 ;event_mask=agent,call,command,system,user,dialplan ;listen_port = 4445 ;restrict_host = www.asternic.org web_dir = /var/www/fop2 poll_interval = 86400 poll_voicemail = 1 monitor_ipaddress = 0 blind_transfer = 1 ; supervised_transfer = 1 ; force_parameter_delimiter = "," ; use_agentlogin = 0 ;master_key = 5678 spy_options="bq" ;persistent_spy=0 ; monitor_filename=g${DEST_EXTENSION}-${UNIQUEID} monitor_filename=/var/spool/asterisk/monitor/${ORIG_EXTENSION}_${DEST_EXTENSION}_%h%i%s_${UNIQUEID} monitor_format=wav monitor_mix=true monitor_exec=/usr/local/fop2/recording_fop2.pl ; monitor_exec=/var/lib/asterisk/bin/postrecording-script.sh ; notify_on_ringing = 1 ; notify_on_connect = 1 ; no_pickupmark=1 ; use_pickupchan=1 voicemail_path=/var/spool/asterisk/voicemail ;voicemail_path=dbi:ODBC:asterisk!voicemessages ; save_chat_log=1 ; khomp_gsm=Khomp/b0 ; dongle_gsm=dongle01 ; sms_api_url=http://GATEWAY_ADDRESS/cgi-bin/exec?cmd=api_queue_sms&username=USER&password=PASSWORD&content=${MESSAGE}&destination=${NUMBER}&api_version=0.05&channel=1 ; sms_api_method=GET ; sms_api_user=USER ; sms_api_password=PASSWORD ; sms_api_url=http://api.smsified.com/v1/smsmessaging/outbound/SERVICENUMBER/requests?address=${NUMBER}&message=${MESSAGE} ; sms_api_method=POST ; sms_api_user=USER ; sms_api_password=PASSWORD ; sms_api_response_error=error user=1001:secret1:all user=1005:secret2:all user=5000:secret3:all user=5005:secret2:all user=9000:secret3:all user=9001:secret1:all buttonfile=buttons.cfg ;ssl_certificate_file=/etc/pki/tls/certs/localhost.crt ;ssl_certificate_key_file=/etc/pki/tls/private/localhost.key ;#exec autoconfig-users-freepbx.sh
[EDIT] I am not using FreePBX. I am on a Asterisk only server. Setup from Tarball. So maybe it goes wrong when calling the amportal.conf because that's not availble for me. I am now going to adapt the recording_fop2.pl to make this work [/EDIT]
If you need anything else, please let me know!
Answered by admin
See post in contextPerhaps you need to install DBI mysql drivers or similar. The way to troubleshoot is to look at the asterisk FULL log for a line that says something like
Executing /usr/local/fop2/recording_fop2.pl blah blah blah
Where blah blah blha are the actual parameters of the command being executed. Copy the whole command, and then in the command line run that very same command, as the "asterisk" user if you run asterisk with any user other than root.
If there are errors, you will see them on the console.
My bet is that you have some missing perl modules, most probably perl DBI or DBI-mysql
Best regards,