[asterisk-bugs] [Asterisk 0011670]: hangupcause is always 0 if call made via call file fails

noreply at bugs.digium.com noreply at bugs.digium.com
Wed Jan 9 03:53:25 CST 2008


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=11670 
====================================================================== 
Reported By:                pep
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   11670
Category:                   PBX/General
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     feedback
Asterisk Version:           1.4.17 
SVN Branch (only for SVN checkouts, not tarball releases): N/A  
SVN Revision (number only!):  
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             01-03-2008 06:06 CST
Last Modified:              01-09-2008 03:53 CST
====================================================================== 
Summary:                    hangupcause is always 0 if call made via call file
fails
Description: 
Asterisk output gives this:
Channel 0/1, span 1 got hangup request, cause 28

So it is capturing the ISDN code but it is not being passed to the
hangupcause variable.


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

---------------------------------------------------------------------- 
 pep - 01-09-08 03:53  
---------------------------------------------------------------------- 
A call is generated by a call file which connects to the dialplan.
I have put in a failed extension to deal with failed calls and a NoOp
showing hangupcause gives 0.  The reason variable is also 0.

This is the console output:

[Jan  9 09:40:14] NOTICE[27965]: channel.c:3123 __ast_request_and_dial:
Unable to request channel Zap/g0/0175314
       > cdr_odbc: Query Successful!
    -- Executing [failed at callback:1] NoOp("OutgoingSpoolFailed", "0") in
new stack
    -- Executing [failed at callback:2] NoOp("OutgoingSpoolFailed", "0") in
new stack
  == Auto fallthrough, channel 'OutgoingSpoolFailed' status is 'UNKNOWN'
    -- Executing [h at callback:1] Hangup("OutgoingSpoolFailed", "") in new
stack
  == Spawn extension (callback, h, 1) exited non-zero on
'OutgoingSpoolFailed'
       > cdr_odbc: Query Successful!
[Jan  9 09:40:15] NOTICE[27965]: pbx_spool.c:341 attempt_thread: Call
failed to go through, reason (0) Call Failure (not BUSY, and not NO_ANSWER,
maybe Circuit busy or down?) 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
01-09-08 03:53  pep            Note Added: 0076543                          
======================================================================




More information about the asterisk-bugs mailing list