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

Asterisk Bug Tracker noreply at bugs.digium.com
Fri Jun 11 02:56:53 CDT 2010


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=17431 
====================================================================== 
Reported By:                leearcher
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   17431
Category:                   Core/NewFeature
Reproducibility:            always
Severity:                   feature
Priority:                   normal
Status:                     ready for testing
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:              2010-06-11 02:56 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.
====================================================================== 

---------------------------------------------------------------------- 
 (0123275) leearcher (reporter) - 2010-06-11 02:56
 https://issues.asterisk.org/view.php?id=17431#c123275 
---------------------------------------------------------------------- 
I've checked out trunk and tried it.  However it failed.

*CLI> dialplan add extension 999,1,NoOp,hello into default
Extension '999,1,NoOp,hello' added into 'default' context
*CLI>     -- Added extension '999' priority 1 to default (0xd790088)

*CLI> dialplan add extension 999,1,NoOp,hello into test
Extension 999 at test with priority 1 already exists
Command 'dialplan add extension 999,1,NoOp,hello into test' failed.

A dialplan show doesn't show the test context as it doesn't exist.  No
matter what I dialplan add I always get an 'already exists' message. 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2010-06-11 02:56 leearcher      Note Added: 0123275                          
======================================================================




More information about the asterisk-bugs mailing list