Summary:ASTERISK-12305: [patch] "Dialplan remove extension" Command cannot remove extension that matches specific CID
Reporter:Alisher (licedey)Labels:
Date Opened:2008-07-03 06:50:08Date Closed:2008-07-03 22:23:13
Versions:Frequency of
Environment:Attachments:( 0) 20080703__bug12980.diff.txt
Description:Using "Dialplan add extension" it's possible to add extension that matches CID
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 _.@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@internals-group_2"

Comments:By: Tilghman Lesher (tilghman) 2008-07-03 14:40:49

Patch uploaded and ready for testing.

By: Digium Subversion (svnbot) 2008-07-03 22:23:09

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 ASTERISK-12305)
Reported by: licedey
      20080703__bug12980.diff.txt uploaded by Corydon76 (license 14)
Tested by: Corydon76