[asterisk-bugs] [Asterisk 0012980]: [patch] "Dialplan remove extension" Command cannot remove extension that matches specific CID

noreply at bugs.digium.com noreply at bugs.digium.com
Thu Jul 3 22:23:11 CDT 2008


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=12980 
====================================================================== 
Reported By:                licedey
Assigned To:                Corydon76
====================================================================== 
Project:                    Asterisk
Issue ID:                   12980
Category:                   Applications/General
Reproducibility:            always
Severity:                   feature
Priority:                   normal
Status:                     ready for testing
Asterisk Version:           1.4.21 
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             07-03-2008 06:50 CDT
Last Modified:              07-03-2008 22:23 CDT
====================================================================== 
Summary:                    [patch] "Dialplan remove extension" Command cannot
remove extension that matches specific CID
Description: 
Using "Dialplan add extension" it's possible to add extension that matches
CID
Example:
 CLI> Dialplan add extension _X./5000,1,App,Appdata into context 
--------------
dialplan add extension _./1984,1,NoOp,  into internals-group_2
dialplan add extension _./1985,1,NoOp,  into internals-group_2
--------------
"dialplan show internals-group_2" will show
'_.' =>           1. NoOp()                                    
[pbx_config]
'_.' =>           1. NoOp()                                    
[pbx_config]

However, "Dialplan remove extension" command cannot remove extension that
matches CID. The command "Dialplan remove extension _. at internals-group_2"
removes the first exte '_.' extension from the list which is matches 1984.


Currently it's not possible to do reversal of add extension by calling
"Dialplan remove extension _./1985 at internals-group_2"


====================================================================== 

---------------------------------------------------------------------- 
 svnbot - 07-03-08 22:23  
---------------------------------------------------------------------- 
Repository: asterisk
Revision: 127973

U   branches/1.4/include/asterisk/pbx.h
U   branches/1.4/main/pbx.c
U   branches/1.4/pbx/pbx_config.c

------------------------------------------------------------------------
r127973 | tilghman | 2008-07-03 22:23:06 -0500 (Thu, 03 Jul 2008) | 8
lines

Fix the 'dialplan remove extension' logic, so that it a) works with
cidmatch,
and b) completes contexts correctly when the extension is ambiguous.
(closes issue http://bugs.digium.com/view.php?id=12980)
 Reported by: licedey
 Patches: 
       20080703__bug12980.diff.txt uploaded by Corydon76 (license 14)
 Tested by: Corydon76

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

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

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
07-03-08 22:23  svnbot         Checkin                                      
07-03-08 22:23  svnbot         Note Added: 0089722                          
======================================================================




More information about the asterisk-bugs mailing list