【NWT NetTalk】——Asterisk 1.8 Settings
本帖最後由 角色 於 2013-4-13 05:32 編輯
第一先谢谢ppmail168的借出NWT NetTalk的信息和测试电话,终于成功了Asterisk Settings。
主要谈论的是sip.conf, 而extensions.conf就不说,因为是标准的settings。
为了方便下面的settings的解读,假设NWT NetTalk (ATA) SIP Credential如下:
Extension=HK Telephone number: 33446688
Secret=password_for_nettalk for 33446688 (please PM if you want it)
Server=ngn2.nwtbb.com
Setting 1:简化版- ;sip.conf
- [general]
- .
- .
- .
- defaultexpirey=300
- .
- .
- .
- ;NWT telephone number 33446688,
- register => 33446688:password_for_nettalk@ngn2.nwtbb.com/33446688
- .
- [nwt-nettalk]
- type=peer
- fromuser=33446688
- secret=password_for_nettalk
- host=ngn2.nwtbb.com
- context = from-nwt-nettalk
複製代碼 如果Settings 1不成,可以考虑下面的Setting 2。
Setting 2:详细版- ;sip.conf
- [general]
- .
- .
- .
- ;NWT telephone number 33446688,
- register => 33446688:password_for_nettalk@ngn2.nwtbb.com/33446688~300
- [nwt-nettalk]
- username=33446688
- type=peer
- secret=password_for_nettalk
- qualify=yes
- port=5060
- insecure = port,invite
- host=ngn2.nwtbb.com
- fromusername=33446688
- fromuser=33446688
- fromdomain=home1.com
- dtmfmode = rfc2833
- canreinvite = no
- defaultexpirey=300
- context = from-nwt-nettalk
複製代碼 #
SIP Settings for NWT NetTalk注意的地方:
1)用register command注册打入(incoming)的信息,不然不让打出和打入
2)defaultexpirey需要300 seconds,在sip.conf的[genera]下define(看Setting 1),或者在register string的最后~300(看Setting 2)。 |