Created
July 8, 2015 12:01
-
-
Save moteus/4366852a35049b751850 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0"?> | |
<document type="freeswitch/xml"> | |
<X-PRE-PROCESS cmd="set" data="local_address=192.168.123.58"/> | |
<X-PRE-PROCESS cmd="set" data="local_port=5064"/> | |
<X-PRE-PROCESS cmd="set" data="domain_name=$${local_address}"/> | |
<X-PRE-PROCESS cmd="set" data="external_address=$${local_address}"/> | |
<X-PRE-PROCESS cmd="set" data="external_port=5088"/> | |
<section name="configuration"> | |
<configuration name="switch.conf"> | |
<settings> | |
<param name="colorize-console" value="true"/> | |
<param name="max-sessions" value="1000"/> | |
<param name="sessions-per-second" value="30"/> | |
<param name="loglevel" value="debug"/> | |
</settings> | |
</configuration> | |
<configuration name="modules.conf"> | |
<modules> | |
<load module="mod_console"/> | |
<load module="mod_logfile"/> | |
<load module="mod_sofia"/> | |
<load module="mod_commands"/> | |
<load module="mod_dptools"/> | |
<load module="mod_dialplan_xml"/> | |
<load module="mod_spandsp"/> | |
<load module="mod_sndfile"/> | |
<load module="mod_native_file"/> | |
<load module="mod_local_stream"/> | |
<load module="mod_tone_stream"/> | |
</modules> | |
</configuration> | |
<configuration name="console.conf"> | |
<mappings> | |
<map name="all" value="console,debug,info,notice,warning,err,crit,alert"/> | |
</mappings> | |
<settings> | |
<param name="colorize" value="true"/> | |
<param name="loglevel" value="info"/> | |
</settings> | |
</configuration> | |
<configuration name="logfile.conf"> | |
<settings> | |
<param name="rotate-on-hup" value="true"/> | |
</settings> | |
<profiles> | |
<profile name="default"> | |
<settings> | |
<!--<param name="logfile" value="/log/freeswitch.log"/>--> | |
<param name="rollover" value="10485760"/> | |
</settings> | |
<mappings> | |
<map name="all" value="debug,info,notice,warning,err,crit,alert"/> | |
</mappings> | |
</profile> | |
</profiles> | |
</configuration> | |
<configuration name="sofia.conf"> | |
<global_settings> | |
<param name="log-level" value="0"/> | |
<param name="debug-presence" value="0"/> | |
</global_settings> | |
<profiles> | |
<profile name="local_profile"> | |
<domains> | |
<domain name="all" alias="true" parse="true"/> | |
</domains> | |
<settings> | |
<param name="context" value="local_dialplan" /> | |
<param name="sip-port" value="$${local_port}" /> | |
<param name="dialplan" value="XML" /> | |
<param name="rtp-ip" value="$${local_address}" /> | |
<param name="sip-ip" value="$${local_address}" /> | |
<param name="auth-calls" value="true" /> | |
<param name="user-agent-string" value="VoipSoftSwitch" /> | |
</settings> | |
</profile> | |
<profile name="extern_profile"> | |
<domains> | |
<domain name="all" alias="false" parse="true"/> | |
</domains> | |
<settings> | |
<param name="context" value="extern_dialplan" /> | |
<param name="sip-port" value="$${external_port}" /> | |
<param name="dialplan" value="XML" /> | |
<param name="rtp-ip" value="$${external_address}" /> | |
<param name="sip-ip" value="$${external_address}" /> | |
<param name="auth-calls" value="false" /> | |
<param name="disable-register" value="true" /> | |
<param name="user-agent-string" value="VoipSoftSwitch" /> | |
</settings> | |
<gateways> | |
<gateway name="gw1.test.ru"> | |
<param name="realm" value="192.168.123.56"/> | |
<param name="username" value="7777" /> | |
<param name="password" value="77" /> | |
<param name="register" value="false" /> | |
</gateway> | |
<gateway name="gw2.test.ru"> | |
<param name="realm" value="192.168.123.53:5090"/> | |
<param name="username" value="7777" /> | |
<param name="password" value="77" /> | |
<param name="register" value="true" /> | |
</gateway> | |
</gateways> | |
</profile> | |
</profiles> | |
</configuration> | |
<configuration name="acl.conf" description="Network Lists"> | |
<network-lists> | |
<list name="lan" default="allow"> | |
<node type="deny" cidr="192.168.42.0/24"/> | |
<node type="allow" cidr="192.168.42.42/32"/> | |
</list> | |
<list name="domains" default="deny"> | |
<node type="allow" domain="$${domain_name}"/> | |
</list> | |
</network-lists> | |
</configuration> | |
<configuration name="spandsp.conf" description="Tone detector descriptors"> | |
<descriptors> | |
<!-- North America --> | |
<descriptor name="1"> | |
<tone name="CED_TONE"> | |
<element freq1="2100" freq2="0" min="500" max="0"/> | |
</tone> | |
<tone name="SIT"> | |
<element freq1="950" freq2="0" min="256" max="400"/> | |
<element freq1="1400" freq2="0" min="256" max="400"/> | |
<element freq1="1800" freq2="0" min="256" max="400"/> | |
</tone> | |
<tone name="REORDER_TONE"> | |
<element freq1="480" freq2="620" min="224" max="272"/> | |
<element freq1="0" freq2="0" min="224" max="272"/> | |
</tone> | |
<tone name="BUSY_TONE"> | |
<element freq1="480" freq2="620" min="464" max="516"/> | |
<element freq1="0" freq2="0" min="464" max="516"/> | |
</tone> | |
</descriptor> | |
<!-- United Kingdom --> | |
<descriptor name="44"> | |
<tone name="CED_TONE"> | |
<element freq1="2100" freq2="0" min="500" max="0"/> | |
</tone> | |
<tone name="SIT"> | |
<element freq1="950" freq2="0" min="256" max="400"/> | |
<element freq1="1400" freq2="0" min="256" max="400"/> | |
<element freq1="1800" freq2="0" min="256" max="400"/> | |
</tone> | |
<tone name="REORDER_TONE"> | |
<element freq1="400" freq2="0" min="368" max="416"/> | |
<element freq1="0" freq2="0" min="336" max="368"/> | |
<element freq1="400" freq2="0" min="256" max="288"/> | |
<element freq1="0" freq2="0" min="512" max="544"/> | |
</tone> | |
<tone name="BUSY_TONE"> | |
<element freq1="400" freq2="0" min="352" max="384"/> | |
<element freq1="0" freq2="0" min="352" max="384"/> | |
<element freq1="400" freq2="0" min="352" max="384"/> | |
<element freq1="0" freq2="0" min="352" max="384"/> | |
</tone> | |
</descriptor> | |
<!-- Germany --> | |
<descriptor name="49"> | |
<tone name="CED_TONE"> | |
<element freq1="2100" freq2="0" min="500" max="0"/> | |
</tone> | |
<tone name="SIT"> | |
<element freq1="900" freq2="0" min="256" max="400"/> | |
<element freq1="1400" freq2="0" min="256" max="400"/> | |
<element freq1="1800" freq2="0" min="256" max="400"/> | |
</tone> | |
<tone name="REORDER_TONE"> | |
<element freq1="425" freq2="0" min="224" max="272"/> | |
<element freq1="0" freq2="0" min="224" max="272"/> | |
</tone> | |
<tone name="BUSY_TONE"> | |
<element freq1="425" freq2="0" min="464" max="516"/> | |
<element freq1="0" freq2="0" min="464" max="516"/> | |
</tone> | |
</descriptor> | |
</descriptors> | |
</configuration> | |
<configuration name="fax.conf" description="FAX application configuration"> | |
<settings> | |
<param name="use-ecm" value="true"/> | |
<param name="verbose" value="false"/> | |
<param name="disable-v17" value="false"/> | |
<param name="ident" value="SpanDSP Fax Ident"/> | |
<param name="header" value="SpanDSP Fax Header"/> | |
<param name="spool-dir" value="/tmp"/> | |
<param name="file-prefix" value="faxrx"/> | |
</settings> | |
</configuration> | |
<configuration name="local_stream.conf" description="stream files from local dir"> | |
<directory name="default" path="$${sounds_dir}/music/8000"> | |
<param name="rate" value="8000"/> | |
<param name="shuffle" value="true"/> | |
<param name="channels" value="1"/> | |
<param name="interval" value="20"/> | |
<param name="timer-name" value="soft"/> | |
</directory> | |
<directory name="moh/8000" path="$${sounds_dir}/music/8000"> | |
<param name="rate" value="8000"/> | |
<param name="shuffle" value="true"/> | |
<param name="channels" value="1"/> | |
<param name="interval" value="20"/> | |
<param name="timer-name" value="soft"/> | |
</directory> | |
</configuration> | |
</section> | |
<section name="dialplan"> | |
<context name="local_dialplan"> | |
<extension name="gw1"> | |
<condition field="destination_number" expression="^(\d+)$"> | |
<action application="bridge" data="sofia/gateway/gw1.test.ru/$1"/> | |
</condition> | |
</extension> | |
</context> | |
<context name="extern_dialplan"> | |
<extension name="debug_info" continue="true"> | |
<condition> | |
<action application="info"/> | |
</condition> | |
</extension> | |
</context> | |
</section> | |
<section name="directory"> | |
<domain name="$${domain_name}"> | |
<params> | |
<param name="dial-string" value="{presence_id=${dialed_user}@${dialed_domain}}${sofia_contact(${dialed_user}@${dialed_domain})}"/> | |
</params> | |
<groups> | |
<group name="local_group"> | |
<users> | |
<user id="203"> <params> <param name="password" value="1Jszb!e%u."/> </params> </user> | |
<user id="205"> <params> <param name="password" value="?d92TE.JLk"/> </params> </user> | |
</users> | |
</group> | |
</groups> | |
</domain> | |
</section> | |
</document> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment