FreeSWITCH 默認配置只能 在本機連接, 要從 外面連接, 就要配置:
1 acl.conf.xml::network-lists/list 2 event_socket.conf.xml::apply-inbound-acl 參數 (指定使用哪個acl.xml::network-lists/list)
而 apply-inbound-acl 參數在 event_socket.conf.xml 默認值為 loopback.auto ,會拒絕外部客戶端的連入.
在 acl.conf.xml 里設置 連接規則 , 然后再 event_socket.conf.xml 里配置使用哪個規則.
簡單 來說, 就直接 使用 acl.conf 里默認有的 哪個規則 "lan"
acl.conf 里 設置 規則的 格式
<list name="domains" default="deny">
<node type="allow" domain="$${domain}"/>
<node type="allow" cidr="192.168.1.0/24"/>
<node type="allow" cidr="192.168.34.0/24"/>
<node type="allow" cidr="127.0.0.1/24"/>
</list>