[asterisk-bugs] [Asterisk 0017431]: [patch] dialplan add failing to create context if context doesn't exist

Asterisk Bug Tracker noreply at bugs.digium.com
Mon Apr 4 12:32:06 CDT 2011


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=17431 
====================================================================== 
Reported By:                leearcher
Assigned To:                kobaz
====================================================================== 
Project:                    Asterisk
Issue ID:                   17431
Category:                   Core/NewFeature
Reproducibility:            always
Severity:                   feature
Priority:                   normal
Status:                     assigned
Asterisk Version:           1.6.2.7 
JIRA:                       SWP-1659 
Regression:                 No 
Reviewboard Link:            
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
====================================================================== 
Date Submitted:             2010-06-01 02:54 CDT
Last Modified:              2011-04-04 12:32 CDT
====================================================================== 
Summary:                    [patch] dialplan add failing to create context if
context doesn't exist
Description: 
I was told that contexts will be created as needed when using the dialplan
add command but this doesn't seem to be the case.

dialplan add extension 1234,1,NoOp,hello into default Extension
'1234,1,NoOp,hello' added into 'default' context
    -- Added extension '1234' priority 1 to default (0x8e8f520)

dialplan add extension 1234,1,NoOp,hello into test Failed to add
'1234,1,NoOp,hello' extension into 'test' context

I've tried it with 1.6.1.20 and 1.6.2.7.
====================================================================== 

---------------------------------------------------------------------- 
 (0133353) svnbot (reporter) - 2011-04-04 12:32
 https://issues.asterisk.org/view.php?id=17431#c133353 
---------------------------------------------------------------------- 
Repository: asterisk
Revision: 312678

U   trunk/CHANGES
U   trunk/pbx/pbx_config.c

------------------------------------------------------------------------
r312678 | jrose | 2011-04-04 12:32:05 -0500 (Mon, 04 Apr 2011) | 11 lines

Makes 'dialplan add extension' create the specified context if it does not
already exist.

If the user invokes 'dialplan add extension' into a non-existing context,
the context will be created
and a message informing the user of the context being created will be
issued in cli.

(closes issue https://issues.asterisk.org/view.php?id=17431)
Reported by: leearcher
Patches:
      context_auto_create.diff uploaded by kobaz (license 834)
Tested by: leearcher, kobaz, jrose

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

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

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2011-04-04 12:32 svnbot         Checkin                                      
2011-04-04 12:32 svnbot         Note Added: 0133353                          
======================================================================




More information about the asterisk-bugs mailing list