<configuration name="abstraction.conf" description="Abstraction">
<apis>
    <api name="user_name" description="Return Name for extension" syntax="&lt;exten&gt;" parse="(.*)" destination="user_data" argument="$1@default var effective_caller_id_name"/>
</apis>
</configuration>
 

<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="lan" default="allow">
      <node type="deny" cidr="192.168.42.0/24"/>
      <node type="allow" cidr="192.168.42.42/32"/>
    </list>

    <!--
	This will traverse the directory adding all users 
	with the cidr= tag to this ACL, when this ACL matches
	the users variables and params apply as if they 
	digest authenticated.
    -->
    <list name="domains" default="deny">
      <!-- domain= is special it scans the domain from the directory to build the ACL -->
      <node type="allow" domain="$${domain}"/>
      <!-- use cidr= if you wish to allow ip ranges to this domains acl. -->
      <!-- <node type="allow" cidr="192.168.0.0/24"/> -->
    </list>
    <list name="callin" default="deny">
       <!--
                   <node type="allow" cidr="可以呼入的IP1/32"/> 
       <node type="allow" cidr="可以呼入的IP3/32"/> 

      <node type="allow" cidr="0.0.0.0/0"/> 这个写法就是允许任意IP
	-->

    </list>
  </network-lists>
</configuration>

<configuration name="alsa.conf" description="Soundcard Endpoint">
  <settings>
    <!--Default dialplan and caller-id info -->
    <param name="dialplan" value="XML"/>
    <param name="cid-name" value="N800 Alsa"/>
    <param name="cid-num" value="5555551212"/>

    <!--audio sample rate and interval -->
    <param name="sample-rate" value="8000"/>
    <param name="codec-ms" value="20"/>
  </settings>
</configuration>
<configuration name="amqp.conf" description="mod_amqp">
  <producers>
    <profile name="default">
      <connections>
	<connection name="primary">
	  <param name="hostname" value="localhost"/>
	  <param name="virtualhost" value="/"/>
	  <param name="username" value="guest"/>
	  <param name="password" value="guest"/>
	  <param name="port" value="5673"/>
	  <param name="heartbeat" value="0"/>
	</connection>
	<connection name="secondary">
	  <param name="hostname" value="localhost"/>
	  <param name="virtualhost" value="/"/>
	  <param name="username" value="guest"/>
	  <param name="password" value="guest"/>
	  <param name="port" value="5672"/>
	  <param name="heartbeat" value="0"/>
	</connection>
      </connections>
      <params>
	<param name="exchange-name" value="TAP.Events"/>
	<param name="exchange-type" value="topic"/>
	<param name="circuit_breaker_ms" value="10000"/>
	<param name="reconnect_interval_ms" value="1000"/>
	<param name="send_queue_size" value="5000"/>
	<param name="enable_fallback_format_fields" value="1"/>

	<!-- The routing key is made from the format string, using the header values in the event specified in the format_fields.-->
	<!-- Fields that are prefixed with a # are treated as literals rather than doing a header lookup -->
	<param name="format_fields" value="#FreeSWITCH,FreeSWITCH-Hostname,Event-Name,Event-Subclass,Unique-ID"/>

	<!-- If enable_fallback_format_fields is enabled, then you can | separate event headers, and if the first does not exist
	     then the system will check additional configured header values.
	-->
	<!-- <param name="format_fields" value="#FreeSWITCH,FreeSWITCH-Hostname|#Unknown,Event-Name,Event-Subclass,Unique-ID"/> -->

	<!--    <param name="event_filter" value="SWITCH_EVENT_ALL"/> -->
	<param name="event_filter" value="SWITCH_EVENT_CHANNEL_CREATE,SWITCH_EVENT_CHANNEL_DESTROY,SWITCH_EVENT_HEARTBEAT,SWITCH_EVENT_DTMF"/>
      </params>
    </profile>
  </producers>
  <commands>
    <profile name="default">
      <connections>
	<connection name="primary">
	  <param name="hostname" value="localhost"/>
	  <param name="virtualhost" value="/"/>
	  <param name="username" value="guest"/>
	  <param name="password" value="guest"/>
	  <param name="port" value="5672"/>
	  <param name="heartbeat" value="0"/>
	</connection>
      </connections>
      <params>
	<param name="exchange-name" value="TAP.Commands"/>
	<param name="binding_key" value="commandBindingKey"/>
	<param name="reconnect_interval_ms" value="1000"/>
      </params>
    </profile>
  </commands>
  <logging>
    <profile name="default">
      <connections>
	<connection name="primary">
	  <param name="hostname" value="localhost"/>
	  <param name="virtualhost" value="/"/>
	  <param name="username" value="guest"/>
	  <param name="password" value="guest"/>
	  <param name="port" value="5672"/>
	  <param name="heartbeat" value="0"/>
	</connection>
      </connections>
      <params>
	<param name="exchange-name" value="TAP.Logging"/>
	<param name="send_queue_size" value="5000"/>
	<param name="reconnect_interval_ms" value="1000"/>
	<param name="log-levels" value="debug,info,notice,warning,err,crit,alert"/>
      </params>
    </profile>
  </logging>
