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

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


A NOTE has been added to this issue. 
====================================================================== 
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:                     ready for testing
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:              
====================================================================== 
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


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

---------------------------------------------------------------------- 
 (0115735) svnbot (reporter) - 2009-12-23 12:25
 https://issues.asterisk.org/view.php?id=16510#c115735 
---------------------------------------------------------------------- 
Repository: asterisk
Revision: 236300

U   trunk/apps/app_stack.c

------------------------------------------------------------------------
r236300 | tilghman | 2009-12-23 12:25:28 -0600 (Wed, 23 Dec 2009) | 7
lines

AGI may be invoked from outside the dialplan
(closes issue https://issues.asterisk.org/view.php?id=16510)
 Reported by: atis
 Patches: 
       20091223__issue16510.diff.txt uploaded by tilghman (license 14)
 Tested by: atis

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

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

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-12-23 12:25 svnbot         Checkin                                      
2009-12-23 12:25 svnbot         Note Added: 0115735                          
======================================================================




More information about the asterisk-bugs mailing list