[asterisk-bugs] [Asterisk 0015623]: [patch] 'h' extension never reach in a macro

Asterisk Bug Tracker noreply at bugs.digium.com
Fri Aug 21 09:22:38 CDT 2009


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=15623 
====================================================================== 
Reported By:                sberney
Assigned To:                lmadsen
====================================================================== 
Project:                    Asterisk
Issue ID:                   15623
Category:                   Applications/app_macro
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     assigned
Asterisk Version:           1.6.0.10 
Regression:                 No 
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
====================================================================== 
Date Submitted:             2009-07-31 07:05 CDT
Last Modified:              2009-08-21 09:22 CDT
====================================================================== 
Summary:                    [patch] 'h' extension never reach in a macro
Description: 
Same than issue 14122 but on version 1.6.0.10, we are unable to reach "h"
extension in a macro.

Sample dialplan :

[testing]
exten => 100, 1, Answer
exten => 100, n, Macro(test)

[macro-test]
exten => s, 1, Wait(2)
exten => s, n, Hangup
exten => h, 1, NoOp("Finish !")

Result in CLI is :

    -- Executing [100 at testing:1] Answer("SIP/test-b786f960", "") in new
stack
    -- Executing [100 at testing:2] Macro("SIP/test-b786f960", "test") in new
stack
    -- Executing [s at macro-test:1] Wait("SIP/test-b786f960", "2") in new
stack
    -- Executing [s at macro-test:2] Hangup("SIP/test-b786f960", "") in new
stack
  == Spawn extension (macro-test, s, 2) exited non-zero on
'SIP/test-b786f960' in macro 'test'
  == Spawn extension (testing, 100, 2) exited non-zero on
'SIP/test-b786f960'

And never reach "h" extension.
====================================================================== 

---------------------------------------------------------------------- 
 (0109448) tilghman (administrator) - 2009-08-21 09:22
 https://issues.asterisk.org/view.php?id=15623#c109448 
---------------------------------------------------------------------- 
The "h" extension is supposed to be called in the original context from
where Macro was called, not within the macro itself.  True, it did this in
the past, but that was a bug. 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-08-21 09:22 tilghman       Note Added: 0109448                          
======================================================================




More information about the asterisk-bugs mailing list