Browse Source

Initial import of minimal configuration from a working instance

master
Manav Rathi 11 years ago
parent
commit
4c6ff331ce
20 changed files with 2093 additions and 0 deletions
  1. +15
    -0
      autoload_configs/acl.conf.xml
  2. +11
    -0
      autoload_configs/cdr_csv.conf.xml
  3. +5
    -0
      autoload_configs/conference.conf.xml
  4. +10
    -0
      autoload_configs/console.conf.xml
  5. +3
    -0
      autoload_configs/db.conf.xml
  6. +8
    -0
      autoload_configs/event_socket.conf.xml
  7. +22
    -0
      autoload_configs/logfile.conf.xml
  8. +40
    -0
      autoload_configs/modules.conf.xml
  9. +10
    -0
      autoload_configs/sofia.conf.xml
  10. +17
    -0
      autoload_configs/switch.conf.xml
  11. +1850
    -0
      autoload_configs/timezones.conf.xml
  12. +12
    -0
      autoload_configs/xml_rpc.conf.xml
  13. +11
    -0
      dialplan/default.xml
  14. +5
    -0
      dialplan/public.xml
  15. +7
    -0
      dialplan/public/00_stub.xml
  16. +12
    -0
      freeswitch.xml
  17. +21
    -0
      sip_profiles/external.xml
  18. +6
    -0
      sip_profiles/external/stub.xml
  19. +19
    -0
      sip_profiles/internal.xml
  20. +9
    -0
      vars.xml

+ 15
- 0
autoload_configs/acl.conf.xml View File

@ -0,0 +1,15 @@
<configuration name="acl.conf" description="Network Lists">
<network-lists>
<!--
These ACL's are automatically created on startup.
rfc1918.auto - RFC1918 Space
nat.auto - RFC1918 Excluding your local lan.
localnet.auto - ACL for your local lan.
loopback.auto - ACL for your local lan.
-->
<list name="domains" default="deny">
</list>
</network-lists>
</configuration>

+ 11
- 0
autoload_configs/cdr_csv.conf.xml View File

@ -0,0 +1,11 @@
<configuration name="cdr_csv.conf" description="CDR CSV Format">
<settings>
<param name="default-template" value="example"/>
<param name="rotate-on-hup" value="true"/>
<param name="legs" value="ab"/>
</settings>
<templates>
<template name="example">"${caller_id_name}","${caller_id_number}","${destination_number}","${context}","${start_stamp}","${answer_stamp}","${end_stamp}","${duration}","${billsec}","${hangup_cause}","${uuid}","${bleg_uuid}","${accountcode}","${read_codec}","${write_codec}"</template>
</templates>
</configuration>

+ 5
- 0
autoload_configs/conference.conf.xml View File

@ -0,0 +1,5 @@
<configuration name="conference.conf" description="Audio Conference">
<profiles>
<profile name="default"/>
</profiles>
</configuration>

+ 10
- 0
autoload_configs/console.conf.xml View File

@ -0,0 +1,10 @@
<configuration name="console.conf" description="Console Logger">
<mappings>
<map name="all" value="console,debug,info,notice,warning,err,crit,alert"/>
</mappings>
<settings>
<param name="colorize" value="true"/>
<param name="loglevel" value="debug"/>
</settings>
</configuration>

+ 3
- 0
autoload_configs/db.conf.xml View File

@ -0,0 +1,3 @@
<configuration name="db.conf" description="LIMIT DB Configuration">
<settings/>
</configuration>

+ 8
- 0
autoload_configs/event_socket.conf.xml View File

@ -0,0 +1,8 @@
<configuration name="event_socket.conf" description="Socket Client">
<settings>
<param name="nat-map" value="false"/>
<param name="listen-ip" value="127.0.0.1"/>
<param name="listen-port" value="8021"/>
<param name="password" value="ClueCon"/>
</settings>
</configuration>

+ 22
- 0
autoload_configs/logfile.conf.xml View File

@ -0,0 +1,22 @@
<configuration name="logfile.conf" description="File Logging">
<settings>
<param name="rotate-on-hup" value="true"/>
</settings>
<profiles>
<profile name="default">
<settings>
<!-- At this length in bytes rotate the log file (0 for never) -->
<param name="rollover" value="10485760"/>
</settings>
<mappings>
<!--
name can be a file name, function name or 'all'
value is one or more of debug,info,notice,warning,err,crit,alert,all
-->
<map name="all" value="debug,info,notice,warning,err,crit,alert"/>
</mappings>
</profile>
</profiles>
</configuration>

+ 40
- 0
autoload_configs/modules.conf.xml View File

