[asterisk-bugs] [Asterisk 0013972]: including same dial plan into 2 different contexts, produces different priorities

Asterisk Bug Tracker noreply at bugs.digium.com
Fri Nov 28 08:11:04 CST 2008


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=13972 
====================================================================== 
Reported By:                pabelanger
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   13972
Category:                   PBX/General
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
Asterisk Version:           1.6.0.1 
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             2008-11-25 22:19 CST
Last Modified:              2008-11-28 08:11 CST
====================================================================== 
Summary:                    including same dial plan into 2 different contexts,
produces different priorities
Description: 
I'll try my best to explain.

We are trying to create a context [Global1] that we reuse it a few other
contexts.  The problem is, when included in the first context, the
priorities are created properly.

However, when we call the next context including [Global1], the priorities
from [Global1] are dropped and over written by the context that included
it.
====================================================================== 

---------------------------------------------------------------------- 
 (0095594) coolmig (reporter) - 2008-11-28 08:11
 http://bugs.digium.com/view.php?id=13972#c95594 
---------------------------------------------------------------------- 
Well I think that in [Menu1] and [Menu2] contexts, to use 'n' extensions
you should start them with the '1' priority, as in any dialplan.

That would take you to this:

[Menu1]
include => Global1

exten => s,1(start),Answer
exten => s,n(restart),Background(digits/6)
exten => s,n,Background(digits/7)
exten => s,n,Background(digits/8)
exten => s,n,WaitExten(3)

exten => 1,1,Goto(Menu2,go,1)

[Menu2]
include => Global1

exten => s,1(start),Background(digits/5)
exten => s,n(restart),Background(digits/6)
exten => s,n,Background(digits/7)
exten => s,n,Background(digits/8)
exten => s,n,WaitExten(3)

If you put the extensions that way, the issue should be gone. 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2008-11-28 08:11 coolmig        Note Added: 0095594                          
======================================================================




More information about the asterisk-bugs mailing list