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

时间:2017-07-07 12:32:29

标签: asterisk

我在sip_additional.config中创建了2个用户。这就像:

[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 [2222@from-sip-external:1] NoOp("SIP/caleb-00000004", "Received incoming SIP connection from unknown peer to 2222") in new stack
-- Executing [2222@from-sip-external:2] Set("SIP/caleb-00000004", "DID=2222") in new stack
-- Executing [2222@from-sip-external:3] Goto("SIP/caleb-00000004", "s,1") in new stack
-- Goto (from-sip-external,s,1)
-- Executing [s@from-sip-external:1] GotoIf("SIP/caleb-00000004", "0?checklang:noanonymous") in new stack
-- Goto (from-sip-external,s,5)
-- Executing [s@from-sip-external:5] Set("SIP/caleb-00000004", "TIMEOUT(absolute)=15") in new stack
-- Channel will hangup at 2017-07-07 07:59:00.448 EDT.
-- Executing [s@from-sip-external: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 [s@from-sip-external: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 [s@from-sip-external:8] Wait("SIP/caleb-00000004", "2") in new stack
-- Executing [s@from-sip-external:9] Playback("SIP/caleb-00000004", "ss-noservice") in new stack
-- <SIP/caleb-00000004> Playing 'ss-noservice.ulaw' (language 'en')
-- Executing [s@from-sip-external:10] PlayTones("SIP/caleb-00000004", "congestion") in new stack
-- Executing [s@from-sip-external:11] Congestion("SIP/caleb-00000004", "5") in new stack

有没有人对这个问题有所了解。

1 个答案:

答案 0 :(得分:-1)

您正在使用freepxb网络。

因此,如果您正在使用它,那么在传入的部分中在您的网站上添加号码是个好主意。

“未知对等体”表示星号与您的sip部分的传入请求不匹配。有关更多信息,请启用调试并检查星号的确切内容。