[asterisk-commits] rizzo: branch rizzo/astobj2 r48523 -
/team/rizzo/astobj2/channels/chan_sip.c
asterisk-commits at lists.digium.com
asterisk-commits at lists.digium.com
Sat Dec 16 14:03:08 MST 2006
Author: rizzo
Date: Sat Dec 16 15:03:08 2006
New Revision: 48523
URL: http://svn.digium.com/view/asterisk?view=rev&rev=48523
Log:
minor simplification of a conditional block
Modified:
team/rizzo/astobj2/channels/chan_sip.c
Modified: team/rizzo/astobj2/channels/chan_sip.c
URL: http://svn.digium.com/view/asterisk/team/rizzo/astobj2/channels/chan_sip.c?view=diff&rev=48523&r1=48522&r2=48523
==============================================================================
--- team/rizzo/astobj2/channels/chan_sip.c (original)
+++ team/rizzo/astobj2/channels/chan_sip.c Sat Dec 16 15:03:08 2006
@@ -16763,10 +16763,7 @@
global_allowsubscribe = FALSE;
ast_copy_string(global_useragent, DEFAULT_USERAGENT, sizeof(global_useragent));
ast_copy_string(default_notifymime, DEFAULT_NOTIFYMIME, sizeof(default_notifymime));
- if (ast_strlen_zero(ast_config_AST_SYSTEM_NAME))
- ast_copy_string(global_realm, DEFAULT_REALM, sizeof(global_realm));
- else
- ast_copy_string(global_realm, ast_config_AST_SYSTEM_NAME, sizeof(global_realm));
+ ast_copy_string(global_realm, S_OR(ast_config_AST_SYSTEM_NAME, DEFAULT_REALM), sizeof(global_realm));
ast_copy_string(default_callerid, DEFAULT_CALLERID, sizeof(default_callerid));
compactheaders = DEFAULT_COMPACTHEADERS;
global_reg_timeout = DEFAULT_REGISTRATION_TIMEOUT;
More information about the asterisk-commits
mailing list