Problems with my recording files..

All installation and configuration problems and questions

Moderators: gerski, enjay, williamconley, Op3r, Staydog, gardo, mflorell, MJCoate, mcargile, Kumba, Michael_N

Problems with my recording files..

Postby d001 » Fri Aug 02, 2024 4:59 am

Hello all,

I hope you are well. I have a problem with my recording files. The location isn't displayed in the user stats and load leads sections.

Everything was fine until two weeks ago; we didn’t make any changes, but we noticed that the server is no longer displaying the file locations. I also noticed that it does not save the file
in the directory /var/spool/asterisk/monitorDONE/MP3/ but instead in /var/spool/asterisk/monitorDONE, and some are stored in /var/spool/asterisk/monitor/ with extensions .in and .out.

I have tried the following commands after the problem occurred:


Code: Select all
MariaDB [asterisk]> SELECT campaign_id, campaign_rec_exten, campaign_recording, campaign_rec_filename FROM vicidial_campaigns;
+-------------+--------------------+--------------------+-----------------------------------+
| campaign_id | campaign_rec_exten | campaign_recording | campaign_rec_filename             |
+-------------+--------------------+--------------------+-----------------------------------+
| xxxx        | 8309               | ALLFORCE           | FULLDATE_CUSTPHONE_CAMPAIGN_AGENT |
| xxxx        | 8309               | ALLFORCE           | FULLDATE_CUSTPHONE_CAMPAIGN_AGENT |
| xxxx        | 8309               | ALLFORCE           | FULLDATE_CUSTPHONE_CAMPAIGN_AGENT | This is the campaign I'm using
| xxxx        | 8309               | ONDEMAND           | FULLDATE_CUSTPHONE                |
+-------------+--------------------+--------------------+-----------------------------------+
4 rows in set (0.000 sec)


Code: Select all
MariaDB [asterisk]> SELECT filename, location FROM recording_log WHERE filename LIKE '%xxxxxxx%';
+---------------------------------------+-----------------------------------------------------------------------------------+
| filename                              | location                                                                          |
+---------------------------------------+-----------------------------------------------------------------------------------+
| 20240613-150531_xxxxxxxxx             | http://192.1xx.x.xxx/RECORDINGS/MP3/20240613-150531_xxxxxxxx-all.mp3             |
| 20240801-101928_xxxxxxxxx_POC_5002    | NULL                                                                              |
| 20240801-103311_xxxxxxxxx_POC_5001    | http://192.1xx.x.xxx/RECORDINGS/20240801-103311_xxxxxxxx_POC_5001-all.wav        |
| 20240801-103351_xxxxxxxxx_POC_5002    | http://192.1xx.x.xxx/RECORDINGS/20240801-103351_xxxxxxxx_POC_5002-all.wav        |
| 20240801-161704_xxxxxxxxx_POC_5001    | NULL                                                                              |
| 20240801-165643_xxxxxxxxx_POC_5001    | NULL                                                                              |
| 20240801-170039_xxxxxxxxx_POC_5001    | NULL                                                                              |
| 20240802-101158_xxxxxxxxx_POC_5001    | NULL                                                                              |
+---------------------------------------+-----------------------------------------------------------------------------------+


Code: Select all
vicibox11:~ # find /var/spool/asterisk/monitorDONE/ORIG/ | grep xxxxxxx
/var/spool/asterisk/monitorDONE/ORIG/20240708162558_355456xxxx_xxxxxxx-out.wav
/var/spool/asterisk/monitorDONE/ORIG/20240801-103311_6899xxxxx_POC_5001-out.wav
/var/spool/asterisk/monitorDONE/ORIG/20240708160648_3554xxxxx_xxxxxxxx-in.wav


Code: Select all
vicibox11:~ # asterisk -rx "dialplan show 8309@default"
[ Included context 'vicidial-auto-internal' created by 'pbx_config' ]
  '8309' =>         1. Answer()                                   [extensions-vicidial.conf:199]
                    2. Monitor(wav,${CALLERID(name)})             [extensions-vicidial.conf:200]
                    3. Wait(3600)                                 [extensions-vicidial.conf:201]
                    4. Hangup()                                   [extensions-vicidial.conf:202]

-= 1 extension (4 priorities) in 1 context. =-


Code: Select all
vicibox11:~ #
vicibox11:~ # asterisk -rx "dialplan show 8310@default"
[ Included context 'vicidial-auto-internal' created by 'pbx_config' ]
  '8310' =>         1. Answer()                                   [extensions-vicidial.conf:204]
                    2. Monitor(gsm,${CALLERID(name)})             [extensions-vicidial.conf:205]
                    3. Wait(3600)                                 [extensions-vicidial.conf:206]
                    4. Hangup()                                   [extensions-vicidial.conf:207]

