[asterisk-bugs] [JIRA] Closed: (ASTERISK-19292) New "dialplan remove context" and modification of "dialplan add include"
Digium Subversion (JIRA)
noreply at issues.asterisk.org
Tue Jul 31 15:07:21 CDT 2012
[ https://issues.asterisk.org/jira/browse/ASTERISK-19292?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Digium Subversion closed ASTERISK-19292.
----------------------------------------
Resolution: Fixed
> New "dialplan remove context" and modification of "dialplan add include"
> ------------------------------------------------------------------------
>
> Key: ASTERISK-19292
> URL: https://issues.asterisk.org/jira/browse/ASTERISK-19292
> Project: Asterisk
> Issue Type: New Feature
> Security Level: None
> Components: PBX/pbx_config
> Affects Versions: SVN
> Reporter: Andrey Solovyev
> Severity: Trivial
> Attachments: dialplan_add_include.patch, dialplan_remove_context.patch
>
>
> 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 upload both patches against the trunk.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the asterisk-bugs
mailing list