APP 和 API的區別:
一個APP是一個Application程序,它作為一個channel的一端與另一端的UA進行通信,相當於它工作在channel內部;而另一個API則是獨立於一個Channel之外的,它只能通過找到Channel的UUID來控制一個Channel,相當於第三者。
通常我們在控制台輸入命令是API,在Dialplan中執行的程序,大多是APP。
API 是在mod_commands中加載的。
APP則是在mod_dptools(Dialplan Tools).
當然有些模塊也有自己的API和APP,比如:mod_sofia。
API命令幫助
執行help可以看到所有的API的幫助信息。
WIKI幫助
mod_commands: http://wiki.freeswitch.org/wiki/mod_commands
mod_dptools: http://wiki.freeswitch.org/wiki/mod_dptools