]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
add config file and tweak modules.conf.in for mod_cdr_mongodb
authorDaniel Swarbrick <daniel@seventhsignal.de>
Wed, 7 Sep 2011 21:57:44 +0000 (23:57 +0200)
committerDaniel Swarbrick <daniel@seventhsignal.de>
Wed, 7 Sep 2011 21:57:44 +0000 (23:57 +0200)
build/modules.conf.in
conf/autoload_configs/cdr_mongodb.conf.xml [new file with mode: 0644]

index ef3e7eb5bd013edc56197e012ee3bafda373d3de..9f5cfa5eb711dbc0c3385eacb7d9cf4d2a732afa 100644 (file)
@@ -81,6 +81,7 @@ event_handlers/mod_event_socket
 #event_handlers/mod_event_zmq
 event_handlers/mod_cdr_csv
 event_handlers/mod_cdr_sqlite
+#event_handlers/mod_cdr_mongodb
 #event_handlers/mod_cdr_pg_csv
 #event_handlers/mod_radius_cdr
 #event_handlers/mod_erlang_event
diff --git a/conf/autoload_configs/cdr_mongodb.conf.xml b/conf/autoload_configs/cdr_mongodb.conf.xml
new file mode 100644 (file)
index 0000000..ce366d1
--- /dev/null
@@ -0,0 +1,13 @@
+<configuration name="cdr_mongodb.conf" description="MongoDB CDR logger">
+  <settings>
+    <!-- Hostnames and IPv6 addrs not supported (yet) -->
+    <param name="host" value="127.0.0.1"/>
+    <param name="port" value="27017"/>
+
+    <!-- Namespace format is database.collection -->
+    <param name="namespace" value="test.cdr"/>
+
+    <!-- If true, create CDR for B-leg of call (default: true) -->
+    <param name="log-b-leg" value="false"/>
+  </settings>
+</configuration>