2017-07-07 83 views
0

我在sip_additional.config中創建了2個用戶。就像:接收來自未知對等方的傳入SIP連接

[james] 
secret=12345 
context=tenancy1 
host=dynamic 
type=friend 
allow=ulaw,alaw 

[caleb] 
secret=12345 
context=tenancy1 
host=dynamic 
type=friend 
allow=ulaw,alaw 

並創建了上述上下文的撥號方案。在這裏,我分配重複的擴展名,但具有不同的上下文即。 2222,2225已分配給其他用戶,但具有不同的上下文(從內部)。

[tenancy1] 
exten => 2222,1,NoOp(james calling) 
same => n,Dial(SIP/james) 
same => n,Hangup 

exten => 2225,1,NoOp(caleb calling) 
same => n,Dial(SIP/caleb) 
same => n,Hangup 

這裏的問題是,當我撥打電話2222至2225年,然後2224響起來,但2225無法撥打電話。我從CLI跟蹤,這是說

-- Executing [[email protected]:1] NoOp("SIP/caleb-00000004", "Received incoming SIP connection from unknown peer to 2222") in new stack 
-- Executing [[email protected]:2] Set("SIP/caleb-00000004", "DID=2222") in new stack 
-- Executing [[email protected]:3] Goto("SIP/caleb-00000004", "s,1") in new stack 
-- Goto (from-sip-external,s,1) 
-- Executing [[email protected]:1] GotoIf("SIP/caleb-00000004", "0?checklang:noanonymous") in new stack 
-- Goto (from-sip-external,s,5) 
-- Executing [[email protected]:5] Set("SIP/caleb-00000004", "TIMEOUT(absolute)=15") in new stack 
-- Channel will hangup at 2017-07-07 07:59:00.448 EDT. 
-- Executing [[email protected]:6] Log("SIP/caleb-00000004", "WARNING,"Rejecting unknown SIP connection from 172.16.9.112"") in new stack 
[2017-07-07 07:58:45] WARNING[5606][C-00000003]: Ext. s:6 @ from-sip-external: "Rejecting unknown SIP connection from 172.16.9.112" 
-- Executing [[email protected]:7] Answer("SIP/caleb-00000004", "") in new stack 
[2017-07-07 07:58:45] NOTICE[5606][C-00000003]: res_rtp_asterisk.c:4365 ast_rtp_read: Unknown RTP codec 95 received from '172.16.9.112:8000' 
-- Executing [[email protected]:8] Wait("SIP/caleb-00000004", "2") in new stack 
-- Executing [[email protected]:9] Playback("SIP/caleb-00000004", "ss-noservice") in new stack 
-- <SIP/caleb-00000004> Playing 'ss-noservice.ulaw' (language 'en') 
-- Executing [[email protected]:10] PlayTones("SIP/caleb-00000004", "congestion") in new stack 
-- Executing [[email protected]:11] Congestion("SIP/caleb-00000004", "5") in new stack 

有沒有人有任何關於這個問題的想法。

回答

-1

根據您的跟蹤,您正在使用freepxb網站。

所以,如果你使用它,這是很好的想法在你的網絡傳入部分添加數字。

「未知對等」是指星號與您的SIP段不匹配傳入請求。有關更多信息,請啓用調試並檢查確切的星號。