]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
use switch_true instead
authorAndrew Thompson <andrew@hijacked.us>
Sat, 8 Nov 2008 02:20:03 +0000 (02:20 +0000)
committerAndrew Thompson <andrew@hijacked.us>
Sat, 8 Nov 2008 02:20:03 +0000 (02:20 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10304 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/event_handlers/mod_erlang_event/mod_erlang_event.c

index 79507efbb29976e25d8f7119d8959719c001bc3b..5273eebd14a3d545bc364e659009fca0d247b7d8 100644 (file)
@@ -1070,8 +1070,8 @@ static int config(void)
                                        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);