接收来自未知对等方的传入SIP连接

问题描述:

我在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 

有没有人有任何关于这个问题的想法。

根据您的跟踪,您正在使用freepxb网站。

所以,如果你使用它,这是很好的想法在你的网络传入部分添加数字。

“未知对等”是指星号与您的SIP段不匹配传入请求。有关更多信息,请启用调试并检查确切的星号。