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

Asterisk Bug Tracker noreply at bugs.digium.com
Mon Aug 24 11:03:56 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:                   feature
Priority:                   normal
Status:                     assigned
Asterisk Version:           SVN 
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-24 11:03 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.
======================================================================
Relationships       ID      Summary
----------------------------------------------------------------------
related to          0013962 Blind transfer does not work upgrade to...
related to          0013363 [patch] Device Side transfer of a call ...
related to          0006176 [patch] Segfault in pbx_builtin_setvar_...
====================================================================== 

---------------------------------------------------------------------- 
 (0109525) tilghman (administrator) - 2009-08-24 11:03
 https://issues.asterisk.org/view.php?id=15623#c109525 
---------------------------------------------------------------------- 
The way Macro originally worked is the current method (that is, "h" is
executed in the main context from which Macro is called, never within the
Macro).  Because it has run out of the Macro context for the entire 1.4
series (a long running bug introduced in
https://issues.asterisk.org/view.php?id=6176), we decided that we would
put in some code that would allow it to continue working this way in 1.4,
but the correct behavior would exist in 1.6. 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-08-24 11:03 tilghman       Note Added: 0109525                          
======================================================================




More information about the asterisk-bugs mailing list