返回列表 發帖
可能同我的2b account 一樣,可以嘗試加 stunaddr=stun.xten.com in [general] of sip.conf if you are using asterisk 1.6

將你的 trunk setting 搬到 sip.conf

[hkbn2b]
type = friend
nat = yes
username = xxxxxxxxhk
secret = password
port = 5060
host = s2hkbntel.net
fromuser = xxxxxxxxhk
fromdomain = s2hkbntel.net
canreinvite = no
insecure = invite
disallow = all
allow = alaw
;dtmfmode = rfc2833
context = from-hkbn2b
outboundproxy = 203.80.89.139
quality = no

TOP

我在我的asterisk中註冊nonoh.net帳號...
但好像怎設定也是連不上的...
也是說:
"Got SIP response 400 "Ba ...
電腦超人 發表於 2010-10-6 17:18



    You may add fromuser = because I notice the bad request contains a message of 192.168.0.xxx (local IP address)
You can confirm by entering the following in the CLI, sip set debug peer "your trunk"

TOP

另外,我估nonoh 同 voipbuster 差唔多,應該唔難解決。

TOP

Basically. Qnewbie's config is ok to work [tested and confirmed]

TOP

Qnewbie的設定我放在sip.conf中好像還是不行...
不過我想問fromuser=(your verified PSTN tel. no.)是否要 ...
電腦超人 發表於 2010-10-7 14:20


Try this


In the [general] of sip.conf
  1. register = username:password@sip.nonoh.net:5060/nonoh1
複製代碼
add a context in sip.conf
  1. [nonohuser]
  2. disallow = all
  3. allow = ulaw
  4. allow = alaw
  5. allow = gsm
  6. canreinvite = no
  7. context = from-nonoh
  8. dtmfmode = rfc2833
  9. fromdomain = sip.nonoh.net
  10. fromuser = 852XXXXXXXX ;your verified PSTN tel. no.
  11. host = sip.nonoh.net
  12. secret = password
  13. type = friend
  14. username = username
  15. insecure = port,invite
複製代碼
in Extensions.conf

add the following contexts
  1. ; incoming call
  2. [from-nonoh]
  3. exten => nonoh1,1,Goto(internal,1100,1)

  4. ; outgoing call, limited calls to HK
  5. [CallingRule_nonohuser]
  6. exten => _812.,1,Dial(SIP/00852${EXTEN:3}@nonohuser,60)
複製代碼
最後 in extensions.conf under [DLPN_DP1]
add
  1. include = CallingRule_nonohuser
複製代碼
Save and reload asterisk

When you dial 8123456789, nonoh will dial 008523456789

Of course, you can change the CallingRule_nonohuser context to all international calls

TOP

本帖最後由 ckleea 於 2010-10-8 10:27 編輯
成功了~謝謝各位前輩幫忙~
應該是在extensions.conf中的那句有問題...(GUI gen出來的...)但... ...
電腦超人 發表於 2010-10-8 06:14



    免費午餐是唔容易,不過他都有 120 freedays when you subscribed. 基本上是同VOIPbuster and other 一樣

TOP

I have 4 trunks set up for skype. Not difficult. All you need are to buy the two softwares from them. It has price increase from US$10 to now more than US$20 in total. Worth to try.

TOP

返回列表