martes, 26 de noviembre de 2024

disk clean

Delete logs

 find /var/log/astguiclient -type f -mtime +1 -exec rm -f {} \;




Delete all   no time restrictions
/usr/bin/find /var/spool/asterisk/monitorDONE/ORIG -maxdepth 2 -type f -print | xargs rm -f

delete only mp3 files other  than  7 days running this cron every  9 days

0 0 */9 * * /usr/bin/find /var/spool/asterisk/monitorDONE/MP3 -maxdepth 2 -type f -name "*.mp3" -mtime +7 -exec rm -f {} \;


..............

#!/bin/bash

# Get the most recent binary log file name
latest_log=$(mysql -u root -e "SHOW BINARY LOGS;" | tail -n 1 | awk '{print $1}')

# Run FLUSH and PURGE BINARY LOGS
mysql -u root -e "FLUSH LOGS; PURGE BINARY LOGS TO '$latest_log';"












-------
./db_flush.sh

martes, 19 de noviembre de 2024

changing vicidial recording link

 

Edit   user_stats.php  (https://github.com/inktel/Vicidial/blob/master/www/vicidial/user_stats.php)


     $location_public = str_replace("172.31.82.237", "dialer.1callclosers.com", $location); // changed added for change recs addresss amb.

                $MAIN.="<td align=left><font size=2> $row[4] </td>\n";

                $MAIN.="<td align=left><font size=2> $row[8] </td>\n";

                $MAIN.="<td align=left><font size=2> $row[0] </td>\n";

                $MAIN.="<td align=center><font size=2> $row[10] </td>\n";

                //$MAIN.="<td align=right><font size=2>  $location &nbsp; </td>\n";

                    $MAIN.="<td align=right><font size=2>  $location_public &nbsp; </td>\n";




apply  permissions for avoid 403 errors


 chmod 755 /var/spool/asterisk

viernes, 15 de noviembre de 2024

vicidial holliday


Postby mflorell » Mon Oct 26, 2009 9:18 am

There is currently no holiday function in ViciDial. You can just change the call times scheme to change the hours up to 6 days in advance.

 
https://vicidial.org/VICIDIALforum/viewtopic.php?t=9381




Re: Holiday definitions for temporarily closing

Postby mflorell » Fri Oct 12, 2018 9:35 am

The only workaround for that is to use crontab entries with SQL to alter a call time and then alter it back at those times.

Opening, or operating, times are not able to have two active time periods in the same day.
http://www.eflo.net/VICIDIALforum/viewtopic.php?f=4&t=38807