-= 1 extension (4 priorities) in 1 context. =-
vicibox11:~ #


Code: Select all
vicibox11:~ # perl /usr/share/astguiclient/AST_CRON_audio_1_move_mix.pl --debug

----- DEBUG -----

Can't find soxmix binary! Trying sox...
|1316|33|20240802-111542_xxxxxxxxx_POC_5003-in.wav|20240802-111542_xxxxxxxxx_POC_5003-out.wav|     |20240802-111542_xxxxxxxxx_POC_5003-all.wav|
|1314|25|20240802-111151__POC_5003-in.wav|20240802-111151__POC_5003-out.wav|     |20240802-111151__POC_5003-all.wav|
|1313|274|20240802-111015_xxxxxxxxx_POC_5005-in.wav|20240802-111015_xxxxxxxxx_POC_5005-out.wav|     |20240802-111015_xxxxxxxxx_POC_5005-all.wav|
|1311|104|20240802-111004_xxxxxxxxx_POC_5003-in.wav|20240802-111004_xxxxxxxxx_POC_5003-out.wav|     |20240802-111004_xxxxxxxxx_POC_5003-all.wav|
|1310|30|20240802-110925_xxxxxxxxx_POC_5005-in.wav|20240802-110925_xxxxxxxxx_POC_5005-out.wav|     |20240802-110925_xxxxxxxxx_POC_5005-all.wav|
vicibox11:~ #


My campaign recording is set to ALLFORCE, and Agent Recording Override is also set to ALLFORCE.

Can anyone help me with this issue? Thanks in advance!
ViciBox v.11.0.1 | VERSION: 2.14-918a | BUILD: 240528-1722 | Asterisk 16.30.0-vici | OpenSUSE Leap: 15.5
d001
 
Posts: 36
Joined: Wed Jul 10, 2024 9:56 am

Re: Problems with my recording files..

Postby williamconley » Sat Aug 03, 2024 8:36 pm

That was pretty thorough.

Next up: You only provided the first audio_1 file. What about audio_2 and audio_3? There are ordinarily 3 or 4 audio cron jobs:

Code: Select all
0,3,6,9,12,15,18,21,24,27,30,33,36,39,42,45,48,51,54,57 * * * * /usr/share/astguiclient/AST_CRON_audio_1_move_mix.pl --MIX
0,3,6,9,12,15,18,21,24,27,30,33,36,39,42,45,48,51,54,57 * * * * /usr/share/astguiclient/AST_CRON_audio_1_move_VDonly.pl
1,4,7,10,13,16,19,22,25,28,31,34,37,40,43,46,49,52,55,58 * * * * /usr/share/astguiclient/AST_CRON_audio_2_compress.pl --MP3
2,5,8,11,14,17,20,23,26,29,32,35,38,41,44,47,50,53,56,59 * * * * /usr/share/astguiclient/AST_CRON_audio_3_ftp.pl --MP3 --run-check --ftp-persistent --ftp-validate


Each should be run with --debugX to check for errors. Also check the system log for cron job errors and/or the server root email account in case some are landing there.
Vicidial Installation and Repair, plus Hosting and Colocation
Newest Product: Vicidial Agent Only Beep - Beta
http://www.PoundTeam.com # 352-269-0000 # +44(203) 769-2294
williamconley
 
Posts: 20253
Joined: Wed Oct 31, 2007 4:17 pm
Location: Davenport, FL (By Disney!)

Re: Problems with my recording files..

Postby d001 » Mon Aug 05, 2024 4:26 am

Hello William,

Thank you for your response. I appreciate it. I noticed that my crontab file does not contain those data.

It has only this:

Code: Select all
vicibox11:~ crontab -e

### Renew SSL certificate every Sunday at midnight
0 0 * * 0 /usr/share/vicibox-ssl/acme-renew.sh



After debugging those commands, these are the results:
Code: Select all
vici-tel:~ # /usr/share/astguiclient/AST_CRON_audio_1_move_mix.pl --MIX --debugX

----- DEBUG -----

----- SUPER DEBUG -----

MIX directory audio processing only
Can't find soxmix binary! Trying sox...
DONE... EXITING

vici-tel:~ # /usr/share/astguiclient/AST_CRON_audio_1_move_VDonly.pl --debugX

----- DEBUG -----

----- SUPER DEBUG -----

