[asterisk-bugs] [Asterisk 0016510]: [patch] Local values not set within gosub

Asterisk Bug Tracker noreply at bugs.digium.com
Wed Dec 23 12:25:29 CST 2009


The following issue has been RESOLVED. 
====================================================================== 
https://issues.asterisk.org/view.php?id=16510 
====================================================================== 
Reported By:                atis
Assigned To:                tilghman
====================================================================== 
Project:                    Asterisk
Issue ID:                   16510
Category:                   Applications/app_stack
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     resolved
Asterisk Version:           1.6.1.12 
JIRA:                        
Regression:                 No 
Reviewboard Link:            
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
Resolution:                 fixed
Fixed in Version:           
====================================================================== 
Date Submitted:             2009-12-23 12:17 CST
Last Modified:              2009-12-23 12:25 CST
====================================================================== 
Summary:                    [patch] Local values not set within gosub
Description: 
Originate calls to SIP device and upon answer connects other side to
"Application: AGI".

AGI uses GOSUB to "cdr_block_start" with two arguments.

Within "cdr_block_start" i can observe that both ARG1 and ARG2 are set
correctly, however named local variables that are generated from AEL are
not:

DEBUG[1713] app_stack.c: Setting 'ARG1' to 'trunk'
DEBUG[1713] app_stack.c: Setting 'ARG2' to '5'
VERBOSE[1713] res_agi.c: <SIP/90028-0216c660>AGI Tx >> 100 result=0
Trying...
DEBUG[1713] pbx.c: Launching 'Set'
VERBOSE[1713] pbx.c:     -- Executing [s at cdr_block_start:2]
Set("SIP/90028-0216c660", "LOCAL(number)=5") in new stack
DEBUG[1713] pbx.c: Launching 'NoOp'
VERBOSE[1713] pbx.c:     -- Executing [s at cdr_block_start:3]
NoOp("SIP/90028-0216c660", "-(B)------ macro cdr_block_start(,5)
-----------") in new stack


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

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-12-23 12:25 svnbot         Status                   ready for testing =>
assigned
2009-12-23 12:25 svnbot         Status                   assigned => resolved
2009-12-23 12:25 svnbot         Resolution               open => fixed       
======================================================================




More information about the asterisk-bugs mailing list