[asterisk-bugs] [Asterisk 0011743]: [patch] agi RECORD FILE incorrect result code on hangup

noreply at bugs.digium.com noreply at bugs.digium.com
Fri Jan 11 13:26:25 CST 2008


The following issue has been ASSIGNED. 
====================================================================== 
http://bugs.digium.com/view.php?id=11743 
====================================================================== 
Reported By:                davevg
Assigned To:                file
====================================================================== 
Project:                    Asterisk
Issue ID:                   11743
Category:                   Resources/res_agi
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     assigned
Asterisk Version:           SVN 
SVN Branch (only for SVN checkouts, not tarball releases):  1.4  
SVN Revision (number only!): 98271 
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             01-11-2008 13:05 CST
Last Modified:              01-11-2008 13:26 CST
====================================================================== 
Summary:                    [patch] agi RECORD FILE incorrect result code on
hangup
Description: 
If you hangup while an AGI is performing a RECORD FILE, it returns a result
code of 0 instead of -1.  

AGI Rx << RECORD FILE /tmp/test ulaw # -1 0 1 s=3
    -- <SIP/1223-098cdb80> Playing 'beep' (language 'en')
AGI Tx >> 200 result=0 (hangup) endpos=8160

All of the other commands appear to exit with -1 on hangup.

This affects both trunk and 1.4.  I didn't check 1.2
====================================================================== 

---------------------------------------------------------------------- 
 svnbot - 01-11-08 13:26  
---------------------------------------------------------------------- 
Repository: asterisk
Revision: 98317

U   branches/1.4/res/res_agi.c

------------------------------------------------------------------------
r98317 | file | 2008-01-11 13:26:22 -0600 (Fri, 11 Jan 2008) | 6 lines

If the channel is hungup during RECORD FILE send a result code of -1 to be
uniform with everything else.
(closes issue http://bugs.digium.com/view.php?id=11743)
Reported by: davevg
Patches:
      res_agi.diff uploaded by davevg (license 209)

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

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

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
01-11-08 13:26  svnbot         Checkin                                      
01-11-08 13:26  svnbot         Note Added: 0076732                          
01-11-08 13:26  svnbot         Status                   new => assigned     
01-11-08 13:26  svnbot         Assigned To               => file            
======================================================================




More information about the asterisk-bugs mailing list