Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <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_db"/>
- <load module="mod_dptools"/>
- <load module="mod_distributor"/>
- <load module="mod_expr"/>
- <load module="mod_hash"/>
- <!-- Dialplan Interfaces -->
- <load module="mod_dialplan_xml"/>
- <!-- Codec Interfaces -->
- <load module="mod_g729"/>
- <load module="mod_g723_1"/>
- <!-- File Format Interfaces -->
- <load module="mod_sndfile"/>
- <load module="mod_native_file"/>
- <!-- Third party modules -->
- </modules>
- </configuration>
- <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="10000"/>
- <!-- <param name="min-idle-cpu" value="10"/> -->
- <!--Most channels to create per second -->
- <param name="sessions-per-second" value="400"/>
- <!-- Default Global Log Level - value is one of debug,info,notice,warning,err,crit,alert -->
- <param name="loglevel" value="err"/>
- <!-- RTP port range -->
- <param name="rtp-start-port" value="16384"/>
- <param name="rtp-end-port" value="32768"/>
- </settings>
- </configuration>
- <profile name="external">
- <settings>
- <param name="auth-calls" value="false"/>
- <param name="debug" value="0"/>
- <param name="dialplan" value="XML"/>
- <param name="context" value="test"/>
- <param name="codec-prefs" value="$${global_codec_prefs}"/>
- <param name="user-agent-string" value="testy_test"/>
- <param name="disable-register" value="true"/>
- <param name="rtp-ip" value="10.10.10.2"/>
- <param name="sip-ip" value="10.10.10.2"/>
- <param name="ext-rtp-ip" value="auto-nat"/>
- <param name="ext-sip-ip" value="auto-nat"/>
- <param name="sip-port" value="5060"/>
- </settings>
- </profile>
- <include>
- <extension name="test_in">
- <condition field="network_addr" expression="^10\.10\.10\.2$"/>
- <condition field="destination_number" expression="^(\+)?(\d+)$">
- <action application="bridge" data="{sip_contact_user=${destination_number}}sofia/external/111$2@10.10.10.3"/>
- </condition>
- </extension>
- <extension name="all_reject">
- <condition field="destination_number" expression="^(.*)$">
- <action application="set" data="bypass_media=true"/>
- <action application="set" data="hangup_after_bridge=true"/>
- <action application="set" data="continue_on_fail=false"/>
- <action application="respond" data="503 Nonononononono"/>
- </condition>
- </extension>
- </include>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement