Advertisement
Guest User

Untitled

a guest
Feb 11th, 2016
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 3.06 KB | None | 0 0
  1. <configuration name="modules.conf" description="Modules">
  2.   <modules>
  3.  
  4.     <!-- Loggers (I'd load these first) -->
  5.     <load module="mod_console"/>
  6.     <load module="mod_logfile"/>
  7.  
  8.     <!-- XML Interfaces -->
  9.     <load module="mod_xml_rpc"/>
  10.  
  11.     <!-- Event Handlers -->
  12.     <!-- <load module="mod_cdr_csv"/> -->
  13.     <load module="mod_event_socket"/>
  14.  
  15.     <!-- Endpoints -->
  16.     <load module="mod_sofia"/>
  17.     <load module="mod_loopback"/>
  18.  
  19.     <!-- Applications -->
  20.     <load module="mod_commands"/>
  21.     <load module="mod_db"/>
  22.     <load module="mod_dptools"/>
  23.     <load module="mod_distributor"/>
  24.     <load module="mod_expr"/>
  25.     <load module="mod_hash"/>
  26.  
  27.     <!-- Dialplan Interfaces -->
  28.     <load module="mod_dialplan_xml"/>
  29.  
  30.     <!-- Codec Interfaces -->
  31.     <load module="mod_g729"/>
  32.     <load module="mod_g723_1"/>
  33.  
  34.     <!-- File Format Interfaces -->
  35.     <load module="mod_sndfile"/>
  36.     <load module="mod_native_file"/>
  37.  
  38.     <!-- Third party modules -->
  39.  
  40.   </modules>
  41. </configuration>
  42.  
  43. <configuration name="switch.conf" description="Core Configuration">
  44.   <settings>
  45.     <param name="colorize-console" value="true"/>
  46.  
  47.     <!-- Max number of sessions to allow at any given time -->
  48.     <param name="max-sessions" value="10000"/>
  49.     <!-- <param name="min-idle-cpu" value="10"/> -->
  50.     <!--Most channels to create per second -->
  51.     <param name="sessions-per-second" value="400"/>
  52.  
  53.     <!-- Default Global Log Level - value is one of debug,info,notice,warning,err,crit,alert -->
  54.     <param name="loglevel" value="err"/>
  55.  
  56.     <!-- RTP port range -->
  57.     <param name="rtp-start-port" value="16384"/>
  58.     <param name="rtp-end-port" value="32768"/>
  59.   </settings>
  60. </configuration>
  61.  
  62. <profile name="external">
  63.   <settings>
  64.     <param name="auth-calls" value="false"/>
  65.  
  66.     <param name="debug" value="0"/>
  67.  
  68.     <param name="dialplan" value="XML"/>
  69.     <param name="context" value="test"/>
  70.     <param name="codec-prefs" value="$${global_codec_prefs}"/>
  71.     <param name="user-agent-string" value="testy_test"/>
  72.  
  73.     <param name="disable-register" value="true"/>
  74.     <param name="rtp-ip" value="10.10.10.2"/>
  75.     <param name="sip-ip" value="10.10.10.2"/>
  76.     <param name="ext-rtp-ip" value="auto-nat"/>
  77.     <param name="ext-sip-ip" value="auto-nat"/>
  78.     <param name="sip-port" value="5060"/>
  79.   </settings>
  80. </profile>
  81.  
  82.  
  83. <include>
  84.   <extension name="test_in">
  85.     <condition field="network_addr" expression="^10\.10\.10\.2$"/>
  86.     <condition field="destination_number" expression="^(\+)?(\d+)$">
  87.       <action application="bridge" data="{sip_contact_user=${destination_number}}sofia/external/111$2@10.10.10.3"/>
  88.     </condition>
  89.   </extension>
  90.  
  91.   <extension name="all_reject">
  92.     <condition field="destination_number" expression="^(.*)$">
  93.       <action application="set" data="bypass_media=true"/>
  94.       <action application="set" data="hangup_after_bridge=true"/>
  95.       <action application="set" data="continue_on_fail=false"/>
  96.       <action application="respond" data="503 Nonononononono"/>
  97.     </condition>
  98.   </extension>
  99.  
  100. </include>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement