吴伟贤のBlog

Feed Rss

利用内置的WEB接口控制FreeSWITCH

12.28.2012, freeswitch, by .

从外部控制FreeSWTCH的方法有两种 – 通过EVENT SOCKET ;通过 built-in web interface。

下面具体介绍怎么通过内置的WEB接口控制FreeSWITCH。

1、安装 mod_xml_rpc 模块。

(1)WINDOWS版本的FreeSWITCH默认已安装。

(2)LINUX版本的FreeSWITCH需要按以下步骤进行安装使用。

i、在 modules.conf 中,将 #xml_int/mod_xml_rpc 修改为 xml_int/mod_xml_rpc。

ii、编译 mod_xml_rpc 模块

make mod_xml_rpc -install

iii、在 fs_cli 中运行 :load mod_xml_rpc 加载该模块。

2、访问方法:在IE地址栏输入  http://x.x.x.x:8080 ,x.x.x.x 是FreeSWITCH所在 主机 的 IP 。

3、输入  status 命令 的 方法 : http://x.x.x.x:8080/webapi/status

说明 : 通用格式 – http://x.x.x.x:8080/webapi/cmd?args

例如 :查看当前通话 http://x.x.x.x:8080/webapi/show?channels

官方链接 : http://wiki.freeswitch.org/wiki/Freeswitch_XML-RPC

评论已关闭。