標題:
一個asterisk裡放多個2b號碼問題
[打印本頁]
作者:
電腦超人
時間:
2013-3-12 14:19
標題:
一個asterisk裡放多個2b號碼問題
剛剛試在同一台asterisk裡放了多個2b號碼...
但是打入的時候不知是否設定錯了甚麼...總是沒有認到對應號碼的dialplan...
如果以下的設定的話...361AAAAA是可以打入的...
但是BBBBB會顯示:
[Mar 12 13:49:21] NOTICE[6244]: chan_sip.c:21358 handle_request_invite: Call from '361AAAAAhk' to extension '361BBBBB' rejected because extension not found in context 'DLPN_IC_DialPlan'.
sip.conf
register => 361AAAAAhk:password@s2hkbntel.net:5060/361AAAAA
register => 361BBBBBhk:password@s2hkbntel.net:5060/361BBBBB
[hkbn2b361AAAAA]
type=peer
;type=friend
nat=yes
username=361AAAAAhk
secret=password
port=5060
host=s2hkbntel.net
fromuser=361AAAAAhk
fromdomain=s2hkbntel.net
canreinvite=no
insecure=invite
disallow=all
allow=alaw
allow=ulaw
dtmfmode=auto
context=DLPN_IC_DialPlan
outboundproxy = 203.80.89.139
quality = no
[hkbn2b361BBBBB]
type=peer
nat=yes
username=361BBBBBhk
secret=password
port=5060
host=s2hkbntel.net
fromuser=361BBBBBhk
fromdomain=s2hkbntel.net
canreinvite=no
insecure=invite
disallow=all
allow=alaw
allow=ulaw
dtmfmode=auto
context=DLPN_IC_DialPlan_BBBB
outboundproxy = 203.80.89.139
quality = no
複製代碼
extensions.conf
[DLPN_IC_DialPlan]
include = default
include = local
include = parkedcalls
include = conferences
include = ringgroups
include = voicemenus
include = queues
include = voicemailgroups
include = directory
include = from-hkbn
[DLPN_IC_DialPlan_BBBB]
include = default
include = local
include = parkedcalls
include = conferences
include = ringgroups
include = voicemenus
include = queues
include = voicemailgroups
include = directory
include = from-hkbn_BBBB
[from-hkbn]
exten => 361AAAAA,1,NoOp(Incoming call from 361AAAAA)
exten => 361AAAAA,n,Answer()
exten => 361AAAAA,n,Dial(SIP/AAAA,30,Ttr)
[from-hkbn_BBBB]
exten => 361BBBBB,1,NoOp(Incoming call from 361BBBBB)
exten => 361BBBBB,n,Answer()
exten => 361BBBBB,n,Dial(SIP/BBBB,30,Ttr)
複製代碼
作者:
電腦超人
時間:
2013-3-12 15:01
Incoming call的話致電361BBBBB號碼好像總是用了361AAAAA的DialPlan...
是我設定錯誤了嗎?
作者:
角色
時間:
2013-3-12 20:04
回復
2#
電腦超人
哈哈!答案是无限个!!!
你的问题是,不能有多from-hkbn,应该只有一个。
作者:
電腦超人
時間:
2013-3-12 21:56
噢...抱歉好像有點打錯了......
sip.conf那裡context應該一個是DLPN_IC_DialPlan,另一個是DLPN_IC_DialPlan_BBBB
然後兩個在extensions.conf裡分別include"from-hkbn"和"from-hkbn_BBBB"...
先修正一下......抱歉......
作者:
角色
時間:
2013-3-12 22:03
要同一个才可以,不能分开。
歡迎光臨 電訊茶室 (http://telecom-cafe.com/forum/)
Powered by Discuz! 7.2