diff options
author | file <file@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-08-23 15:48:35 +0000 |
---|---|---|
committer | file <file@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-08-23 15:48:35 +0000 |
commit | 1344508165f933ae800284d2bb30832ac79fb2cb (patch) | |
tree | 2e717bffabe696adb5e0eb6577495448975e5912 /channels | |
parent | 76eee2e39b0b12cfcd178617d677bbc84b810fa5 (diff) |
If no default language has been specified print out that it will default to english when using sip show peer or sip show user.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@80468 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels')
-rw-r--r-- | channels/chan_sip.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 7fc3559e3..1d6280449 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -11199,7 +11199,7 @@ static int _sip_show_peer(int type, int fd, struct mansession *s, const struct m } ast_cli(fd, " Context : %s\n", peer->context); ast_cli(fd, " Subscr.Cont. : %s\n", S_OR(peer->subscribecontext, "<Not set>") ); - ast_cli(fd, " Language : %s\n", peer->language); + ast_cli(fd, " Language : %s\n", S_OR(peer->language, "(Defaults to English)")); if (!ast_strlen_zero(peer->accountcode)) ast_cli(fd, " Accountcode : %s\n", peer->accountcode); ast_cli(fd, " AMA flags : %s\n", ast_cdr_flags2str(peer->amaflags)); @@ -11394,7 +11394,7 @@ static int sip_show_user(int fd, int argc, char *argv[]) ast_cli(fd, " Secret : %s\n", ast_strlen_zero(user->secret)?"<Not set>":"<Set>"); ast_cli(fd, " MD5Secret : %s\n", ast_strlen_zero(user->md5secret)?"<Not set>":"<Set>"); ast_cli(fd, " Context : %s\n", user->context); - ast_cli(fd, " Language : %s\n", user->language); + ast_cli(fd, " Language : %s\n", S_OR(user->language, "(Defaults to English)")); if (!ast_strlen_zero(user->accountcode)) ast_cli(fd, " Accountcode : %s\n", user->accountcode); ast_cli(fd, " AMA flags : %s\n", ast_cdr_flags2str(user->amaflags)); |