debug12
This commit is contained in:
+5
-1
@@ -348,7 +348,11 @@ class CallHandler:
|
|||||||
with wave.open(filename, "rb") as wav_file:
|
with wave.open(filename, "rb") as wav_file:
|
||||||
return wav_file.getnframes() / wav_file.getframerate()
|
return wav_file.getnframes() / wav_file.getframerate()
|
||||||
|
|
||||||
directory = f"/var/spool/asterisk/monitor/{datetime.now().year}/{datetime.now().month}/{datetime.now().day}"
|
mounth = f"{datetime.now().month:02d}"
|
||||||
|
day = f"{datetime.now().day:02d}"
|
||||||
|
directory = (
|
||||||
|
f"/var/spool/asterisk/monitor/{datetime.now().year}/{mounth}/{day}"
|
||||||
|
)
|
||||||
tree = {}
|
tree = {}
|
||||||
if config.DEBUG:
|
if config.DEBUG:
|
||||||
logging.info(f"Scanning directory: {directory}")
|
logging.info(f"Scanning directory: {directory}")
|
||||||
|
|||||||
Reference in New Issue
Block a user