Module: sems Branch: master Commit: a40fc7f991d28416118166930e852a652a63a395 URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sems/?a=commit;h=a40fc7f991d28416118166930e852a652a63a395
Author: Stefan Sayer <[email protected]> Committer: Stefan Sayer <[email protected]> Date: Fri Sep 16 19:25:22 2011 +0200 sbc: added CDR generation documentation --- apps/sbc/etc/transparent.sbcprofile.conf | 6 +++++ doc/Readme.sbc.txt | 34 +++++++++++++++++++++++++++++- doc/Readme.syslog_cdr.txt | 16 ++++++++++++++ 3 files changed, 55 insertions(+), 1 deletions(-) diff --git a/apps/sbc/etc/transparent.sbcprofile.conf b/apps/sbc/etc/transparent.sbcprofile.conf index 1b9ed90..eaf87b4 100644 --- a/apps/sbc/etc/transparent.sbcprofile.conf +++ b/apps/sbc/etc/transparent.sbcprofile.conf @@ -69,6 +69,12 @@ #prepaid_uuid=$H(P-Caller-Uuid) #prepaid_acc_dest=$H(P-Acc-Dest) +## CDR +#enable_cdr=yes +#cdr_module=cdr +#prepaid_uuid=$H(P-Caller-Uuid) +#prepaid_acc_dest=$H(P-Acc-Dest) + ## session timer: #enable_session_timer=yes # if session_expires is not configured here, diff --git a/doc/Readme.sbc.txt b/doc/Readme.sbc.txt index c2cc05b..8e3460d 100644 --- a/doc/Readme.sbc.txt +++ b/doc/Readme.sbc.txt @@ -24,7 +24,7 @@ Features o SIP Session Timers o call timer o prepaid accounting - + o CDR generation SBC Profiles ------------ @@ -402,6 +402,38 @@ points for integration into custom billing systems. Parallel call limits can be implemented by implementing an account specific limit to the accounting module. +CDR generation +-------------- +CDR generation can be enabled with the enable_cdr option. + +For writing CDRs, a separate module is used. This allows to plug several types +of CDR generation modules. The accounting module is selected with the +cdr_module option. + +A syslog_cdr module is available, which writes CDRs to syslog(3) to be processed +by standard syslog utils, e.g. syslog-ng. + +Available in the CDR are + - A leg local tag + - Call-ID + - From Tag (remote tag A leg) + - To Tag (remote tag B leg) + - start TS + - connect TS (0 if not connected) + - end TS (0 if not connected) + +Additionally, values may be configured in the profile to pass to CDR generation; all +values starting with "cdr_" are passed to the CDR generation. + + Example: + enable_cdr=yes + cdr_module=cdr + cdr_Calling-Station-Id=$fU + cdr_Called-Station-Id=$tU + cdr_Sip-From-Tag=$ft + +See also syslog_cdr module documentation. + Refusing calls -------------- diff --git a/doc/Readme.syslog_cdr.txt b/doc/Readme.syslog_cdr.txt new file mode 100644 index 0000000..9f58f66 --- /dev/null +++ b/doc/Readme.syslog_cdr.txt @@ -0,0 +1,16 @@ +syslog CDR generation (e.g. for SBC) +------------------------------------ + +This module implements the "cdr" DI interface to generate CDRs and write them in CSV +format to syslog. + +The CDR is stored in memory until the call is ended. + + +The CSV format is: + A leg local tag,Call-ID,From Tag,To Tag,start TS,connect TS,end TS, (...) + +Where (...) is all further values as configured in the profile (cdr_*) in alphabetical +order. + + _______________________________________________ Semsdev mailing list [email protected] http://lists.iptel.org/mailman/listinfo/semsdev
