debug11
This commit is contained in:
@@ -350,6 +350,9 @@ class CallHandler:
|
|||||||
|
|
||||||
directory = f"/var/spool/asterisk/monitor/{datetime.now().year}/{datetime.now().month}/{datetime.now().day}"
|
directory = f"/var/spool/asterisk/monitor/{datetime.now().year}/{datetime.now().month}/{datetime.now().day}"
|
||||||
tree = {}
|
tree = {}
|
||||||
|
if config.DEBUG:
|
||||||
|
logging.info(f"Scanning directory: {directory}")
|
||||||
|
logging.info(f"Client: {client}")
|
||||||
for root, _, files in os.walk(directory):
|
for root, _, files in os.walk(directory):
|
||||||
for file in files:
|
for file in files:
|
||||||
if (
|
if (
|
||||||
@@ -357,6 +360,8 @@ class CallHandler:
|
|||||||
and file.startswith("external")
|
and file.startswith("external")
|
||||||
and client in file
|
and client in file
|
||||||
):
|
):
|
||||||
|
if config.DEBUG:
|
||||||
|
logging.info(f"Found file: {file}")
|
||||||
file_path = os.path.join(root, file)
|
file_path = os.path.join(root, file)
|
||||||
try:
|
try:
|
||||||
file_duration = get_wav_duration(file_path)
|
file_duration = get_wav_duration(file_path)
|
||||||
|
|||||||
Reference in New Issue
Block a user