返回列表 發帖
用hostname,而不用WAN IP

http://forum.pfsense.org/index.php?topic=18200.0;wap2

TOP

本帖最後由 角色 於 2012-10-17 09:40 編輯

Iptel Gateway (Trunk)

1. Change directory into /usr/local/freeswitch/conf/sip_profiles/external

2. vi iptel.org.xml, which contains the following code
  1. <include>
  2.   <gateway name="iptel-trunk">
  3.     <param name="username" value="login-name"/>
  4.     <param name="password" value="password-login-name"/>
  5.     <param name="realm" value="iptel.org"/>
  6.     <!-- iptel.org requires a 'proxy' parameter -->
  7.     <param name="proxy" value="sip.iptel.org"/>
  8.   </gateway>-->
  9. </include>
  10. ~
複製代碼
3. cli > reloadxml

4. cli > sofia status gives
0067.png
2012-10-16 22:18


5. How to make outbound call via iptel-trunk is still an unknown.

TOP

终于可以Internet外的SIP client注册到我的FS里。

失败原因:

1. Router NAT没有设好 (这个老问题,就是SIP,RTP ports要分好)
2. FS的SIP port没有设好 (从5060搞到5160)
3. FS的domain没有设好 (从IP改到别的domain)

SIP Client:

domain:5161
username
password

TOP

下个就是Gateways的打出和接入!!!
Gateways:

Iptel
HKBN 2b
ComNet Phone
OBi110

TOP

刚才找大陆member测试一下我的FreeSWITCH,效果不错。

0069.png
2012-10-18 22:31

TOP

下个目标先学习Dialplan。

TOP

Iptel and ComNet可以在FreeSWITCH上注册,但是HKBN 2b还不可以。

现在测试一下Iptel和ComNet的打出打入的FS Dialplan是怎样设置的。

TOP

本帖最後由 角色 於 2012-10-19 13:04 編輯

ComNet Phone (Formally called CM Phone) Gateway Settings on FreeSWITCH

1. Change directory into /usr/local/freeswitch/conf/sip_profiles/external

2. Create and edit a file "cnphone.xml" containing the following scripts
  1. <include>
  2.   <gateway name="cnphone">
  3.     <param name="username" value="85235018888"/>
  4.     <param name="password" value="123123"/>
  5.     <param name="proxy" value="202.0.179.3"/>
  6.   </gateway>-->
  7. </include>
  8. ~
複製代碼
3. Update the gateway xml file: cnphone.xml
  1. sofia profile external rescan reloadxml
複製代碼
4. Check the gateway registration status by
  1. freeswitch@internal> sofia status
  2.                      Name          Type                                       Data      State
  3. =================================================================================
  4.      external::cnphone       gateway           sip:85235018888@202.0.179.3:5060      REGED
  5. =================================================================================
複製代碼
5. When you see the word "REGED", it means that your gateway registration is complete.

TOP

Gateway (Trunk) outbound call

1. Change directory into /usr/local/freeswitch/conf/dialplan

2, vi default.xml and the following script at the early part of the script
  1.     <extension name="dial-8-digit-numbers">
  2.       <condition field="destination_number" expression="^(\d{8})$">
  3.       <action application="bridge" data="sofia/gateway/cnphone614/$1"/>
  4.       </condition>
  5.     </extension>
複製代碼
3. CLI > reloadxml

TOP

set好cn phone inbound,一打入就断线,跟asterisk一样!

TOP

就是华为的Switch不Standard,一看到silenceSupp=off就跟你say bye。

TOP

因为Huawei的softswitch不会有什么更改,而FreeSWITCH暂时没有方法或者option去屏蔽了SilenceSupp=off这一句。那么CN Phone就不能在FreeSWITCH上面用了。

TOP

返回列表