mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-02-09 17:26:03 +00:00
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:
parent
fb3505ec92
commit
69b7d6546c
@ -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>
|
@ -1070,7 +1070,7 @@ static int config(void)
|
|||||||
set_pref_cookie(val);
|
set_pref_cookie(val);
|
||||||
} else if (!strcmp(var, "nodename")) {
|
} else if (!strcmp(var, "nodename")) {
|
||||||
set_pref_nodename(val);
|
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;
|
prefs.shortname = SWITCH_FALSE;
|
||||||
} else if (!strcasecmp(var, "apply-inbound-acl")) {
|
} else if (!strcasecmp(var, "apply-inbound-acl")) {
|
||||||
if (prefs.acl_count < MAX_ACL) {
|
if (prefs.acl_count < MAX_ACL) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user