首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >星号显示未找到匹配端点

星号显示未找到匹配端点
EN

Server Fault用户
提问于 2022-06-09 19:30:13
回答 1查看 2.1K关注 0票数 0

我计划实现星号SIP服务器来测试eMTA调用。我没有eMTA,所以我决定从开始,然后,当我将有一个eMTA和物理访问设备时,使用eMTA。我在Ubuntu20.4LTS上安装了星号,并遵循了这个手动https://ozeki.hu/p_1031-how-to-create-a-sip-account-in-asterisk.html

不幸的是它不起作用了。在控制台上,当我拨打101的电话时,我得到的是:

代码语言:javascript
运行
复制
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中添加

代码语言:javascript
运行
复制
[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

代码语言:javascript
运行
复制
[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:在这里输入图像描述

我做错了什么?诚实地尝试用两种不同的方法使用不同的手册,这两种方法都不起作用。

EN

回答 1

Server Fault用户

发布于 2023-02-21 13:09:29

你混合了两件事。现在有两个与SIP兼容的通道驱动程序在星号中:

  • chan_sip:旧的技术标识符是SIP/
  • chan_pjsip:新的pjproject 1,哪个技术标识符是PJSIP/

您的配置(users.conf和extensions.conf)用于chan_sip,但是您的日志显示了chan_pjsip。

明智的做法是决定要使用哪一种,并将另一种禁用,方法是在modules.conf中列出带有noload => chan_xxxx.so的前缀

票数 0
EN
页面原文内容由Server Fault提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://serverfault.com/questions/1102929

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档