diff options
author | Tilghman Lesher <tilghman@meg.abyt.es> | 2006-01-06 00:36:12 +0000 |
---|---|---|
committer | Tilghman Lesher <tilghman@meg.abyt.es> | 2006-01-06 00:36:12 +0000 |
commit | a84633ba26f6d391eea50986b23cce34458efeaa (patch) | |
tree | f22eba28ded22f7bdfd0d40af4780c6f6466b84d | |
parent | 95b4988cf5f17ea2360fcc0c4b818266e3ada49b (diff) |
Merged revisions 7831 via svnmerge from
/branches/1.2
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@7832 65c4cc65-6c06-0410-ace0-fbb531ad65f3
-rw-r--r-- | pbx/pbx_config.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/pbx/pbx_config.c b/pbx/pbx_config.c index f9267737a..7991c96db 100644 --- a/pbx/pbx_config.c +++ b/pbx/pbx_config.c @@ -712,7 +712,7 @@ static int handle_context_add_include(int fd, int argc, char *argv[]) if (argc != 5) return RESULT_SHOWUSAGE; /* third arg must be 'in' ... */ - if (strcmp(argv[3], "in")) return RESULT_SHOWUSAGE; + if (strcmp(argv[3], "in") && strcmp(argv[3], "into")) return RESULT_SHOWUSAGE; if (ast_context_add_include(argv[4], argv[2], registrar)) { switch (errno) { @@ -724,7 +724,7 @@ static int handle_context_add_include(int fd, int argc, char *argv[]) case EEXIST: ast_cli(fd, "Context '%s' already included in '%s' context\n", - argv[1], argv[3]); break; + argv[2], argv[4]); break; case ENOENT: case EINVAL: @@ -733,14 +733,14 @@ static int handle_context_add_include(int fd, int argc, char *argv[]) default: ast_cli(fd, "Failed to include '%s' in '%s' context\n", - argv[1], argv[3]); break; + argv[2], argv[4]); break; } return RESULT_FAILURE; } /* show some info ... */ ast_cli(fd, "Context '%s' included in '%s' context\n", - argv[2], argv[3]); + argv[2], argv[4]); return RESULT_SUCCESS; } |