From: Jeff Peeler Date: Tue, 2 Nov 2010 23:02:51 +0000 (+0000) Subject: Add enabled/disabled information for rtautoclear sip show settings output. X-Git-Tag: 1.4.38-rc1~19 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ab41baedbd0442aaabf507e3224915695dbc5d3f;p=thirdparty%2Fasterisk.git Add enabled/disabled information for rtautoclear sip show settings output. When setting to zero/"no", the numeric default was shown making it not obvious the disabled setting was respected. (closes issue #18123) Reported by: zerohalo git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@293722 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 1d693a18ed..c6d1a8941a 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -11845,7 +11845,7 @@ static int sip_show_settings(int fd, int argc, char *argv[]) ast_cli(fd, " Update: %s\n", ast_test_flag(&global_flags[1], SIP_PAGE2_RTUPDATE) ? "Yes" : "No"); ast_cli(fd, " Ignore Reg. Expire: %s\n", ast_test_flag(&global_flags[1], SIP_PAGE2_IGNOREREGEXPIRE) ? "Yes" : "No"); ast_cli(fd, " Save sys. name: %s\n", ast_test_flag(&global_flags[1], SIP_PAGE2_RTSAVE_SYSNAME) ? "Yes" : "No"); - ast_cli(fd, " Auto Clear: %d\n", global_rtautoclear); + ast_cli(fd, " Auto Clear: %d (%s)", global_rtautoclear, ast_test_flag(&global_flags[1], SIP_PAGE2_RTAUTOCLEAR) ? "Enabled" : "Disabled"); } ast_cli(fd, "\n----\n"); return RESULT_SUCCESS;