安装模块

mod_rst.so 拷贝到/usr/local/freeswitch/mod/mod_rst.so

复制rst.confconf/autoload_coinfigs

配置app

  • conf/dialplan/default.xml

<action application="set" data="execute_on_answer=rst 127.0.0.1 9527"/>

<extension name="Local_Extension">
      <condition field="destination_number" expression="^(10[01][0-9])$">
      <action application="set" data="execute_on_answer=rst 127.0.0.1 9527"/>
	<action application="export" data="dialed_extension=$1"/>
	.....

加载模块

通这 fs_cliload mod_rst 加载