[asterisk-bugs] [Asterisk 0011970]: Usage of Goto() in an included context can cause unexpected behaviour

noreply at bugs.digium.com noreply at bugs.digium.com
Mon Feb 11 09:02:07 CST 2008


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=11970 
====================================================================== 
Reported By:                blitzrage
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   11970
Category:                   PBX/pbx_config
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
Asterisk Version:           1.4.17 
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             02-11-2008 08:49 CST
Last Modified:              02-11-2008 09:02 CST
====================================================================== 
Summary:                    Usage of Goto() in an included context can cause
unexpected behaviour
Description: 
I found this interesting little tidbit of usage behaviour yesterday when
writing some dialplan. Here is a simplified example of what I ran into:


[phones]

include => callControl
include => checkVoicemail

[callControl]
exten => preAuth,1,NoOp(well hello there)   ;   <-- this is what gets
matched when you do the Goto() from the checkVoicemail context.

[checkVoicemail]
exten => 8500,1,Goto(preAuth,1)

exten => preAuth,1,NoOp(this does not get hit as you might expect)
====================================================================== 

---------------------------------------------------------------------- 
 blitzrage - 02-11-08 09:02  
---------------------------------------------------------------------- 
I disagree with the usage of the word "feature" because I can't think of
any practical reason why this would ever be expected or useful in sane
dialplan practice (i.e. why you would ever intentionally do the Goto() to
some other part of the dialplan by *not* specifying the context).

I do agree this is not exactly a *bug* but Asterisk dialplan is already
daunting enough that very subtle things like this cause all sorts of grief
for users. Documentation is good, but I'm in favour of making some of these
kinds of issues a little more obvious to the user. 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
02-11-08 09:02  blitzrage      Note Added: 0082006                          
======================================================================




More information about the asterisk-bugs mailing list