[Home]

Summary:ASTERISK-15363: [patch] Local values not set within gosub
Reporter:Atis Lezdins (atis)Labels:
Date Opened:2009-12-23 12:17:12.000-0600Date Closed:2009-12-23 12:27:06.000-0600
Priority:MinorRegression?No
Status:Closed/CompleteComponents:Applications/app_stack
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:( 0) 20091223__issue16510.diff.txt
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@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@cdr_block_start:3] NoOp("SIP/90028-0216c660", "-(B)------ macro cdr_block_start(,5) -----------") in new stack

Comments:By: Atis Lezdins (atis) 2009-12-23 12:21:09.000-0600

Patch is fixing issue

By: Digium Subversion (svnbot) 2009-12-23 12:25:28.000-0600

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 ASTERISK-15363)
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

By: Digium Subversion (svnbot) 2009-12-23 12:26:48.000-0600

Repository: asterisk
Revision: 236301

_U  branches/1.6.0/
U   branches/1.6.0/apps/app_stack.c

------------------------------------------------------------------------
r236301 | tilghman | 2009-12-23 12:26:48 -0600 (Wed, 23 Dec 2009) | 14 lines

Merged revisions 236300 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
 r236300 | tilghman | 2009-12-23 12:25:27 -0600 (Wed, 23 Dec 2009) | 7 lines
 
 AGI may be invoked from outside the dialplan
 (closes issue ASTERISK-15363)
  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=236301

By: Digium Subversion (svnbot) 2009-12-23 12:26:57.000-0600

Repository: asterisk
Revision: 236302

_U  branches/1.6.1/
U   branches/1.6.1/apps/app_stack.c

------------------------------------------------------------------------
r236302 | tilghman | 2009-12-23 12:26:57 -0600 (Wed, 23 Dec 2009) | 14 lines

Merged revisions 236300 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
 r236300 | tilghman | 2009-12-23 12:25:27 -0600 (Wed, 23 Dec 2009) | 7 lines
 
 AGI may be invoked from outside the dialplan
 (closes issue ASTERISK-15363)
  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=236302

By: Digium Subversion (svnbot) 2009-12-23 12:27:06.000-0600

Repository: asterisk
Revision: 236303

_U  branches/1.6.2/
U   branches/1.6.2/apps/app_stack.c

------------------------------------------------------------------------
r236303 | tilghman | 2009-12-23 12:27:05 -0600 (Wed, 23 Dec 2009) | 14 lines

Merged revisions 236300 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
 r236300 | tilghman | 2009-12-23 12:25:27 -0600 (Wed, 23 Dec 2009) | 7 lines
 
 AGI may be invoked from outside the dialplan
 (closes issue ASTERISK-15363)
  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=236303