Add new "pri show version" command to show the libpri version for support reasons.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@115257 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Brett Bryant
2008-05-02 20:25:42 +00:00
parent 89453ef4c1
commit 61bee5aa54
5 changed files with 438 additions and 5 deletions

View File

@@ -9609,6 +9609,13 @@ static int handle_pri_set_debug_file(int fd, int argc, char **argv)
return RESULT_SUCCESS;
}
#ifdef HAVE_PRI_VERSION
static int handle_pri_version(int fd, int agc, char *argv[]) {
ast_cli(fd, "libpri version: %s\n", pri_get_version());
return RESULT_SUCCESS;
}
#endif
static int handle_pri_debug(int fd, int argc, char *argv[])
{
int span;
@@ -9845,6 +9852,11 @@ static struct ast_cli_entry zap_pri_cli[] = {
{ { "pri", "unset", "debug", "file", NULL },
handle_pri_set_debug_file, "Ends PRI debug output to file" },
#ifdef HAVE_PRI_VERSION
{ { "pri", "show", "version", NULL },
handle_pri_version, "Displays version of libpri" },
#endif
};
#endif /* HAVE_PRI */