]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
chan_sip: Incorrect display option Outbound reg. retry 403 61/4261/1
authorGrachev Sergey <grachev@mcn.ru>
Tue, 1 Nov 2016 13:32:35 +0000 (16:32 +0300)
committerCorey Farrell <git@cfware.com>
Tue, 1 Nov 2016 15:14:06 +0000 (11:14 -0400)
If in sip.conf (general section) set option register_retry_403=no,
the command "sip show settings" return value:
Outbound reg. retry 403:0
If in sip.conf (general section) set option register_retry_403=yes,
the command "sip show settings" return value:
Outbound reg. retry 403:-1

* In static char "sip show settings" for "Outbound.reg. retry 403"
option use AST_CLI_YESNO

ASTERISK-26476 #close

Change-Id: I3c14272f05f1067bd2aeaa8b3ef9cf8fcb12dcf9

channels/chan_sip.c

index 1f3a2f470f2b798755d247efc5a316c0cec176a2..4c742cefe8c95ab6d9b6bf4297ee7d0999792e83 100644 (file)
@@ -21585,7 +21585,7 @@ static char *sip_show_settings(struct ast_cli_entry *e, int cmd, struct ast_cli_
        ast_cli(a->fd, "  Sub. max duration:      %d secs\n", max_subexpiry);
        ast_cli(a->fd, "  Outbound reg. timeout:  %d secs\n", global_reg_timeout);
        ast_cli(a->fd, "  Outbound reg. attempts: %d\n", global_regattempts_max);
-       ast_cli(a->fd, "  Outbound reg. retry 403:%d\n", global_reg_retry_403);
+       ast_cli(a->fd, "  Outbound reg. retry 403:%s\n", AST_CLI_YESNO(global_reg_retry_403));
        ast_cli(a->fd, "  Notify ringing state:   %s\n", AST_CLI_YESNO(sip_cfg.notifyringing));
        if (sip_cfg.notifyringing) {
                ast_cli(a->fd, "    Include CID:          %s%s\n",