[Freeswitch-svn] [commit] r10303 - freeswitch/trunk/src/mod/event_handlers/mod_erlang_event

FreeSWITCH SVN andrew at freeswitch.org
Fri Nov 7 18:06:19 PST 2008


Author: andrew
Date: Fri Nov  7 21:06:19 2008
New Revision: 10303

Added:
   freeswitch/trunk/src/mod/event_handlers/mod_erlang_event/erlang_event.conf.xml
Modified:
   freeswitch/trunk/src/mod/event_handlers/mod_erlang_event/mod_erlang_event.c

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


Added: freeswitch/trunk/src/mod/event_handlers/mod_erlang_event/erlang_event.conf.xml
==============================================================================
--- (empty file)
+++ freeswitch/trunk/src/mod/event_handlers/mod_erlang_event/erlang_event.conf.xml	Fri Nov  7 21:06:19 2008
@@ -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>

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:06:19 2008
@@ -1070,7 +1070,7 @@
 					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) {



More information about the Freeswitch-svn mailing list