返回列表 發帖

HKBN 2b Asterisk两种注册参数可能

本帖最後由 角色 於 2010-8-10 05:47 編輯

在HKBN 2b,给你电话中,会出现两组注册参数,不能从电话里面猜测出来,要具体测试。如果第一组不成功,改用第二组设定。

假如HKBN 2b给你的电话号码和密码是

2b Telephone Number:36123456
2b Telephone Password :your_2b_password

Outbound Calls
打出的prefix是 9,那么拨打香港电话为:9 + <HK Telephone numbers>
<HK Telephone numbers> : 3 or more digits HK Telephone numbers

Inbound Calls
打入用extension 6001接。


第一组 Asterisk 2b settings

1) Edit /etc/hosts, add the following line:
203.80.89.135   s2hkbntel.net s21.hkbntel.net

2) Edit /etc/asterisk/sip.conf and add the following lines:

register => 36123456hk:your_2b_password@s2hkbntel.net:5060/36123456

[hkbn2b]
type=peer
nat=yes
username=3123456hk
secret=your_2b_password
port=5060
host=s2hkbntel.net
fromuser=36123456hk
fromdomain=s2hkbntel.net
canreinvite=no
insecure=very
disallow=all
;allow=ulaw
allow=alaw
dtmfmode=auto
context=from-hkbn

3) Edit/etc/asterisk/extensions.conf by adding the following lines

;HKBN 2b outbound calls
exten => _9XX.,1,Dial(SIP/${EXTEN:1}@hkbn2b,,r)
exten => _9XX.,n,Hangup()

;HKBN 2b inbound calls
[from-hkbn]
exten => 36123456,1,Dial(SIP/6001,,r)
exten => 36123456,n,Hangup()


第二组 Asterisk 2b settings

1) Edit /etc/hosts, replace the old one in the first settings "203.80.89.135   s2hkbntel.net s21.hkbntel.net" by the following line. Others remain unchanged.

203.80.89.139   s2hkbntel.net s22.hkbntel.net

For details, please refer to http://www.voip-info.org/wiki/view/asterisk+settings+HKBN+2b

YH

先感谢你有这样的热情,你这个想法非常好,在网上根本没有这个的中文材料,都是我们一点一滴积累下来的成果。

你的想法非常赞同,其实在的电脑里有【香港一人一VoIP电话】和【香港一人一Asterisk Server】。有时间我把资料整理好,然后大家可以参与修改或者增补都可以。

角色

TOP

已经放在固顶里的link里。

角色

TOP

那么你可以享受多线“同时”打出和打入的SIP Trunk乐趣。这个跟FXO port完全不同概念。如果跟它比,可能是E1 Trunk吧!

角色

TOP

你是都有多过一个2b号码呢?

角色

TOP

What is the error message when you are trying to make outbound calls via 2b trunk?

YH

TOP

Please let me see the settings for 2b outbound call in your extensions.conf.

YH

TOP

Since you are using Digium Asterisk-GUI to connect your 2b service, you may go to the HKEPC forum to check the thread 【ATCOM IP-01 + FXO】for the codes for 2b registration.

YH

TOP

How is it going?  Are you able to make outbound calls now?

YH

TOP

Are you using Digium Asterisk-GUI or using Asterisk Programming Language in configuring your 2b?

YH

TOP

You meant you use using APL in a machine with Asterisk-GUI 2.0 installed right?

YH

TOP

For IP-01, lttliang has one and he put his 2b in ip-01 without any problems in both outbound and inbound calls.

YH

TOP

If you still have problem, I may help you by letting me know the credentials of your 2b again. I shall implement in my Asterisk 1.4 server in Hong Kong. If it works for both inbound and outbound calls in Asterisk 1.4, then I believe there may be some settings in Asterisk 1.6 that you have figured out what they are.

YH

TOP

It seems that you are trying your very best to fix the 2b problem yourself. I wish you could make your 2b system work.

TOP

Very good news!How can you do it? What are the problems encountered in the past and the way to fix the problems?

Try to put your IVR under the [internal] label such that it can see all the internal extensions.

YH

TOP

返回列表