mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-13 08:13:22 +00:00
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:
@@ -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 */
|
||||
|
Reference in New Issue
Block a user