20240805-105200_XXXXXXXXX_POC_5001-out.wav 44
20240805-105200_XXXXXXXXX_POC_5001-in.wav 596844
20240805-104820_XXXXXXXXX_POC_5001-out.wav 44
20240805-104820_XXXXXXXXX_POC_5001-in.wav 3081004
^C
vici-tel:~ # /usr/share/astguiclient/AST_CRON_audio_2_compress.pl --MP3 --debugX

----- DEBUG -----

----- SUPER DEBUG -----

MP3 compression
SOX:     LAME: /usr/bin/lame
DONE... EXITING

vici-tel:~ # /usr/share/astguiclient/AST_CRON_audio_3_ftp.pl --MP3 --run-check --ftp-persistent --ftp-validate --debugX

----- DEBUG -----

----- SUPER DEBUG -----

----- CONCURRENCY CHECK -----

MP3 audio files

----- FTP PERSISTENT: 1 -----

----- FTP VALIDATE: 1 -----

/var/spool/asterisk/monitorDONE/MP3/20240604-102146_XXXXXXXXX_DEMO_5001-all.mp3 183312
/var/spool/asterisk/monitorDONE/MP3/20240524-152258_XXXXXXXXX_DEMO_5001-all.mp3 12384
/var/spool/asterisk/monitorDONE/MP3/20240606-110618_XXXXXXXXX_PD01_5001-all.mp3 36576
.
.
.

|select recording_id,start_time from recording_log where filename='20240606-110618_XXXXXXXXX_PD01_5001' order by recording_id desc LIMIT 1;|
|73|2024-06-06|20240606-110618_XXXXXXXXX_PD01_5001-all.mp3|     ||
ERROR: Could not ping server 10.X.X.X
/var/spool/asterisk/monitorDONE/MP3/20240527-154328_XXXXXXXXX_DEMO_5001-all.mp3 39456

|select recording_id,start_time from recording_log where filename='20240527-154328_XXXXXXXXX_DEMO_5001' order by recording_id desc LIMIT 1;|
|29|2024-05-27|20240527-154328_XXXXXXXXX_DEMO_5001-all.mp3|     ||
ERROR: Could not ping server 10.X.X.X
/var/spool/asterisk/monitorDONE/MP3/20240529-170903_XXXXXXXXX-all.mp3 2016

|select recording_id,start_time from recording_log where filename='20240529-170903_XXXXXXXXXXX' order by recording_id desc LIMIT 1;|
vici-tel:~ #

vici-tel:~ #
vici-tel:~ # journalctl -u cron
Aug 05 09:57:39 vici-tel systemd[1]: Started Command Scheduler.
Aug 05 09:57:39 vici-tel cron[3410]: (CRON) STARTUP (1.5.7)
Aug 05 09:57:39 vici-tel cron[3410]: (CRON) INFO (RANDOM_DELAY will be scaled with factor 30% if used.)
Aug 05 09:57:39 vici-tel cron[3410]: (CRON) INFO (running with inotify support)
Aug 05 10:51:01 vici-tel cron[3410]: (root) RELOAD (/var/spool/cron/tabs/root)
vici-tel:~ #

