[asterisk-commits] file: trunk r80468 - /trunk/channels/chan_sip.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Thu Aug 23 10:48:35 CDT 2007


Author: file
Date: Thu Aug 23 10:48:35 2007
New Revision: 80468

URL: http://svn.digium.com/view/asterisk?view=rev&rev=80468
Log:
If no default language has been specified print out that it will default to english when using sip show peer or sip show user.

Modified:
    trunk/channels/chan_sip.c

Modified: trunk/channels/chan_sip.c
URL: http://svn.digium.com/view/asterisk/trunk/channels/chan_sip.c?view=diff&rev=80468&r1=80467&r2=80468
==============================================================================
--- trunk/channels/chan_sip.c (original)
+++ trunk/channels/chan_sip.c Thu Aug 23 10:48:35 2007
@@ -11199,7 +11199,7 @@
 		}
 		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 @@
 		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));




More information about the asterisk-commits mailing list