@ -0,0 +1,40 @@
<configuration name="modules.conf" description="Modules">
<modules>
<!-- Loggers (I'd load these first) -->
<load module="mod_console"/>
<load module="mod_logfile"/>
<!-- XML Interfaces -->
<load module="mod_xml_rpc"/>
<!-- Event Handlers -->
<load module="mod_cdr_csv"/>
<load module="mod_event_socket"/>
<!-- Endpoints -->
<load module="mod_sofia"/>
<load module="mod_loopback"/>
<!-- Applications -->
<load module="mod_commands"/>
<load module="mod_conference"/>
<load module="mod_db"/>
<load module="mod_dptools"/>
<load module="mod_expr"/>
<load module="mod_hash"/>
<load module="mod_esf"/>
<!-- Dialplan Interfaces -->
<load module="mod_dialplan_xml"/>
<!-- Codec Interfaces -->
<!-- File Format Interfaces -->
<load module="mod_sndfile"/>
<load module="mod_native_file"/>
<!-- Third party modules -->
</modules>
</configuration>

+ 10
- 0
autoload_configs/sofia.conf.xml View File

@ -0,0 +1,10 @@
<configuration name="sofia.conf" description="sofia Endpoint">
<global_settings>
<param name="log-level" value="0"/>
<param name="tracelevel" value="DEBUG"/>
</global_settings>
<profiles>
<X-PRE-PROCESS cmd="include" data="../sip_profiles/*.xml"/>
</profiles>
</configuration>

+ 17
- 0
autoload_configs/switch.conf.xml View File

@ -0,0 +1,17 @@
<configuration name="switch.conf" description="Core Configuration">
<settings>
<param name="colorize-console" value="true"/>
<!-- Max number of sessions to allow at any given time -->
<param name="max-sessions" value="1000"/>
<!--Most channels to create per second -->
<param name="sessions-per-second" value="30"/>
<!-- Default Global Log Level - value is one of debug,info,notice,warning,err,crit,alert -->
<param name="loglevel" value="debug"/>
<!-- RTP port range -->
<param name="rtp-start-port" value="16384"/>
<param name="rtp-end-port" value="32768"/>
</settings>
</configuration>

+ 1850
- 0
autoload_configs/timezones.conf.xml
File diff suppressed because it is too large
View File


+ 12
- 0
autoload_configs/xml_rpc.conf.xml View File

@ -0,0 +1,12 @@
<configuration name="xml_rpc.conf" description="XML RPC">
<settings>
<!-- The port where you want to run the http service (default 8080) -->
<param name="http-port" value="8080"/>
<!-- if all 3 of the following params exist all http traffic will require auth -->
<param name="auth-realm" value="freeswitch"/>
<param name="auth-user" value="freeswitch"/>
<param name="auth-pass" value="$${xml_rpc_password}"/>
<param name="commands-to-log" value=".*"/>
</settings>
</configuration>

+ 11
- 0
dialplan/default.xml View File

@ -0,0 +1,11 @@
<include>
<context name="default">
<extension name="sample">
<condition>
<action application="info"/>
</condition>
</extension>
</context>
</include>

+ 5
- 0
dialplan/public.xml View File

@ -0,0 +1,5 @@
<include>
<context name="public">
<X-PRE-PROCESS cmd="include" data="public/*.xml"/>
</context>
</include>

+ 7
- 0
dialplan/public/00_stub.xml View File

@ -0,0 +1,7 @@
<include>
<extension name="sample">
<condition>
<action application="info"/>
</condition>
</extension>
</include>

+ 12
- 0
freeswitch.xml View File

@ -0,0 +1,12 @@
<?xml version="1.0"?>
<document type="freeswitch/xml">
<X-PRE-PROCESS cmd="include" data="vars.xml"/>
<section name="configuration" description="Various Configuration">
<X-PRE-PROCESS cmd="include" data="autoload_configs/*.xml"/>
</section>
<section name="dialplan" description="Regex/XML Dialplan">
<X-PRE-PROCESS cmd="include" data="dialplan/*.xml"/>
</section>
</document>

+ 21
- 0
sip_profiles/external.xml View File

@ -0,0 +1,21 @@
<profile name="external">
<gateways>
<X-PRE-PROCESS cmd="include" data="external/*.xml"/>
</gateways>
<settings>
<param name="auth-calls" value="false"/>
<param name="debug" value="0"/>
<param name="dialplan" value="XML"/>
<param name="context" value="public"/>
<param name="codec-prefs" value="$${global_codec_prefs}"/>
<param name="rtp-ip" value="$${local_ip_v4}"/>
<param name="sip-ip" value="$${local_ip_v4}"/>
<param name="ext-rtp-ip" value="auto-nat"/>
<param name="ext-sip-ip" value="auto-nat"/>
<param name="sip-port" value="$${external_sip_port}"/>
</settings>
</profile>

+ 6
- 0
sip_profiles/external/stub.xml View File

@ -0,0 +1,6 @@
<include>
<!-- <gateway name="itsp-name"> -->
<!-- <param name="proxy" value="1.2.3.4"/> -->
<!-- <param name="register" value="false"/> -->
<!-- </gateway> -->
</include>

+ 19
- 0
sip_profiles/internal.xml View File

@ -0,0 +1,19 @@
<profile name="internal">
<settings>
<param name="auth-calls" value="true"/>
<param name="apply-nat-acl" value="nat.auto"/>
<param name="debug" value="0"/>
<param name="sip-trace" value="yes"/>
<param name="dialplan" value="XML"/>
<param name="context" value="default"/>
<param name="codec-prefs" value="$${global_codec_prefs}"/>
<param name="rtp-ip" value="$${local_ip_v4}"/>
<param name="sip-ip" value="$${local_ip_v4}"/>
<param name="ext-rtp-ip" value="auto-nat"/>
<param name="ext-sip-ip" value="auto-nat"/>
<param name="sip-port" value="$${internal_sip_port}"/>
</settings>
</profile>

+ 9
- 0
vars.xml View File

@ -0,0 +1,9 @@
<include>
<X-PRE-PROCESS cmd="set" data="global_codec_prefs=PCMU,PCMA"/>
<!-- NOTE: CHANGE THIS BEFORE USE -->
<X-PRE-PROCESS cmd="set" data="xml_rpc_password=worksnot"/>
<X-PRE-PROCESS cmd="set" data="internal_sip_port=5060"/>
<X-PRE-PROCESS cmd="set" data="external_sip_port=5080"/>
</include>

Loading…
Cancel
Save