返回列表 發帖

在Asterisk中註冊nonoh問題

我在我的asterisk中註冊nonoh.net帳號...
但好像怎設定也是連不上的...
也是說:
"Got SIP response 400 "Bad request" back from 77.72.169.134"
但我用sip show registry看到是registered的...

嗯~最初我是用GUI註冊trunk的...
後來在CLI改也好像不行...已經試了不少方法...

現在的設定是...
  1. [trunk_4]
  2. host = sip.nonoh.net
  3. username = (loginid)
  4. secret = (password)
  5. trunkname = nonoh.net 0001 ; GUI metadata
  6. context = DID_trunk_4
  7. group = null
  8. hasexten = no
  9. hasiax = no
  10. hassip = yes
  11. registeriax = no
  12. registersip = yes
  13. trunkstyle = voip
  14. ;fromdomain = sip.nonoh.net
  15. fromuser = (loginid)
  16. insecure = no
  17. ;insecure = port,invite
  18. ;authuser = (loginid)
  19. disallow = all
  20. allow = ulaw,alaw,gsm,g726
複製代碼
錯誤碼是這個...
  1.   == Using SIP RTP CoS mark 5
  2.   == Using SIP VRTP CoS mark 6
  3.     -- Called trunk_4/
  4.     -- Got SIP response 400 "Bad request" back from 194.120.0.198
  5.     -- SIP/trunk_4-00000001 is circuit-busy
  6.   == Everyone is busy/congested at this time (1:0/1/0)
  7.     -- Executing [1-dial@macro-trunkdial-failover-0.3:2] GotoIf("SIP/6001-00000000", "0 > 0 ?1-CONGESTION,1:1-out,1") in new stack
  8.     -- Goto (macro-trunkdial-failover-0.3,1-out,1)
  9.     -- Executing [1-out@macro-trunkdial-failover-0.3:1] Hangup("SIP/6001-00000000", "") in new stack
  10.   == Spawn extension (macro-trunkdial-failover-0.3, 1-out, 1) exited non-zero on 'SIP/6001-00000000' in macro 'trunkdial-failover-0.3'
複製代碼
原本是insecure = port,invite的...
是哪裡出錯呢?

而且我用xlite登入同一nonoh帳號是成功打出的...
各位可以幫忙一下嗎?
謝謝~

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

200 minutes a week might not sufficient for multiple users. However, for less 120 bucks, you get some what 4000 minutes to call. It is still good enough.

If you are an intensive IDD user, might be the SKYPE+siptosis a good solution. The FUP of 50 numbers + 300 minutes per day is applied for SKYPE.

Just wondering, the multi-trunk siptosis, how does it work? Has anyone tried it?

TOP

原來nonoh的免費餐也有限制啊~
http://www.nonoh.net/en/termsofuse.html
(在最底的...有誰會看到底啊...)
Free calls with Nonoh
New users can try Nonoh out for free for a total of 60 minutes. During this trial period you can only call the destinations marked as free. Register your account by buying credit in order to extend your free calls.

Registered users get max 200 minutes per week of free calls, measured over the last 7 days and per unique IP address. Unused free minutes cannot be taken to the following week(s). If limit is exceeded the normal rates apply. During your Freedays you can call all destinations listed as "Free" for free. When you have run out of Freedays, the normal rates apply. You can get new Freedays by buying credit.


還想找些可以代替0088的說...
看來還是乖乖的付鈔給李老闆了...

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

成功了~謝謝各位前輩幫忙~
應該是在extensions.conf中的那句有問題...(GUI gen出來的...)
  1. ;exten = _00852XXXXXXXX,1,Macro(trunkdial-failover-0.3,${trunk_4}/${FILTER(,${EXTEN:0})},,trunk_4,)
複製代碼
但...原來nonoh是有次數限制的...
原本還很天真的以為可以免費用它們的IDD...

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

Basically. Qnewbie's config is ok to work [tested and confirmed]
ckleea 發表於 2010-10-7 05:54

Qnewbie的設定我放在sip.conf中好像還是不行...
不過我想問fromuser=(your verified PSTN tel. no.)是否要填在網站登記的那個電話號碼?(一定要填的嗎?)

TOP

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

TOP

回復 1# 電腦超人

CLI (command line interface) and APL (Asterisk Programming Language)是两个不同的东西。

GUI和APL都可以用CLI,不知道楼主是否不用GUI,而改用APL,而用CLI去看APL呢?

角色

TOP

Hope it would work:

[nonohuser]
disallow=all
allow=ulaw
allow=alaw
allow=gsm
canreinvite=no
context=nonoh_context
dtmfmode=rfc2833
fromdomain=sip.nonoh.net
fromuser=xxxxxxxxxxx ;your verified PSTN tel. no.
host=sip.nonoh.net
secret=nonohpassword
type=friend
username=nonohuser
insecure = port,invite

TOP

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

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

可能同我的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

返回列表