Allow config parameter 'shortname' to be 'true' or 'yes', add sample config file

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10303 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Andrew Thompson 2008-11-08 02:06:19 +00:00
parent fb3505ec92
commit 69b7d6546c
2 changed files with 10 additions and 1 deletions

View File

@ -0,0 +1,9 @@
<configuration name="erlang_event.conf" description="Erlang Socket Client">
<settings>
<param name="listen-ip" value="127.0.0.1"/>
<param name="listen-port" value="8031"/>
<param name="cookie" value="ClueCon"/>
<param name="shortname" value="true"/>
<!--<param name="apply-inbound-acl" value="lan"/>-->
</settings>
</configuration>

View File

@ -1070,7 +1070,7 @@ 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")) {
} else if (!strcmp(var, "shortname") && strcmp(val, "yes") && strcmp(val, "true")) {
prefs.shortname = SWITCH_FALSE;
} else if (!strcasecmp(var, "apply-inbound-acl")) {
if (prefs.acl_count < MAX_ACL) {