zoukankan      html  css  js  c++  java
  • freeswitch.xml介绍

    freeswitch.xml 说明

    XML的根是 document

    在document是由多个section组成,每个section对应一部分功能。其中有两个X-PRE-PROCESS预处理指令,它的作用是将data参数指定的文件内容包含include到当前文件中来。

    <?xml version="1.0"?>
    <!--
        NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE
    
        This is the FreeSWITCH default config.  Everything you see before you now traverses
        down into all the directories including files which include more files.  The default
        config comes out of the box already working in most situations as a PBX.  This will
        allow you to get started testing and playing with various things in FreeSWITCH.
    
        Before you start to modify this default please visit this wiki page:
    
        http://wiki.freeswitch.org/wiki/Getting_Started_Guide#Some_stuff_to_try_out.21
    
        If all else fails you can read our FAQ located at:
    
        http://wiki.freeswitch.org/wiki/FreeSwitch_FAQ
    
        NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE
    -->
    <document type="freeswitch/xml">
      <!--#comment
          All comments starting with #command will be preprocessed and never sent to the xml parser
          Valid instructions:
          #include ==> Include another file to this exact point
                       (partial xml should be encased in <include></include> tags)
          #set     ==> Set a global variable (can be expanded during preprocessing with $$ variables)
                       (note the double $$ which denotes preprocessor variables)
          #comment ==> A general comment such as this
    
          The preprocessor will compile the full xml document to ${prefix}/log/freeswitch.xml.fsxml
          Don't modify it while freeswitch is running cos it is mem mapped in most cases =D
    
          The same can be achieved with the <X-PRE-PROCESS> tag where the attrs 'cmd' and 'data' are
          parsed in the same way.
      -->
      <!--#comment
          vars.xml contains all the #set directives for the preprocessor.
      -->
      <X-PRE-PROCESS cmd="include" data="vars.xml"/>
    
      <section name="configuration" description="Various Configuration">
        <X-PRE-PROCESS cmd="include" data="autoload_configs/*.xml"/>
      </section>
    
      <section name="dialplan" description="Regex/XML Dialplan">
        <X-PRE-PROCESS cmd="include" data="dialplan/*.xml"/>
      </section>
    
      <section name="chatplan" description="Regex/XML Chatplan">
        <X-PRE-PROCESS cmd="include" data="chatplan/*.xml"/>
      </section>
    
      <!-- mod_dingaling is reliant on the vcard data in the "directory" section. -->
      <!-- mod_sofia is reliant on the user data for authorization -->
      <section name="directory" description="User Directory">
        <X-PRE-PROCESS cmd="include" data="directory/*.xml"/>
      </section>
    
      <!-- languages section (under development still) -->
      <section name="languages" description="Language Management">
        <X-PRE-PROCESS cmd="include" data="lang/de/*.xml"/>
        <X-PRE-PROCESS cmd="include" data="lang/en/*.xml"/>
        <X-PRE-PROCESS cmd="include" data="lang/fr/*.xml"/>
        <X-PRE-PROCESS cmd="include" data="lang/ru/*.xml"/>
        <X-PRE-PROCESS cmd="include" data="lang/he/*.xml"/>
        <X-PRE-PROCESS cmd="include" data="lang/es/es_ES.xml"/>
        <X-NO-PRE-PROCESS cmd="include" data="lang/es/es_MX.xml"/>
        <X-PRE-PROCESS cmd="include" data="lang/pt/pt_BR.xml"/>
        <X-NO-PRE-PROCESS cmd="include" data="lang/pt/pt_PT.xml"/>
        <X-NO-PRE-PROCESS cmd="include" data="lang/sv/*.xml"/>
      </section>
    </document>
    

      

  • 相关阅读:
    Unity快速运行模式与减少编译等待时间
    神器 Trello Bug Tracker 使用介绍
    优化UGUI的ScrollRect
    Unity开源搜索引擎
    游戏技术分享网站 CEDEC
    帧同步技术总结
    Unity Text自动缩放文本
    系统知识坑洼之旅文件系统篇其一文件夹也是个文件?
    [代码修订版] Python 踩坑之旅进程篇其五打不开的文件
    [代码修订版] Python 踩坑之旅 [进程篇其四] 踩透 uid euid suid gid egid sgid的坑坑洼洼
  • 原文地址:https://www.cnblogs.com/damizhou/p/14130641.html
Copyright © 2011-2022 走看看