From a207a31a97c5d9fefceb0c41f8298dbef33ced1e Mon Sep 17 00:00:00 2001 From: Olle Johansson Date: Wed, 24 Jan 2007 09:30:21 +0000 Subject: [PATCH] Show capabilities *and* preference in general settings in "sip show settings" (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 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 2d7b435c67..7d906e81f5 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -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); -- 2.47.3