我无法连接到 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 配置文件到底在哪里?
将 IP 地址添加到此文件后,我能够连接到此服务器。
show channels 和 freeswitch client (/usr/local/freeswitch/bin/fs_cli) 是要记住的两个要点。core.db 文件是在 /usr/local/freeswitch/db/ 中找到的 sql-lite 文件,似乎有调用、完成、接口等表。