Qnewbie的設定我放在sip.conf中好像還是不行...
不過我想問fromuser=(your verified PSTN tel. no.)是否要 ...
電腦超人 發表於 2010-10-7 14:20 
Try this
In the [general] of sip.conf- register = username:password@sip.nonoh.net:5060/nonoh1
複製代碼 add a context in sip.conf- [nonohuser]
- disallow = all
- allow = ulaw
- allow = alaw
- allow = gsm
- canreinvite = no
- context = from-nonoh
- dtmfmode = rfc2833
- fromdomain = sip.nonoh.net
- fromuser = 852XXXXXXXX ;your verified PSTN tel. no.
- host = sip.nonoh.net
- secret = password
- type = friend
- username = username
- insecure = port,invite
複製代碼 in Extensions.conf
add the following contexts- ; incoming call
- [from-nonoh]
- exten => nonoh1,1,Goto(internal,1100,1)
- ; outgoing call, limited calls to HK
- [CallingRule_nonohuser]
- exten => _812.,1,Dial(SIP/00852${EXTEN:3}@nonohuser,60)
複製代碼 最後 in extensions.conf under [DLPN_DP1]
add- 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 |