我计划实现星号SIP服务器来测试eMTA调用。我没有eMTA,所以我决定从开始,然后,当我将有一个eMTA和物理访问设备时,使用eMTA。我在Ubuntu20.4LTS上安装了星号,并遵循了这个手动https://ozeki.hu/p_1031-how-to-create-a-sip-account-in-asterisk.html
不幸的是它不起作用了。在控制台上,当我拨打101的电话时,我得到的是:
Connected to Asterisk GIT-18-9024bb989b currently running on MY-HOST-NAME (pid = 2288)
[Jun 9 18:57:54] NOTICE[2498]: res_pjsip/pjsip_distributor.c:676 log_failed_request: Request 'REGISTER' from '"101" <sip:101@server.ip.is.here>' failed for 'client.ip.is.here:5060' (callid: a58ff143-2d22-4600-a3f4-c6538bf98ac1) - No matching endpoint found
[Jun 9 18:57:54] NOTICE[2498]: res_pjsip/pjsip_distributor.c:676 log_failed_request: Request 'REGISTER' from '"101" <sip:101@server.ip.is.here>' failed for 'client.ip.is.here:5060' (callid: a58ff143-2d22-4600-a3f4-c6538bf98ac1) - No matching endpoint found
[Jun 9 18:57:54] NOTICE[2498]: res_pjsip/pjsip_distributor.c:676 log_failed_request: Request 'REGISTER' from '"101" <sip:101@server.ip.is.here>' failed for 'client.ip.is.here:5060' (callid: a58ff143-2d22-4600-a3f4-c6538bf98ac1) - Failed to authenticate
[Jun 9 18:57:54] NOTICE[2498]: res_pjsip/pjsip_distributor.c:676 log_failed_request: Request 'REGISTER' from '"101" <sip:101@server.ip.is.here>' failed for 'client.ip.is.here:5060' (callid: 71eb7de3-929d-4afa-b859-56e398ce91ee) - No matching endpoint found
在users.conf中添加
[100]
type=friend
username=100
callerid=100
secret=100
context=test
host=dynamic
allow=all
[101]
type=friend
username=101
callerid=101
secret=101
context=test
host=dynamic
allow=all
extensions.conf
[test]
exten => 100,1,Dial(SIP/100)
exten => 101,1,Dial(SIP/101)
PBX*CLI> sip show peers
Name/username Host Dyn Forcerport Comedia ACL Port Status Description
100/100 (Unspecified) D Auto (No) No 0 Unmonitored
101/101 (Unspecified) D Auto (No) No 0 Unmonitored
2 sip peers [Monitored: 0 online, 0 offline Unmonitored: 0 online, 2 offline]
作为软客户端,我使用jami:在这里输入图像描述
我做错了什么?诚实地尝试用两种不同的方法使用不同的手册,这两种方法都不起作用。
发布于 2023-02-21 13:09:29
你混合了两件事。现在有两个与SIP兼容的通道驱动程序在星号中:
您的配置(users.conf和extensions.conf)用于chan_sip,但是您的日志显示了chan_pjsip。
明智的做法是决定要使用哪一种,并将另一种禁用,方法是在modules.conf中列出带有noload => chan_xxxx.so的前缀
https://serverfault.com/questions/1102929
复制相似问题