[asterisk-bugs] [Asterisk 0018480]: [patch] Contexts with a 'switch' statement in a 's' extension adds MSet to the beginning of the Context

Asterisk Bug Tracker noreply at bugs.digium.com
Mon Feb 14 00:54:09 CST 2011


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=18480 
====================================================================== 
Reported By:                nivek
Assigned To:                tilghman
====================================================================== 
Project:                    Asterisk
Issue ID:                   18480
Category:                   PBX/pbx_ael
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     closed
Asterisk Version:           1.8.0 
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:             2010-12-15 13:54 CST
Last Modified:              2011-02-14 00:54 CST
====================================================================== 
Summary:                    [patch] Contexts with a 'switch' statement in a 's'
extension adds MSet to the beginning of the Context
Description: 
Creating a simple context with a switch statement in the 's' extension will
always add two Mset commands to the beginning of the context.

Changing the 's' to '_.' only gives one Mset.
======================================================================
Relationships       ID      Summary
----------------------------------------------------------------------
related to          0018729 [patch] [regression] Dial() and Queue()...
====================================================================== 

---------------------------------------------------------------------- 
 (0131910) svnbot (reporter) - 2011-02-14 00:54
 https://issues.asterisk.org/view.php?id=18480#c131910 
---------------------------------------------------------------------- 
Repository: asterisk
Revision: 307751

_U  trunk/
U   trunk/apps/app_dial.c
U   trunk/apps/app_queue.c

------------------------------------------------------------------------
r307751 | tilghman | 2011-02-14 00:54:08 -0600 (Mon, 14 Feb 2011) | 30
lines

Merged revisions 307750 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.8

........
  r307750 | tilghman | 2011-02-14 00:50:23 -0600 (Mon, 14 Feb 2011) | 23
lines
  
  Calling a gosub routine defined in AEL from Dial/Queue ceased to work.
  
  A bug in AEL did not distinguish between the "s" extension generated by
  AEL and an "s" extension that was required to exist by the chan_dahdi
  (or another channel) that was not supplied with a starting extension.
  Therefore, AEL made incorrect assumptions about what commands were
  permissable in the context.  This was fixed by making AEL generate a
  different extension name.  However, Dial and Queue make additional
  assumptions about the name of the default gosub extension.  Therefore,
  they needed to be brought into line with a "macro" rendered by AEL (as
  a gosub), without breaking traditional dialplans written without the
  aid of AEL.
  
  Related to (issue https://issues.asterisk.org/view.php?id=18480)
   Reported by: nivek
  
  (closes issue https://issues.asterisk.org/view.php?id=18729)
   Reported by: kkm
   Patches: 
         20110209__issue18729.diff.txt uploaded by tilghman (license 14)
         018729-dial-queue-gosub-try3.patch uploaded by kkm (license 888)
   Tested by: kkm
........

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

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

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2011-02-14 00:54 svnbot         Checkin                                      
2011-02-14 00:54 svnbot         Note Added: 0131910                          
======================================================================




More information about the asterisk-bugs mailing list