[Astpp-commit] SF.net SVN: astpp: [2185] trunk/freeswitch
Brought to you by:
darrenkw
|
From: <dar...@us...> - 2008-06-07 14:41:14
|
Revision: 2185
http://astpp.svn.sourceforge.net/astpp/?rev=2185&view=rev
Author: darrenkw
Date: 2008-06-07 07:41:22 -0700 (Sat, 07 Jun 2008)
Log Message:
-----------
Commit installation instructions and sample configurations.
Modified Paths:
--------------
trunk/freeswitch/README
Added Paths:
-----------
trunk/freeswitch/conf/
trunk/freeswitch/conf/README
trunk/freeswitch/conf/freeswitch.xml
trunk/freeswitch/conf/modules.conf.xml
trunk/freeswitch/conf/xml_curl.conf.xml
Modified: trunk/freeswitch/README
===================================================================
--- trunk/freeswitch/README 2008-06-07 04:47:11 UTC (rev 2184)
+++ trunk/freeswitch/README 2008-06-07 14:41:22 UTC (rev 2185)
@@ -1 +1,25 @@
This directory contains the support for Freeswitch. Please be aware that this is a work under development.
+
+We very strongly suggest running astpp-fs-xml.pl under mod_perl as in our tests it runs 10X as fast. Here are brief instructions on accomplishing that:
+
+1. Create a directory that will be run as mod_perl. This could be anywhere but for our test we'll use /usr/lib/mod_perl_bin/.
+
+2. Install mod_perl onto your server if it doesn't exist already.
+
+3. Add the following commands into your httpd.conf file:
+
+ Alias /perl/ /usr/lib/mod_perl_bin/
+ <Location /perl/>
+ SetHandler perl-script
+ PerlResponseHandler ModPerl::Registry
+ PerlOptions +ParseHeaders
+ Options +ExecCGI
+ Order allow,deny
+ Allow from all
+ </Location>
+
+4. You will need to manually copy the astpp-fs-xml.pl into this folder after doing the rest of the astpp installation.
+
+5. Point mod_xml_rpc.conf to http://localhost/perl/astpp-fs-xml.pl
+
+6. Currently you can only use the dialplan bindings but rest assured that other bindings are coming shortly.
Added: trunk/freeswitch/conf/README
===================================================================
--- trunk/freeswitch/conf/README (rev 0)
+++ trunk/freeswitch/conf/README 2008-06-07 14:41:22 UTC (rev 2185)
@@ -0,0 +1 @@
+These are the files that I've made changes in to enable mod_xml_curl.
Added: trunk/freeswitch/conf/freeswitch.xml
===================================================================
--- trunk/freeswitch/conf/freeswitch.xml (rev 0)
+++ trunk/freeswitch/conf/freeswitch.xml 2008-06-07 14:41:22 UTC (rev 2185)
@@ -0,0 +1,43 @@
+<?xml version="1.0"?>
+<document type="freeswitch/xml">
+ <!--#comment
+ All comments starting with #command will be preprocessed and never sent to the xml parser
+ Valid instructions:
+ #include ==> Include another file to this exact point
+ (partial xml should be encased in <include></include> tags)
+ #set ==> Set a global variable (can be expanded during preprocessing with $$ variables)
+ (note the double $$ which denotes preprocessor variables)
+ #comment ==> A general comment such as this
+
+ The preprocessor will compile the full xml document to ${prefix}/log/freeswitch.xml.fsxml
+ Don't modify it while freeswitch is running cos it is mem mapped in most cases =D
+
+ The same can be achieved with the <X-PRE-PROCESS> tag where the attrs 'cmd' and 'data' are
+ parsed in the same way.
+ -->
+ <!--#comment
+ vars.xml contains all the #set directives for the preprocessor.
+ -->
+ <X-PRE-PROCESS cmd="include" data="vars.xml"/>
+
+ <section name="configuration" description="Various Configuration">
+ <X-PRE-PROCESS cmd="include" data="autoload_configs/*.xml"/>
+ <X-PRE-PROCESS cmd="include" data="autoload_configs/xml_curl.conf.xml"/>
+ </section>
+
+ <!-- mod_dingaling is reliant on the vcard data in the "directory" section. -->
+ <!-- mod_sofia is reliant on the user data for authorization -->
+ <section name="directory" description="User Directory">
+ <X-PRE-PROCESS cmd="include" data="directory/*.xml"/>
+ </section>
+
+ <!-- phrases section (under development still) -->
+ <section name="phrases" description="Speech Phrase Management">
+ <macros>
+ <X-PRE-PROCESS cmd="include" data="lang/en/*.xml"/>
+ </macros>
+ </section>
+
+</document>
+
+
Property changes on: trunk/freeswitch/conf/freeswitch.xml
___________________________________________________________________
Name: svn:executable
+ *
Added: trunk/freeswitch/conf/modules.conf.xml
===================================================================
--- trunk/freeswitch/conf/modules.conf.xml (rev 0)
+++ trunk/freeswitch/conf/modules.conf.xml 2008-06-07 14:41:22 UTC (rev 2185)
@@ -0,0 +1,89 @@
+<configuration name="modules.conf" description="Modules">
+ <modules>
+
+ <!-- Loggers (I'd load these first) -->
+ <load module="mod_console"/>
+ <load module="mod_logfile"/>
+ <!-- <load module="mod_syslog"/> -->
+
+ <!-- Multi-Faceted -->
+ <!-- mod_enum is a dialplan interface, an application interface and an api command interface -->
+ <load module="mod_enum"/>
+
+ <!-- XML Interfaces -->
+ <!-- <load module="mod_xml_rpc"/> -->
+ <load module="mod_xml_curl"/>
+ <load module="mod_xml_cdr"/>
+
+ <!-- Event Handlers -->
+ <load module="mod_cdr_csv"/>
+ <!-- <load module="mod_event_multicast"/> -->
+ <load module="mod_event_socket"/>
+ <!-- <load module="mod_xmpp_event"/> -->
+ <!-- <load module="mod_zeroconf"/> -->
+
+ <!-- Directory Interfaces -->
+ <!-- <load module="mod_ldap"/> -->
+
+ <!-- Endpoints -->
+ <!-- <load module="mod_dingaling"/> -->
+ <!-- <load module="mod_iax"/> -->
+ <!-- <load module="mod_portaudio"/> -->
+ <!-- <load module="mod_alsa"/> -->
+ <load module="mod_sofia"/>
+ <!-- <load module="mod_wanpipe"/> -->
+ <!-- <load module="mod_woomera"/> -->
+ <!-- <load module="mod_openzap"/> -->
+
+ <!-- Applications -->
+ <load module="mod_commands"/>
+ <load module="mod_conference"/>
+ <load module="mod_dptools"/>
+ <load module="mod_expr"/>
+ <load module="mod_fifo"/>
+ <load module="mod_voicemail"/>
+ <load module="mod_limit"/>
+ <load module="mod_esf"/>
+ <load module="mod_fsv"/>
+
+ <!-- Dialplan Interfaces -->
+ <!-- <load module="mod_dialplan_directory"/> -->
+ <load module="mod_dialplan_xml"/>
+ <load module="mod_dialplan_asterisk"/>
+
+ <!-- Codec Interfaces -->
+ <load module="mod_voipcodecs"/>
+ <load module="mod_g723_1"/>
+ <load module="mod_g729"/>
+ <load module="mod_amr"/>
+ <load module="mod_ilbc"/>
+ <load module="mod_speex"/>
+ <load module="mod_h26x"/>
+
+ <!-- File Format Interfaces -->
+ <load module="mod_sndfile"/>
+ <load module="mod_native_file"/>
+ <!--For icecast/mp3 streams/files-->
+ <!--<load module="mod_shout"/>-->
+ <!--For local streams (play all the files in a directory)-->
+ <load module="mod_local_stream"/>
+ <load module="mod_tone_stream"/>
+
+ <!-- Timers -->
+
+ <!-- Languages -->
+ <load module="mod_spidermonkey"/>
+ <!-- <load module="mod_perl"/> -->
+ <!-- <load module="mod_python"/> -->
+ <!-- <load module="mod_java"/> -->
+ <!-- <load module="mod_lua"/> -->
+
+ <!-- ASR /TTS -->
+ <!-- <load module="mod_cepstral"/> -->
+ <!-- <load module="mod_openmrcp"/> -->
+ <!-- <load module="mod_rss"/> -->
+
+ <!-- Say -->
+ <load module="mod_say_en"/>
+ </modules>
+</configuration>
Added: trunk/freeswitch/conf/xml_curl.conf.xml
===================================================================
--- trunk/freeswitch/conf/xml_curl.conf.xml (rev 0)
+++ trunk/freeswitch/conf/xml_curl.conf.xml 2008-06-07 14:41:22 UTC (rev 2185)
@@ -0,0 +1,22 @@
+<configuration name="xml_curl.conf" description="cURL XML Gateway">
+ <bindings>
+ <binding name="example">
+ <!-- The url to a gateway cgi that can generate xml similar to
+ what's in this file only on-the-fly (leave it commented if you dont
+ need it) -->
+ <!-- one or more |-delim of configuration|directory|dialplan -->
+
+ <param name="gateway-url" value="http://localhost/cgi-bin/astpp-fs-xml.pl" bindings="dialplan"/>
+ <!-- set this to provide authentication credentials to the server -->
+ <!--<param name="gateway-credentials" value="muser:mypass"/>-->
+ <!-- set to true to disable Expect: 100-continue lighttpd requires this setting -->
+ <!--<param name="disable-100-continue" value="true"/>-->
+
+ <!-- optional: if enabled this will disable CA root certificate checks by libcurl -->
+ <!-- note: default value is disabled. only enable if you want this! -->
+ <!-- <param name="ignore-cacert-check" value="true" /> -->
+ <!-- one or more of these imply you want to pick the exact variables that are transmitted -->
+ <!--<param name="enable-post-var" value="Unique-ID"/>-->
+ </binding>
+ </bindings>
+</configuration>
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|