Summary:ASTERISK-14512: NoCDR generating records when called in 'h' exntesion
Reporter:Tomás Laureano Peralta Tormey (laureano)Labels:
Date Opened:2009-07-22 10:41:14Date Closed:2011-06-07 14:08:27
Versions:Frequency of
Environment:Attachments:( 0) asterisk_cli_log.txt
( 1) cdr_bugged_r127663.csv
( 2) cdr_ok_r127560.csv
( 3) extensions.conf
( 4) freepbx_macro_hanupcall.txt
Description:Executing ResetCDR(w) followed by NoCDR() will generate two CDRs: the first with valid information about the call and the second with values which seems to be the default ones for a CDR.
This issue appeared when we updated to Asterisk 1.4.22 a few days ago. It seems to be caused by the revision 127663 of the 1.4 branch. That revision fixed a similar issue with NoCDR (ASTERISK-1282907).

Tested with all the versions >= 1.4.22 of the 1.4 branch, including RC.

I can provide additional information and testing.

****** STEPS TO REPRODUCE ******

1. Generate a dialplan with the following context:

exten => _X.,1,Dial(IAX2/development/111)

exten => h,1,ResetCDR(w)
exten => h,n,NoCDR()
exten => h,n,Wait(5)
exten => h,n,NoCDR()
exten => h,n,Wait(5)
exten => h,n,Hangup()

2. Generate a call to the extension 111, for example. Wait to connect and then hangup.
3. Check the CDRs.


This example dialplan is currently based on the context created by the FreePBX software package.
Uploaded files area:
* asterisk_cli_log.txt: CLI output from the broken revision.
* cdr_ok_r127560.csv: A CSV CDR file generated by a working release.
* cdr_bugged_r127663.csv: A CSV CDR generated by the broken revision.
* freepbx_macro_hanupcall.txt: The macro used by FreePBX
* extensions.conf: A vainilla extensions file, with the context described; useful to reproduce the issue.
Comments:By: Paul Belanger (pabelanger) 2010-06-02 13:34:59

Please retest with the latest 1.4 branch, there have been some recent fixes to CDR.

By: Tomás Laureano Peralta Tormey (laureano) 2010-06-03 10:32:33

I'll retest this issue with the latest branch and let you know the results.

By: Paul Belanger (pabelanger) 2010-06-14 09:06:53

Suspended due to lack of activity. Please request a bug marshal in #asterisk-bugs on the IRC network irc.freenode.net to reopen the issue should you have the additional information requested.

Further information can be found at http://www.asterisk.org/developers/bug-guidelines