[Home]

Summary:ASTERISK-03366: [request] Parameterized CDRs
Reporter:Andrey S Pankov (casper)Labels:
Date Opened:2005-01-27 12:43:44.000-0600Date Closed:2011-06-07 14:04:43
Priority:MajorRegression?No
Status:Closed/CompleteComponents:Core/NewFeature
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:
Description:It would be nice to have "parametrized" custom cdr records like e.g. in GnuGK. Here is a quote from their manual
(http://www.gnugk.org/gnugk-manual-4.html):

CDRString=%s|%g|%u|%{Calling-Station-Id} %{Called-Station-Id}|%d|%c
Default: N/A

If StandardCDRFormat is disabled (0) or not specified at all, this paramterized string instructs the gatekeeper how to build a custom CDRs. Parameters are specified using % character and can be one letter (like %n) or longer (like %{CallId}). Any remaining characters that are not parameter names are simply copied to a final CDR string. The following parameters are recognized:

   * %g - gatekeeper name
   * %n - call number (not unique after gatekeeper restart)
   * %d - call duration (seconds)
   * %c - Q.931 disconnect cause (decimal integer)
   * %s - unique (for this gatekeeper) session identifier
(Acct-Session-Id)
   * %u - H.323 ID of the calling party
   * %{CallId} - H.323 call identifier (16 hex 8-bit digits)
   * %{ConfId} - H.323 conference identifier (16 hex 8-bit digits)
   * %{setup-time} - timestamp string for Q.931 Setup message
   * %{connect-time} - timestamp string for a call connected event
   * %{disconnect-time} - timestamp string for a call disconnect event
   * %{caller-ip} - signaling IP addres of the caller
   * %{caller-port} - signaling port of the caller
   * %{callee-ip} - signaling IP addres of the called party
   * %{callee-port} - signaling port of the called party
   * %{src-info} - a colon separated list of source aliases
   * %{dest-info} - a colon separated list of destination aliases
   * %{Calling-Station-Id} - calling party number
   * %{Called-Station-Id} - called party number (rewritten)
   * %{Dialed-Number} - dialed number (as received from the calling party)
Comments:By: Tilghman Lesher (tilghman) 2005-01-27 12:46:44.000-0600

Moved from ASTERISK-3356, as the feature request was unrelated.

By: Clod Patry (junky) 2005-02-27 21:57:32.000-0600

Like ASTERISK-3366 and ASTERISK-3515 are now closed.
can we close that bug too?

By: Andrey S Pankov (casper) 2005-02-28 10:02:32.000-0600

The idea is documented in README.cdr under cdr_csv2 section, but this module still is not in CVS.

By: Brian West (bkw918) 2005-02-28 10:07:26.000-0600

The concept is in CVS as of now.  You can ake cdr_csv2 and do what you wish with it.

By: Andrey S Pankov (casper) 2005-02-28 11:19:52.000-0600

OK, let's close this bug...