summaryrefslogtreecommitdiff
path: root/CHANGES
diff options
context:
space:
mode:
authorMark Michelson <mmichelson@digium.com>2012-07-31 19:57:21 +0000
committerMark Michelson <mmichelson@digium.com>2012-07-31 19:57:21 +0000
commit6c23a60f802e7708389b1a6463a40dc0500512bd (patch)
tree090e911b488d6c1bd7a2d926632bf7d3bad11f27 /CHANGES
parente5210366e45056e56c27c902ad63a479d5ae7005 (diff)
Add "dialplan remove context" and modify "dialplan add include"
From corruptor's review board posting: "I've noticed that we can remove particular extension from context with dialplan remove extension command but in order to remove all extensions in the context we should delete them on by one. I've created dialplan remove context command which uses ast_context_destroy to destroy the whole context with all extensions. I've created to functions for in pbx_config.c: handle_cli_dialplan_remove_context which actually removes context and complete_dialplan_remove_context which completes input. They are based on other similar functions and pretty trivial but I can be mistaken somewhere. "I've also modified dialplan add include <context2> into <context1>. I've made it similar dialplan add extension ... command. It creates <context1> if it doesn't exist and I've also modified complete_dialplan_add_include and removed check for existance of <context2> because we can include non-existent context into another one. (I usually include empty (non-existent) contexts in advance). Should we raise warning in this case as it's raised while reading extensions.conf? "I use those functions with AMI. I think manager commands should be created in addition to those CLI commands." I've addressed the latest comments on review board and have made some other coding guidelines-related cleanup. I also have modified the CHANGES file to mention these new commands. (closes issue ASTERISK-19292) reported by Andrey Solovyev Patches: dialplan_add_include.patch uploaded by Andrey Solovyev (license #5214) dialplan_remove_context.patch uploaded by Andrey Solovyev (license #5214) Review: https://reviewboard.asterisk.org/r/2042 git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@370644 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'CHANGES')
-rw-r--r--CHANGES7
1 files changed, 7 insertions, 0 deletions
diff --git a/CHANGES b/CHANGES
index 526427f4a..7d5e7fbc7 100644
--- a/CHANGES
+++ b/CHANGES
@@ -478,6 +478,13 @@ AMI (Asterisk Manager Interface)
CLI
-------------------
+ * The "dialplan add include" command has been modified to create context a context
+ if one does not already exist. For instance, "dialplan add include foo into bar"
+ will create context "bar" if it does not already exist.
+
+ * A "dialplan remove context" command has been added to remove a context from
+ the dialplan
+
* The "mixmonitor list <channel>" command will now show MixMonitor ID, and the
filenames of all running mixmonitors on a channel.