Freeswitch播放音乐文件



Freeswitch播放音乐文件


呱牛笔记


如何支持MP3文件的播放,mod_shout是 FreeSWITCH 的另一个模块,专门用于播放 MP3 文件。


<load module="mod_shout"/>

检查模块
freeswitch@localhost.localdomain> module_exists mod_shout
true
cd  src/mod/formats/mod_shout/
make
sudo make install
 
ll /usr/local/freeswitch/mod/mod_shout*
-rwxr-xr-x. 1 root root 1322 May 19 11:43 /usr/local/freeswitch/mod/mod_shout.la
-rwxr-xr-x. 1 root root 168560 May 19 11:43 /usr/local/freeswitch/mod/mod_shout.so


拨号计划:

<extension name="play_mp3">
  <condition field="destination_number" expression="^1234$">
    <action application="answer"/>
    <action application="playback" data="/usr/local/freeswitch/sounds/music.mp3"/> 
   <action application="hangup" data="CALL_REJECTED"/>
   </condition>
</extension>



-------------------广告线---------------
项目、合作,欢迎勾搭,邮箱:promall@qq.com


本文为呱牛笔记原创文章,转载无需和我联系,但请注明来自呱牛笔记 ,it3q.com

请先登录后发表评论
  • 最新评论
  • 总共0条评论