[Home]

Summary:ASTERISK-02380: Incorrect Destination written in CDR when Macro() used with Goto()command
Reporter:Dmytro Mishchenko (arkadia)Labels:
Date Opened:2004-09-10 08:46:51Date Closed:2008-01-15 15:07:11.000-0600
Priority:MinorRegression?No
Status:Closed/CompleteComponents:Core/General
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:
Description:When the following dial plan used:

[somecontext]
exten => 13802,1,Macro(simple)
exten => 13802,2,dial(iax2/host/playback||S(10)r)
exten => 13802,3,congestion

[macro-simple]
exten => s,1,Noop
exten => s,2,goto(end,1)
exten => end,1,Noop

When call teminated due to S(10) option in 10 seconds, in CDR we have:
"","","end","macro-simple","",........

Instead of "end" "13802" should be written in dst field.
Thats critical when billing is done based on destination number and billable seconds.

****** ADDITIONAL INFORMATION ******

Tested with 2 moths old version and with CVS-HEAD-09/10/04
RH,Suse Linux.
Bug happens with cdr_csv and cdr_mysql.
Comments:By: Dmytro Mishchenko (arkadia) 2004-09-10 08:48:53

when call interrupted before 10 seconds is over CDR written correctly.

By: Mark Spencer (markster) 2004-09-10 09:18:18

Please read the instructions for the bug tracker, especially the part regarding "severity" before placing any further bugs.  Thanks.

By: Mark Spencer (markster) 2004-09-10 09:39:38

Fixed in CVS

By: Digium Subversion (svnbot) 2008-01-15 15:07:11.000-0600

Repository: asterisk
Revision: 3758

U   trunk/cdr.c

------------------------------------------------------------------------
r3758 | markster | 2008-01-15 15:07:10 -0600 (Tue, 15 Jan 2008) | 2 lines

Handle macros in the CDR properly (bug ASTERISK-2380)

------------------------------------------------------------------------

http://svn.digium.com/view/asterisk?view=rev&revision=3758