我无法连接到 freeswitch 服务器,因为它配置不正确。我收到错误...
call failed: forbidden
freeswitch 日志显示...
2013-01-14 02:33:33.014079 [WARNING] sofia_reg.c:2491 Can't find user [[email protected]]
You must define a domain called '10.195.201.14' in your directory and add a user with the id="mike" attribute
and you must configure your device to use the proper domain in it's authentication credentials.
2013-01-14 02:33:33.014079 [NOTICE] sofia.c:1717 Hangup sofia/internal/[email protected] [CS_NEW] [CALL_REJECTED]
2013-01-14 02:33:33.014079 [NOTICE] switch_core_session.c:1517 Session 3 (sofia/internal/[email protected]) Ended
2013-01-14 02:33:33.014079 [NOTICE] switch_core_session.c:1521 Close Channel sofia/internal/[email protected] [CS_DESTROY]
当我搜索时,我得到了这个链接......
http://wiki.freeswitch.org/wiki/Sofia#Forcing_SIP_profile_to_use_a_static_IP_address
默认的 FreeSWITCH 配置会自动确定你的本地网络接口的 IP 地址。如果你想手动设置 IP(例如,如果你在一台机器上有多个网络接口),你可以在 Sofia 配置文件中设置以下参数:
<param name="rtp-ip" value="192.168.1.3"/>
这个 sofia 配置文件到底在哪里?
答案1
/usr/local/freeswitch/conf/autoload_configs/sofia.conf.xml
将 IP 地址添加到此文件后,我就能连接到该服务器。
显示频道和 freeswitch 客户端 (/usr/local/freeswitch/bin/fs_cli) 是需要记住的两个要点。core.db 文件是位于 /usr/local/freeswitch/db/ 中的 sql-lite 文件,似乎有诸如调用、完成、接口等表。