summaryrefslogtreecommitdiff
path: root/pbx.c
diff options
context:
space:
mode:
authorMark Spencer <markster@digium.com>2005-01-12 16:28:25 +0000
committerMark Spencer <markster@digium.com>2005-01-12 16:28:25 +0000
commit74deb4f9e0d948cf708cae8287397decc00db49c (patch)
tree1f05cff9ef2390f5c7c7fbc3bf9a9fe3bf8e1875 /pbx.c
parente536f9188502a6037cdab1d26dc3a3fd93890bc2 (diff)
Restore functionality of "show dialplan" with no arguments
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4768 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'pbx.c')
-rwxr-xr-xpbx.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/pbx.c b/pbx.c
index d716d54dc..2b506dc9d 100755
--- a/pbx.c
+++ b/pbx.c
@@ -2996,7 +2996,7 @@ static int handle_show_dialplan(int fd, int argc, char *argv[])
memset(&counters, 0, sizeof(counters));
- if (argc != 2 && argc != 3) return -1;
+ if (argc != 2 && argc != 3) return RESULT_SHOWUSAGE;
/* we obtain [exten@]context? if yes, split them ... */
if (argc == 3) {
@@ -3018,7 +3018,7 @@ static int handle_show_dialplan(int fd, int argc, char *argv[])
show_dialplan_helper(fd, context, exten, &counters, NULL);
}
} else {
- return RESULT_SHOWUSAGE;
+ show_dialplan_helper(fd, NULL, NULL, &counters, NULL);
}
/* check for input failure and throw some error messages */