[asterisk-bugs] [Asterisk 0017601]: No CDRs after Goto

Asterisk Bug Tracker noreply at bugs.digium.com
Thu Jul 8 17:00:38 CDT 2010


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=17601 
====================================================================== 
Reported By:                Postkonform
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   17601
Category:                   CDR/General
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     feedback
Asterisk Version:           1.6.2.9 
JIRA:                       SWP-1828 
Regression:                 No 
Reviewboard Link:            
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
====================================================================== 
Date Submitted:             2010-07-07 16:08 CDT
Last Modified:              2010-07-08 17:00 CDT
====================================================================== 
Summary:                    No CDRs after Goto
Description: 
When using the Goto app no CDR is written if the call was answered. 
If the call fails or is not answered a CDR is written.

We use the AMI to check a self made prepaid deposit if enough credit is
left. If so we use the Redirect action to redirect the channel to another
context named initCall where a Dial app establishes the call, so we can not
use the Gosub app where this problem does not occur (The Redirect action
seems to use Goto). 

We tested it without the AMI. In this case we used the Goto directly to
send incoming calls to the initCall context and the same error occurs. If
we use Gosub it does not occur. 

Another interesting thing could be, that if we redirect to another context
where a Playback app will be started a CDR is written (in our case this
will happen if no credit is left) 

The CDR is neither written to CSV nor to MySQL.
====================================================================== 

---------------------------------------------------------------------- 
 (0124367) Postkonform (reporter) - 2010-07-08 17:00
 https://issues.asterisk.org/view.php?id=17601#c124367 
---------------------------------------------------------------------- 
An answered call is, if the bridge between two channels was established. So
if for example I call an extension and the other side accepts the call, the
connection is established and then the CDR is saved with disposition
ANSWERED, otherwise if the call was not accepted it is NO ANSWER, if the
call was rejected it is FAILED and if the other extension is busy its BUSY.


Yes, unanswered calls are also logged. All calls should be logged. But the
CDR is only written in case of NO ANSWER and FAILED (BUSY was not tested
yet). If a bridge was established the CDR is not written. 

This is an CDR what is written if disposition is NO ANSWER
calldate 2010-07-08 22:23:02 
clid  
src  2
dst  s
dcontext initCall  
channel  SIP/222-00000003
dstchannel  SIP/111-00000004
lastapp  Dial
lastdata  SIP/111,,M(Timeout)
duration  4
billsec  0
disposition NO ANSWER 
amaflags 3
accountcode  222
uniqueid  1278613382.3 
userfield  

Expected would be the same for an answered call, except disposition =
ANSWERED and billsec > 0 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2010-07-08 17:00 Postkonform    Note Added: 0124367                          
======================================================================




More information about the asterisk-bugs mailing list