</configuration>
<configuration name="autodialer.conf" description="autodialer Configuration">
  <settings>
    <param name="odbc-dsn" value="odbc://DRIVER=mysql;SERVER=127.0.0.1;UID=robot;PWD=robot;DATABASE=robot;OPTION=67108864" />
	<param name="dbname" value="autodialer"/>
	<param name="cps" value="100"/>

</settings>

</configuration>
<configuration name="avmd.conf" description="AVMD config">
    <settings>

    <!-- Edit these settings to change default behaviour
         of each avmd session. Settings can be overwritten
         by values passed dynamically per each session -->


        <!-- Global settings -->

            <!-- define/undefine this to enable/disable logging of avmd
                 intermediate computations to log -->
            <param name="debug" value="0"/>

            <!-- define/undef this to enable/disable verbose logging (and reporting to the console)
                 of detection status and other diagnostics like parameters avmd session has been started with,
                 change of configuration parameters, beep detection status after session ended
                 (stop event is fired independently of this setting and beep status included there) -->
            <param name="report_status" value="1"/>

            <!-- define/undefine this to enable/disable faster computation
                 of arcus cosine - table will be created mapping floats
                 to integers and returning arc cos values given these integer
                 indices into table -->
            <param name="fast_math" value="0"/>
        <!-- Global settings end -->


        <!-- Per call (session) settings. These settings can be overwritten
             with custom/different values per each avmd session -->

            <!-- define/undefine this to classify avmd beep detection as valid
                 only when there is required number of consecutive elements
                 in the SMA buffer without reset -->
            <param name="require_continuous_streak" value="1"/>

            <!-- required number of consecutive elements in the SMA buffer
                 without reset. This parameter helps to avoid false beeps, bigger this value is
                smaller the probability of getting false detection -->
            <param name="sample_n_continuous_streak" value="15"/>

            <!-- define number of samples to skip starting from the beginning
                 of the frame and/or after reset  has happened. This serves the purpose of skipping first few
                estimations on each frame, as these estimations may be inaccurate. This parameter also helps
                to give more robust detections when it's value is increased (up to scertain limit of about 60). -->
            <param name="sample_n_to_skip" value="15"/>

            <!-- define/undefine this to enable/disable simplified estimation
                 of frequency based on approximation of sin(x) with (x)
                 in the range x=[0,PI/2] -->
            <param name="simplified_estimation" value="1"/>

            <!-- define/undefine to enable/disable avmd on internal channel -->
            <param name="inbound_channel" value="0"/>

            <!-- define/undefine to enable/disable avmd on external channel -->
            <param name="outbound_channel" value="1"/>
        <!-- Per call settings end -->
    </settings>
</configuration>

Logo

DAMO开发者矩阵,由阿里巴巴达摩院和中国互联网协会联合发起,致力于探讨最前沿的技术趋势与应用成果,搭建高质量的交流与分享平台,推动技术创新与产业应用链接,围绕“人工智能与新型计算”构建开放共享的开发者生态。

更多推荐