[asterisk-bugs] [Asterisk 0012694]: [patch] Bad disposition on originated IAX2 calls

Asterisk Bug Tracker noreply at bugs.digium.com
Wed Nov 19 14:11:34 CST 2008


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=12694 
====================================================================== 
Reported By:                yraber
Assigned To:                murf
====================================================================== 
Project:                    Asterisk
Issue ID:                   12694
Category:                   Applications/app_cdr
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     ready for testing
Asterisk Version:           1.4.19 
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             2008-05-21 02:43 CDT
Last Modified:              2008-11-19 14:11 CST
====================================================================== 
Summary:                    [patch] Bad disposition on originated IAX2 calls
Description: 
When using asterisk manager or a call files to originate a IAX2 call,
disposition in cdr is always FAILED on unanswered calls (BUSY, NO ANSWER or
FAILED).

* I was able to reproduce this with asterisk manager and call files, it
makes no difference.
* The problem does not appear when originating to a SIP trunk.
* The problem does not appear if the call is externally originated (a SIP
phone i.e.).

I've attached a IAX debug for the simplest case I could think about :
originating a call with a call files, and the called line was busy on
purpose. This resulted in a FAILED disposition in the CDR, who should
obviously be BUSY.
====================================================================== 

---------------------------------------------------------------------- 
 (0095096) murf (administrator) - 2008-11-19 14:11
 http://bugs.digium.com/view.php?id=12694#c95096 
---------------------------------------------------------------------- 
OK, I think I understand what's going on (or, in this case, NOT going on)!

The routine, ast_cdr_disposition() was testing and setting the CDR if the
cause was BUSY, but nothing was getting done for cause NOANSWER, which is

set in the __ast_request_and_dial() routine.

So, along with file's IAX fix, I've uploaded a patch to make
ast_cdr_disposition
to the right thing. I tested it on my setup, and it turns FAIL to NO
ANSWER, which makes it worth testing out. See the attached patch, 
12694.2nd.diff 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2008-11-19 14:11 murf           Note Added: 0095096                          
======================================================================




More information about the asterisk-bugs mailing list