[asterisk-commits] russell: branch russell/messaging r297575 - /team/russell/messaging/channels/

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Fri Dec 3 16:33:00 CST 2010


Author: russell
Date: Fri Dec  3 16:32:55 2010
New Revision: 297575

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=297575
Log:
Fix handling of a couple of [general] options

Modified:
    team/russell/messaging/channels/chan_sip.c

Modified: team/russell/messaging/channels/chan_sip.c
URL: http://svnview.digium.com/svn/asterisk/team/russell/messaging/channels/chan_sip.c?view=diff&rev=297575&r1=297574&r2=297575
==============================================================================
--- team/russell/messaging/channels/chan_sip.c (original)
+++ team/russell/messaging/channels/chan_sip.c Fri Dec  3 16:32:55 2010
@@ -27164,13 +27164,9 @@
 				sip_cfg.auth_options_requests = 1;
 			}
 		} else if (!strcasecmp(v->name, "auth_message_requests")) {
-			if (ast_true(v->value)) {
-				sip_cfg.auth_message_requests = 1;
-			}
+			sip_cfg.auth_message_requests = ast_true(v->value) ? 1 : 0;
 		} else if (!strcasecmp(v->name, "accept_outofcall_message")) {
-			if (ast_true(v->value)) {
-				sip_cfg.accept_outofcall_message = 1;
-			}
+			sip_cfg.accept_outofcall_message = ast_true(v->value) ? 1 : 0;
 		} else if (!strcasecmp(v->name, "mohinterpret")) {
 			ast_copy_string(default_mohinterpret, v->value, sizeof(default_mohinterpret));
 		} else if (!strcasecmp(v->name, "mohsuggest")) {




More information about the asterisk-commits mailing list