Freeswitch

索非亞簡介的位置

  • January 15, 2013

我無法連接到 freeswitch 伺服器,因為它沒有正確配置。我收到一個錯誤…

call failed: forbidden

freeswitch 日誌說…

2013-01-14 02:33:33.014079 [WARNING] sofia_reg.c:2491 Can't find user [mike@10.195.201.14]
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/mike@ec.amazonaws.com [CS_NEW] [CALL_REJECTED]
2013-01-14 02:33:33.014079 [NOTICE] switch_core_session.c:1517 Session 3 (sofia/internal/mike@ec.amazonaws.com) Ended
2013-01-14 02:33:33.014079 [NOTICE] switch_core_session.c:1521 Close Channel sofia/internal/mike@ec2amazonaws.com [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 個人資料文件到底在哪裡?

/usr/local/freeswitch/conf/autoload_configs/sofia.conf.xml

將 IP 地址添加到此文件後,我能夠連接到此伺服器。

顯示頻道和 freeswitch 客戶端 (/usr/local/freeswitch/bin/fs_cli) 是要記住的 2 個要點。core.db 文件是在 /usr/local/freeswitch/db/ 中找到的 sql-lite 文件,似乎有呼叫、完成、介面等表。

引用自:https://serverfault.com/questions/467742