[asterisk-bugs] [Asterisk 0013263]: NoCDR does not work as expected in latest SVN

Asterisk Bug Tracker noreply at bugs.digium.com
Mon Aug 11 15:39:42 CDT 2008


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=13263 
====================================================================== 
Reported By:                brainy
Assigned To:                murf
====================================================================== 
Project:                    Asterisk
Issue ID:                   13263
Category:                   CDR/General
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     assigned
Asterisk Version:           SVN 
SVN Branch (only for SVN checkouts, not tarball releases):  1.4  
SVN Revision (number only!): 135949 
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             2008-08-09 03:11 CDT
Last Modified:              2008-08-11 15:39 CDT
====================================================================== 
Summary:                    NoCDR does not work as expected in latest SVN
Description: 
We are using NoCDR to not record incoming calls. With the latest SVN it
doesnt work anymore as expected since there is a CDR recorded but not with
all details:

Example (with NoCDR in the dialrule):
   calldate: 2008-08-09 10:14:07
       clid:
        src:
        dst: s
   dcontext: internal
    channel: SIP/v1941001-08381800
 dstchannel:
    lastapp:
   lastdata:
   duration: 6
    billsec: 6
disposition: ANSWERED
   amaflags: 3
accountcode:
   uniqueid:
  userfield:
         id: 22876
       bill: 1
   exported: 0

and without NoCDR (the full entry is generated):
   calldate: 2008-08-09 10:13:24
       clid: "anonymous" <anonymous>
        src: anonymous
        dst: 4989xxxxxxxx
   dcontext: call
    channel: SIP/80.237.199.41-082bc1e8
 dstchannel: SIP/v1941001-08375e00
    lastapp: Dial
   lastdata: SIP/v1941001/498938539262999
   duration: 6
    billsec: 6
disposition: ANSWERED
   amaflags: 3
accountcode:
   uniqueid:
  userfield:
         id: 22875
       bill: 0
   exported: 0


====================================================================== 

---------------------------------------------------------------------- 
 (0091325) murf (administrator) - 2008-08-11 15:39
 http://bugs.digium.com/view.php?id=13263#c91325 
---------------------------------------------------------------------- 
This is very interesting. NoCDR() used to (in 1.2) just remove the cdr
struct from the channel. It would then be replaced with a new, freshly
created cdr struct automatically, usually, by the pbx engine. I replaced
this with code that sets the  AST_CDR_FLAG_POST_DISABLED flag. With this
flag set, the detach/post mechanism will not post the CDR.

So, you are doing something else with the CDR. Please show relevant
dialplan code that does the NoCDR() call, and subsequent calls. 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2008-08-11 15:39 murf           Note Added: 0091325                          
======================================================================




More information about the asterisk-bugs mailing list