vici-tel:~ # mail
Heirloom mailx version 12.5 7/5/10.  Type ? for help.
"/var/spool/mail/root": 207 messages 207 new
>N  1 root@vicibox11.loc Thu May 23 10:37   31/1187  Cron <root@vicibox11> /usr/share/astguiclient/AST_vm_update.pl
 N  2 root@vicibox11.loc Thu May 23 10:37   31/1191  Cron <root@vicibox11> /usr/share/astguiclient/AST_conf_update.pl
 N  3 root@vicibox11.loc Thu May 23 10:38   31/1191  Cron <root@vicibox11> /usr/share/astguiclient/AST_conf_update.pl
 N  4 root@vicibox11.loc Fri May 24 09:23   31/1187  Cron <root@vicibox11> /usr/share/astguiclient/AST_vm_update.pl
 N  5 root@vicibox11.loc Fri May 24 09:23   31/1191  Cron <root@vicibox11> /usr/share/astguiclient/AST_conf_update.pl
 N  6 root@vicibox11.loc Wed May 29 17:21   31/1187  Cron <root@vicibox11> /usr/share/astguiclient/AST_vm_update.pl
 N  7 root@vicibox11.loc Wed May 29 17:21   31/1191  Cron <root@vicibox11> /usr/share/astguiclient/AST_conf_update.pl
 N  8 root@vicibox11.loc Fri May 31 09:46   31/1193  Cron <root@vicibox11> /usr/share/astguiclient/AST_conf_update.pl
 N  9 root@vicibox11.loc Fri May 31 09:46   31/1187  Cron <root@vicibox11> /usr/share/astguiclient/AST_vm_update.pl
 N 10 root@vicibox11.loc Fri May 31 09:47   31/1189  Cron <root@vicibox11> /usr/share/astguiclient/AST_vm_update.pl
 N 11 root@vicibox11.loc Mon Jun  3 09:28   31/1141  Cron <root@vicibox11> /usr/share/astguiclient/AST_vm_update.pl
 N 12 root@vicibox11.loc Mon Jun  3 13:25   31/1187  Cron <root@vicibox11> /usr/share/astguiclient/AST_vm_update.pl
 N 13 root@vicibox11.loc Mon Jun  3 13:25   31/1191  Cron <root@vicibox11> /usr/share/astguiclient/AST_conf_update.pl
 N 14 root@vicibox11.loc Wed Jun  5 09:43   31/1187  Cron <root@vicibox11> /usr/share/astguiclient/AST_vm_update.pl
 N 15 root@vicibox11.loc Wed Jun  5 09:43   31/1191  Cron <root@vicibox11> /usr/share/astguiclient/AST_conf_update.pl
 N 16 root@vicibox11.loc Wed Jun  5 13:53   31/1194  Cron <root@vicibox11> /usr/share/astguiclient/AST_conf_update.pl
 N 17 root@vicibox11.loc Thu Jun  6 18:04   31/1149  Cron <root@vicibox11> /usr/share/astguiclient/AST_vm_update.pl
 N 18 root@vicibox11.loc Thu Jun  6 18:04   31/1153  Cron <root@vicibox11> /usr/share/astguiclient/AST_conf_update.pl
 N 19 root@vicibox11.loc Thu Jun  6 18:04   31/1153  Cron <root@vicibox11> /usr/share/astguiclient/AST_conf_update.pl
 N 20 root@vicibox11.loc Fri Jun  7 00:01   33/1598  Cron <root@vicibox11> /usr/share/astguiclient/ADMIN_keepalive_ALL.pl
 N 21 root@vicibox11.loc Fri Jun  7 00:22   51/1587  Cron <root@vicibox11> /usr/share/astguiclient/AST_agent_day.pl
 N 22 root@vicibox11.loc Fri Jun  7 00:50   32/1127  Cron <root@vicibox11> /usr/share/astguiclient/AST_vm_update.pl
 N 23 root@vicibox11.loc Fri Jun  7 00:50   31/1131  Cron <root@vicibox11> /usr/share/astguiclient/AST_conf_update.pl
 N 24 root@vicibox11.loc Fri Jun  7 01:01   32/1105  Cron <root@vicibox11> /usr/share/astguiclient/AST_manager_send.pl --daily
 N 25 root@vicibox11.loc Fri Jun  7 01:03   32/1103  Cron <root@vicibox11> /usr/share/astguiclient/AST_CID_update.pl
 N 26 root@vicibox11.loc Fri Jun  7 02:22   51/1587  Cron <root@vicibox11> /usr/share/astguiclient/AST_agent_day.pl
 N 27 root@vicibox11.loc Fri Jun  7 05:01   32/1105  Cron <root@vicibox11> /usr/share/astguiclient/AST_manager_send.pl --daily
 N 28 root@vicibox11.loc Fri Jun  7 06:22   51/1587  Cron <root@vicibox11> /usr/share/astguiclient/AST_agent_day.pl
 N 29 root@vicibox11.loc Fri Jun  7 09:01   32/1105  Cron <root@vicibox11> /usr/share/astguiclient/AST_manager_send.pl --daily
 N 30 root@vicibox11.loc Fri Jun  7 09:02   32/1103  Cron <root@vicibox11> /usr/share/astguiclient/AST_CID_update.pl
ViciBox v.11.0.1 | VERSION: 2.14-918a | BUILD: 240528-1722 | Asterisk 16.30.0-vici | OpenSUSE Leap: 15.5
d001
 
Posts: 36
Joined: Wed Jul 10, 2024 9:56 am

Re: Problems with my recording files..

Postby d001 » Mon Aug 05, 2024 6:28 am

It works now. In the crontab, I added all the missing data, and now it works well. In Mozilla, I can download and listen from the interface. In Google, I can download but can't listen. However, I think this is a temporary problem.

Thank you so much, William.
God bless you.
ViciBox v.11.0.1 | VERSION: 2.14-918a | BUILD: 240528-1722 | Asterisk 16.30.0-vici | OpenSUSE Leap: 15.5
d001
 
Posts: 36
Joined: Wed Jul 10, 2024 9:56 am


Return to Support

Who is online

Users browsing this forum: mflorell and 56 guests