]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Show capabilities *and* preference in general settings in "sip show settings"
authorOlle Johansson <oej@edvina.net>
Wed, 24 Jan 2007 09:30:21 +0000 (09:30 +0000)
committerOlle Johansson <oej@edvina.net>
Wed, 24 Jan 2007 09:30:21 +0000 (09:30 +0000)
(reported by Clona/Telio - Thanks!)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@51931 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index 2d7b435c6704278becf9bbc873512a0c3238c51f..7d906e81f5bb7fc05cf692fc88446ceeedfe0dca 100644 (file)
@@ -10206,6 +10206,7 @@ static int sip_show_settings(int fd, int argc, char *argv[])
 {
        int realtimepeers;
        int realtimeusers;
+       char codec_buf[BUFSIZ];
 
        realtimepeers = ast_check_realtime("sippeers");
        realtimeusers = ast_check_realtime("sipusers");
@@ -10253,6 +10254,9 @@ static int sip_show_settings(int fd, int argc, char *argv[])
        ast_cli(fd, "\nGlobal Signalling Settings:\n");
        ast_cli(fd, "---------------------------\n");
        ast_cli(fd, "  Codecs:                 ");
+       ast_getformatname_multiple(codec_buf, sizeof(codec_buf) -1, global_capability);
+       ast_cli(fd, "%s\n", codec_buf);
+       ast_cli(fd, "  Codec Order:            ");
        print_codec_to_cli(fd, &default_prefs);
        ast_cli(fd, "\n");
        ast_cli(fd, "  T1 minimum:             %d\n", global_t1min);