summaryrefslogtreecommitdiff
path: root/main
diff options
context:
space:
mode:
authorJonathan Rose <jrose@digium.com>2014-07-03 17:20:00 +0000
committerJonathan Rose <jrose@digium.com>2014-07-03 17:20:00 +0000
commit04a912330985d1197e58209b1ec98774e6cce68e (patch)
tree48c44ef9d1e6581102ccab67ae15fac370a35ec4 /main
parentdbec5e0d8d2d8c51e14f912354d12e1f713b6077 (diff)
pbx_config: Add manager actions to add/remove extensions
Adds two new manager commands to pbx_config - DialplanExtensionAdd and DialplanExtensionRemove which allow manager users to create and delete extensions respectively. Review: https://reviewboard.asterisk.org/r/3650/ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@417910 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'main')
-rw-r--r--main/pbx.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/main/pbx.c b/main/pbx.c
index 3c7b127e6..2f0c06405 100644
--- a/main/pbx.c
+++ b/main/pbx.c
@@ -10046,8 +10046,8 @@ static int ast_add_extension2_lockopt(struct ast_context *con,
ast_unlock_context(con);
}
if (res < 0) {
- errno = EEXIST; /* XXX do we care ? */
- return 0; /* XXX should we return -1 maybe ? */
+ errno = EEXIST;
+ return -1;
}
} else {
/*