Module: kamailio
Branch: master
Commit: 60086f1108ac199d4db4453c2c14865e2e16022c
URL: 
https://github.com/kamailio/kamailio/commit/60086f1108ac199d4db4453c2c14865e2e16022c

Author: Xenofon Karamanos <22965395+xkara...@users.noreply.github.com>
Committer: Henning Westerholt <h...@gilawa.com>
Date: 2025-06-06T15:43:16+02:00

file_out: Add debug function

---

Modified: src/modules/file_out/types.c
Modified: src/modules/file_out/types.h

---

Diff:  
https://github.com/kamailio/kamailio/commit/60086f1108ac199d4db4453c2c14865e2e16022c.diff
Patch: 
https://github.com/kamailio/kamailio/commit/60086f1108ac199d4db4453c2c14865e2e16022c.patch

---

diff --git a/src/modules/file_out/types.c b/src/modules/file_out/types.c
index 5b9a62112f4..1b5ffc4c6cb 100644
--- a/src/modules/file_out/types.c
+++ b/src/modules/file_out/types.c
@@ -140,3 +140,13 @@ int fo_file_properties_destroy(fo_file_properties_t *fp)
        }
        return 1;
 }
+
+int fo_file_properties_print(const fo_file_properties_t file_prop)
+{
+       LM_DBG("Base filename: %s\n", file_prop.fo_base_filename.s);
+       LM_DBG("Prefix: %s\n", file_prop.fo_prefix.s);
+       LM_DBG("Extension: %s\n", file_prop.fo_extension.s);
+       LM_DBG("Interval: %d\n", file_prop.fo_interval_seconds);
+       LM_DBG("Stored timestamp: %ld\n", file_prop.fo_stored_timestamp);
+       return 1;
+}
diff --git a/src/modules/file_out/types.h b/src/modules/file_out/types.h
index 6140e4ff111..940c6f7476b 100644
--- a/src/modules/file_out/types.h
+++ b/src/modules/file_out/types.h
@@ -66,5 +66,6 @@ typedef struct fo_file_properties
 } fo_file_properties_t;
 
 int fo_file_properties_destroy(fo_file_properties_t *fp);
+int fo_file_properties_print(const fo_file_properties_t file_prop);
 
 #endif

_______________________________________________
Kamailio - Development Mailing List -- sr-dev@lists.kamailio.org
To unsubscribe send an email to sr-dev-le...@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!

Reply via email to