[Freeswitch-svn] [commit] r10304 - freeswitch/trunk/src/mod/event_handlers/mod_erlang_event
FreeSWITCH SVN
andrew at freeswitch.org
Fri Nov 7 18:20:03 PST 2008
Author: andrew
Date: Fri Nov 7 21:20:03 2008
New Revision: 10304
Modified:
freeswitch/trunk/src/mod/event_handlers/mod_erlang_event/mod_erlang_event.c
Log:
use switch_true instead
Modified: freeswitch/trunk/src/mod/event_handlers/mod_erlang_event/mod_erlang_event.c
==============================================================================
--- freeswitch/trunk/src/mod/event_handlers/mod_erlang_event/mod_erlang_event.c (original)
+++ freeswitch/trunk/src/mod/event_handlers/mod_erlang_event/mod_erlang_event.c Fri Nov 7 21:20:03 2008
@@ -1070,8 +1070,8 @@
set_pref_cookie(val);
} else if (!strcmp(var, "nodename")) {
set_pref_nodename(val);
- } else if (!strcmp(var, "shortname") && strcmp(val, "yes") && strcmp(val, "true")) {
- prefs.shortname = SWITCH_FALSE;
+ } else if (!strcmp(var, "shortname")) {
+ prefs.shortname = switch_true(val);
} else if (!strcasecmp(var, "apply-inbound-acl")) {
if (prefs.acl_count < MAX_ACL) {
prefs.acl[prefs.acl_count++] = strdup(val);
More information about the Freeswitch-svn
mailing list