[asterisk-bugs] [Asterisk 0014122]: [patch] Macro execution doesn't get to "h" extension

Asterisk Bug Tracker noreply at bugs.digium.com
Wed Feb 11 14:54:24 CST 2009


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=14122 
====================================================================== 
Reported By:                wetwired
Assigned To:                Corydon76
====================================================================== 
Project:                    Asterisk
Issue ID:                   14122
Category:                   Applications/app_macro
Reproducibility:            always
Severity:                   block
Priority:                   normal
Status:                     ready for testing
Target Version:             1.4.24
Asterisk Version:           1.4.23-rc3 
Regression:                 Yes 
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
====================================================================== 
Date Submitted:             2008-12-22 06:13 CST
Last Modified:              2009-02-11 14:54 CST
====================================================================== 
Summary:                    [patch] Macro execution doesn't get to  "h"
extension
Description: 
In asterisk-1.4.23-rc3 (and in SVN 1.4 branch) execution of macro context
interrupted by hangup never gets to "h" context defined by "catch h =>".
Instead of this, execution returns to "h" extension of calling context. In
asterisk-1.4.23-rc2 and earlier, execution was finishing in macro "catch h
=>" branch.
====================================================================== 

---------------------------------------------------------------------- 
 (0099934) svnbot (reporter) - 2009-02-11 14:54
 http://bugs.digium.com/view.php?id=14122#c99934 
---------------------------------------------------------------------- 
Repository: asterisk
Revision: 174885

U   branches/1.4/apps/app_macro.c
U   branches/1.4/main/pbx.c

------------------------------------------------------------------------
r174885 | tilghman | 2009-02-11 14:54:19 -0600 (Wed, 11 Feb 2009) | 13
lines

Restore a behavior that was recently changed, when we fixed issue
http://bugs.digium.com/view.php?id=13962
and
issue http://bugs.digium.com/view.php?id=13363 (related to issue
http://bugs.digium.com/view.php?id=6176).  When a hangup occurs during a
Macro
execution in earlier 1.4, the h extension would execute within the Macro
context, whereas it was always supposed to execute only within the main
context
(where Macro was called).  So this fix checks for an "h" extension in the
deepest macro context where a hangup occurred; if it exists, that "h"
extension
executes, otherwise the main context "h" is executed.
(closes issue http://bugs.digium.com/view.php?id=14122)
 Reported by: wetwired
 Patches: 
       20090210__bug14122.diff.txt uploaded by Corydon76 (license 14)
 Tested by: andrew

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

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

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-02-11 14:54 svnbot         Checkin                                      
2009-02-11 14:54 svnbot         Note Added: 0099934                          
======================================================================




More information about the asterisk-bugs mailing list