123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236 |
- <?xml version="1.0"?>
- <document type="freeswitch/xml">
- <X-PRE-PROCESS cmd="exec-set" data="test=echo 1234"/>
- <X-PRE-PROCESS cmd="set" data="default_password=$${test}"/>
- <X-PRE-PROCESS cmd="set" data="core_video_blank_image=$${conf_dir}/freeswitch-logo.png"/>
- <section name="configuration" description="Various Configuration">
- <configuration name="modules.conf" description="Modules">
- <modules>
- <load module="mod_sofia"/>
- <load module="mod_console"/>
- <load module="mod_loopback"/>
- <load module="mod_commands"/>
- <load module="mod_dptools"/>
- <load module="mod_dialplan_xml"/>
- <load module="mod_tone_stream"/>
- <load module="mod_commands"/>
- <load module="mod_sndfile"/>
- </modules>
- </configuration>
- <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>
- <configuration name="timezones.conf" description="Timezones">
- <timezones>
- <zone name="GMT" value="GMT0" />
- </timezones>
- </configuration>
- <configuration name="sofia.conf" description="SofiaSIP">
- <profiles>
- <profile name="external">
- <gateways>
- <gateway name="eavestest">
- <param name="username" value="not-used"/>
- <param name="password" value="not-used"/>
- <param name="proxy" value="$${local_ip_v4}:61068"/>
- <param name="register" value="false"/>
- <param name="retry-seconds" value="30"/>
- <param name="dtmf-type" value="rfc2833"/>
- <variables>
- <variable name="rtp_secure_media" value="false" direction="outbound"/>
- </variables>
- </gateway>
- </gateways>
- <domains>
- <domain name="all" alias="false" parse="true"/>
- </domains>
- <settings>
- <param name="debug" value="1"/>
- <param name="shutdown-on-fail" value="true"/>
- <param name="p-asserted-id-parse" value="verbatim"/>
- <param name="username" value="SignalWire-STACK"/>
- <param name="user-agent-string" value="SignalWire STACK Unit Test"/>
- <param name="sip-trace" value="yes"/>
- <param name="sip-capture" value="no"/>
- <param name="rfc2833-pt" value="101"/>
- <param name="sip-port" value="61068"/>
- <param name="dialplan" value="XML"/>
- <param name="context" value="default"/>
- <param name="dtmf-duration" value="2000"/>
- <param name="inbound-codec-prefs" value="PCMU"/>
- <param name="outbound-codec-prefs" value="PCMU"/>
- <param name="rtp-timer-name" value="soft"/>
- <param name="local-network-acl" value="localnet.auto"/>
- <param name="manage-presence" value="false"/>
- <param name="inbound-codec-negotiation" value="generous"/>
- <param name="nonce-ttl" value="60"/>
- <param name="inbound-late-negotiation" value="true"/>
- <param name="rtp-ip" value="$${local_ip_v4}"/>
- <param name="sip-ip" value="$${local_ip_v4}"/>
- <param name="ext-rtp-ip" value="$${local_ip_v4}"/>
- <param name="ext-sip-ip" value="$${local_ip_v4}"/>
- <param name="rtp-timeout-sec" value="300"/>
- <param name="rtp-hold-timeout-sec" value="1800"/>
- <param name="session-timeout" value="600"/>
- <param name="minimum-session-expires" value="90"/>
- <param name="tls" value="false"/>
- </settings>
- </profile>
- <profile name="internal">
- <gateways>
- </gateways>
- <domains>
- <domain name="all" alias="false" parse="true"/>
- </domains>
- <settings>
- <param name="debug" value="1"/>
- <param name="shutdown-on-fail" value="true"/>
- <param name="p-asserted-id-parse" value="verbatim"/>
- <param name="username" value="SignalWire-STACK"/>
- <param name="user-agent-string" value="SignalWire STACK Unit Test"/>
- <param name="sip-trace" value="yes"/>
- <param name="sip-capture" value="no"/>
- <param name="rfc2833-pt" value="101"/>
- <param name="sip-port" value="61069"/>
- <param name="dialplan" value="XML"/>
- <param name="context" value="default"/>
- <param name="dtmf-duration" value="2000"/>
- <param name="inbound-codec-prefs" value="PCMU"/>
- <param name="outbound-codec-prefs" value="PCMU"/>
- <param name="rtp-timer-name" value="soft"/>
- <param name="local-network-acl" value="localnet.auto"/>
- <param name="manage-presence" value="false"/>
- <param name="inbound-codec-negotiation" value="generous"/>
- <param name="nonce-ttl" value="60"/>
- <param name="inbound-late-negotiation" value="true"/>
- <param name="rtp-ip" value="$${local_ip_v4}"/>
- <param name="sip-ip" value="$${local_ip_v4}"/>
- <param name="ext-rtp-ip" value="$${local_ip_v4}"/>
- <param name="ext-sip-ip" value="$${local_ip_v4}"/>
- <param name="rtp-timeout-sec" value="300"/>
- <param name="rtp-hold-timeout-sec" value="1800"/>
- <param name="session-timeout" value="600"/>
- <param name="minimum-session-expires" value="90"/>
- <param name="tls" value="false"/>
- </settings>
- </profile>
- </profiles>
- </configuration>
- <configuration name="switch.conf" description="Switch">
- <param name="rtp-start-port" value="20000"/>
- <param name="rtp-end-port" value="30000"/>
- <param name="threaded-system-exec" value="true"/>
- </configuration>
- </section>
- <section name="dialplan" description="Regex/XML Dialplan">
- <context name="default">
- <extension name="one">
- <condition field="destination_number" expression="^\+15553332220$">
- <action application="set" data="absolute_codec_string=PCMU@20i"/>
- <action application="info"/>
- <action application="answer"/>
- <action application="park""/>
- </condition>
- </extension>
- <extension name="two">
- <condition field="destination_number" expression="^\+15553332221$">
- <action application="set" data="absolute_codec_string=PCMU@10i"/>
- <action application="info"/>
- <action application="answer"/>
- <action application="playback" data="{loops=-1}tone_stream://%(251,0,300)"/>
- </condition>
- </extension>
- <extension name="three">
- <condition field="destination_number" expression="^\+15553332222$">
- <action application="set" data="absolute_codec_string=PCMU@30i"/>
- <action application="info"/>
- <action application="answer"/>
- <action application="playback" data="{loops=-1}tone_stream://%(251,0,300)"/>
- </condition>
- </extension>
- <extension name="four">
- <condition field="destination_number" expression="^\+15553332223$">
- <action application="set" data="absolute_codec_string=PCMU@40i"/>
- <action application="info"/>
- <action application="answer"/>
- <action application="playback" data="{loops=-1}tone_stream://%(251,0,300)"/>
- </condition>
- </extension>
- <extension name="five">
- <condition field="destination_number" expression="^\+15553332224$">
- <action application="set" data="absolute_codec_string=PCMU@80i"/>
- <action application="info"/>
- <action application="answer"/>
- <action application="playback" data="{loops=-1}tone_stream://%(251,0,300)"/>
- </condition>
- </extension>
- <extension name="six">
- <condition field="destination_number" expression="^\+15553332225$">
- <action application="set" data="absolute_codec_string=PCMU@10i"/>
- <action application="info"/>
- <action application="answer"/>
- <action application="playback" data="{loops=-1}tone_stream://%(251,0,300)"/>
- </condition>
- </extension>
- <extension name="seven">
- <condition field="destination_number" expression="^\+15553332226$">
- <action application="set" data="absolute_codec_string=PCMU@20i"/>
- <action application="info"/>
- <action application="answer"/>
- <action application="record_session" data="/tmp/eaves-${uuid}.wav"/>
- <action application="playback" data="{loops=-1}tone_stream://%(251,0,300)"/>
- </condition>
- </extension>
- <extension name="eavesdropper_20ms">
- <condition field="destination_number" expression="^\+15553332230$">
- <action application="answer"/>
- <action application="record_session" data="/tmp/eaves-${sip_h_X-UnitTestRecfile}.wav"/>
- <action application="playback" data="silence_stream://-1,1400"/>
- </condition>
- </extension>
- <extension name="eight">
- <condition field="destination_number" expression="^\+15553332231$">
- <action application="answer"/>
- <action application="park"/>
- </condition>
- </extension>
- <extension name="eavesdropper_30ms">
- <condition field="destination_number" expression="^\+15553332240$">
- <action application="set" data="absolute_codec_string=PCMU@30i"/>
- <action application="answer"/>
- <action application="record_session" data="/tmp/eaves-${sip_h_X-UnitTestRecfile}.wav"/>
- <action application="playback" data="silence_stream://-1,1400"/>
- </condition>
- </extension>
- <extension name="ten">
- <condition field="destination_number" expression="^\+15553332241$">
- <action application="set" data="absolute_codec_string=PCMU@30i"/>
- <action application="info"/>
- <action application="answer"/>
- <action application="playback" data="{loops=-1}tone_stream://%(251,0,300)"/>
- </condition>
- </extension>
- </context>
- </section>
- </document>
|