| 剛剛試在同一台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
 extensions.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
複製代碼[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)
 |