Freeswitch 有3个种工作模式:
默认
Proxy Media http://wiki.freeswitch.org/wiki/Proxy_Media
Bypass Media http://wiki.freeswitch.org/wiki/Bypass_media
他们有什么区别,请自行查找。
我们这里说后两种怎么配置:
Proxy Media:
conf\sip_profiles\internal.xml 在 sip_profile 中设置proxy media 模式 其他模式注释掉,
但是仅仅这样还不行,还要在Dailplan中 ,在打电话bridge 之前
Bypass Media:
FreeSWITCH设置为bypass-media模式,FS不会对SDP控制,音视频也不走FS。
conf\sip_profiles\internal.xml中的设,将FreeSWITCH设为bypass-media模式,其他模式注释掉,
但是仅仅这样还不行,还要在Dailplan中的default.xml的local-extension中设置bypass-media=true
这里也有关于这2个模式的分析
http://log.medcl.net/item/2013/01/the-freeswitch-3-mode/
相关命令:
后台启动
freeswitch -nc
关闭后台freeswitch
freeswitch -stop
是否开启 SIP消息跟踪。另外,也可以在控制台上用以下命令开启和关闭 sip-trace:
sofia profile internal siptrace on
sofia profile internal siptrace off
sofia status profile internal reg
5.1. 修改配置sip_profiles/internal.xml
修改ext-rtp-ip和ext-sip-ip为freeswitch公网地址