星号 +未找到 SIP 404

发布于 2024-12-28 08:12:50 字数 1005 浏览 3 评论 0原文

我想在我家里制作一个小型的 Asterisk 服务器。我在 Ubuntu 上安装了 asterisk 我使用两台计算机,以便相互连接。当我连接时,我可以在 Wireshark 中看到该注册器正常。这是 sip show peers 命令的输出:

Name/username              Host                                    Dyn Forcerport ACL Port     Status     
uriel/uriel                192.168.1.101                            D   N      5060     Unmonitored 
vibrant/vibrant            192.168.1.100                            D   N      5060     Unmonitored 
2 sip peers [Monitored: 0 online, 0 offline Unmonitored: 2 online, 0 offline]

但问题是当我调用 sip:[电子邮件受保护] 来自 uriel 我收到 404 未找到。

对不起我的英语。

正如用户 Mealstrom 所问: sip配置文件

[vibrant]
type=friend
username=vibrant
secret=
host=dynamic
context=tutorial
nat=yes
qualify=yes

[uriel]
type=friend
username=uriel
secret=
host=dynamic
context=tutorial
nat=yes
qualify=yes

I want to make a small Asterisk server in my house. I installed asterisk on my Ubuntu
and I use 2 computers, in order to connect to one another. when I connect I can see in Wireshark that registrar ok. here is the output of sip show peers command:

Name/username              Host                                    Dyn Forcerport ACL Port     Status     
uriel/uriel                192.168.1.101                            D   N      5060     Unmonitored 
vibrant/vibrant            192.168.1.100                            D   N      5060     Unmonitored 
2 sip peers [Monitored: 0 online, 0 offline Unmonitored: 2 online, 0 offline]

But the problem is when I call sip:[email protected] from uriel I get 404 not found.

And sorry for my English.

as user mealstrom asked:
sip.conf

[vibrant]
type=friend
username=vibrant
secret=
host=dynamic
context=tutorial
nat=yes
qualify=yes

[uriel]
type=friend
username=uriel
secret=
host=dynamic
context=tutorial
nat=yes
qualify=yes

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

热鲨 2025-01-04 08:12:50

您需要设置拨号方案。在 sip.config 中,您为每个 sip 用户设置默认上下文。然后在extensions.conf 中创建这个上下文并在其中保存拨号方案。你可以看看asterisk的例子——它们非常好。当然,如果您还有问题,请在这里提问:)

You need to setup a dialplan. In your sip.config you set default context for each sip user. Then in extensions.conf you create this context and save the dialplan in it. You can see asterisk's examples - they are pretty good. Of course if you still have problems ask here :)

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文