Hi all,
as announced quite a while ago, I finally checked in code that allows to
produce CDRs (Call Data Records) directly from SIP-Router and generate
logs accordingly.
The main code portion resides in modules_k/acc and provides a switch to
enable basic CDR generation including start time, end time, and
duration. Analogous to the existing logging approach, you may define an
extra parameter covering to-be-included dialog pseudo-variables that
must be assigned in the configuration script. The new code will take
care of transforming the basic and custom CDR fields into CDR logs at
the end of a dialog.
Speaking of dialogs: The implementation relies heavily on the dialog
module. It takes advantage of dialog variables introduces by Carsten
Bock and adds a few more features. Most notably, we had to change the
dialog callback signature to provide both request and response messages.
Having only one of them proved to be insufficient in certain cases; for
instance, a locally generated 408 returned a FAKED_REPLY, thus rendering
it impossible to access dialog variables through the PV framework. Other
modules using dialog callbacks have been updated along the commit,
third-party modules outside the repository will need to do so too (and
think about whether using the request or response is the Right Thing to do).
Due to the changes brought to the dialog module, I pushed the new acc
and dialog code into a separate branch called treimann/acc-cdr. Feel
free to give it a try by consulting the updated documentation and
suggesting (or, if it's good enough, implementing :) ) improvements. A
Kamailio 1.5 backport of the code has been in usage for quite some time
with us, so generally there shouldn't be any major logical flaws.
SIP-Router certainly needs more testing, however, so I'd be glad for any
feedback. My plan is to merge the code into master branch prior to the
3.2 feature freeze, unless significant objections arise.
Finally, big-time credits go to my co-worker Sven Knoblich who is the
main contributor of the code. He's been working on this stuff for the
past few months and dreams in CDRs by now.
Cheers,
--Timo
Hi, should async module be included directly in kamailio package (as
it ha.s no dependencies). BTW in the debs packages provided by
deb.kamailio.org repository the module is not present.
Thanks.
--
Iñaki Baz Castillo
<ibc(a)aliax.net>
Module: sip-router
Branch: 3.1
Commit: 2a080ba89d057ca5460d0df6d31c2d3d5dc6c9ce
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=2a080ba…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: Mon Aug 1 14:33:15 2011 +0200
.gitingnore: set root path for binary names
- some directories containing the binary name (e.g., kamailio like in
utils/kamctl/dbtext/kamailio/...) in path were ignored. Updated
.gitignore to use /kamailio and /ser which according to manual should
match on the root folder of GIT tree
(cherry picked from commit 285566bd31379ee4b6199f72c8c589a6b313bf07)
---
.gitignore | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/.gitignore b/.gitignore
index 6cdbafa..e076c44 100644
--- a/.gitignore
+++ b/.gitignore
@@ -10,8 +10,8 @@ modules.lst
# ignore dependency files
*.d
# ignore binary files and objects
-ser
-kamailio
+/ser
+/kamailio
*.so
*.so.*
*.o
@@ -38,4 +38,4 @@ utils/pdbt/pdbt
libiname.lst
*.dylib
# man pages
-*.7
\ No newline at end of file
+*.7