First of all I would like to let people know a little bit of HKBN 2b. Why do we need the service from HKBN 2b? This is because of HKBN 2b can provide the best VoIP service available in Hong Kong. It allows you to have mulitple inbound and outbound calls simultaneously. However the technical service provided by HKBN 2b is for SOFTPHONE ONLY. This is no support given for people who use either ATA or Asterisk.
Nevertheless some experts in the field of VoIP based on the packets from the softphone, they finally came up the solution of how to put HKBN 2b parameters into a Sipura/Linksys ATA box or an Asterisk box. You may find more details on the
www.voip-info.org.
Sipura/Linksys ATAIf Sipura/Linksys ATAs are used, the settings for HKBN 2b is as described clearly in the followin link:
http://www.hkepc.com/forum/viewthread.php?tid=1141462&page=218#pid18904520AsteriskIf Asterisk boxes are used, the settings for HKBN 2b is shown below:
1) Add the following and ip address in the /etc/hosts
203.80.89.135
s2hkbntel.net s21.hkbntel.net(please note that other numbers or names may be required for other HKBN 2b numbers, #203.80.89.139
s2hkbntel.net s22.hkbntel.net)
2) In /etc/asterisk/sip.conf, we have
[general]
srvlookup=yes
nat=yes
realm=sip.hongkong.com
externhost=sip.hongkong.com
fromdomain=sip.hongkong.com
localnet=192.168.1.0/255.255.255.0 ;change it as per your Asterisk network address
externrefresh = 1
defaultexpirey=120
bindport=5060
qualify=yes
disallow=all
allow=ulaw,alaw,gsm
alwaysauthreject=yes
tos_sip=cs3
tos_audio=ef
tos_video=af41
context=front-desk
pedantic = yes
;to register the HKBN 2b server for inbound calls
register => 33445566hk:password@s2hkbntel.net:5060/33445566
[hkbn2b]
type=peer
username=33445566hk
secret=password
port=5060
host=s2hkbntel.net
fromuser=333445566hk
fromdomain=s2hkbntel.net
canreinvite=no
insecure=port,invite
dtmfmode=auto
context=from-hkbn
3) In /etc/asterisk/extensions.conf, we have
;HKBN 2b HK PSTN Trunk
[trunk_hk_pstn]
exten => _9XX.,1,Dial(SIP/${EXTEN:1}@hkbn2b,,r)
exten => _9XX.,n,Hangup()
[internal]
include => trunk_hk_pstn
.
.
.
.
.
;HKBN 2b dial-in
[from-hkbn]
exten => 33445566,1,Dial(SIP/2001,,r)
exten => 33445566,n,Hangup()
What do we (OBi users) want?What is the settings in OBi devices such that we are able to use the HKBN 2b?