gpt4 book ai didi

linux - app_dial.c : dial_exec_full Unable to create channel type SIP (cause 20 Unknown)

转载 作者:太空狗 更新时间:2023-10-29 12:03:51 28 4
gpt4 key购买 nike

我第一次尝试在我的 Ubuntu Linux 机器上配置 Asterisk 。我安装了 Asterisk 并在执行以下命令时在我的终端中得到了这个...

root@ubuntu:~# asterisk -r
Asterisk 1.8.4.4~dfsg-2ubuntu1.1, Copyright (C) 1999 - 2010 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
Connected to Asterisk 1.8.4.4~dfsg-2ubuntu1.1 currently running on ubuntu (pid = 1062)
ubuntu*CLI>

现在我更新了 sip.conf 如下..

[general]
port = 5060
bindaddr = 0.0.0.0
context = others

[2000]
type=friend
context=my-phones
secret=1234
host=dynamic

[2001]
type=friend
context=my-phones
secret=1234
host=dynamic

这是我的 extensions.conf

[others]

[my-phones]
exten => 2000,1,Dial(SIP/2000)
exten => 2001,1,Dial(SIP/2001)

现在出于测试目的,我已经下载了 Twinkle 软电话并尝试使用用户名 2000 和域 Localhost< 配置分机 2000/ 。现在我在 twinkle 上面注册后,我试图从 Twinkle 调用扩展 2001 但它在 Asterisk CLI 中给出了以下错误..

 [Apr  1 03:49:58] WARNING[2301]: app_dial.c:2041 dial_exec_full: Unable to create   channel of type 'SIP' (cause 20 - Unknown)

这是命令 sip show peers 在终端中的结果..

  Name/username              Host                                    Dyn Forcerport ACL Port     Status     
2000/2000 127.0.0.1 D 5061 Unmonitored
2001 (Unspecified) D 0 Unmonitored
2 sip peers [Monitored: 0 online, 0 offline Unmonitored: 1 online, 1 offline]

Sip 注册也显示为零..

ubuntu*CLI> sip show registry
Host dnsmgr Username Refresh State Reg.Time
0 SIP registrations.

这都是关于我的问题..我对 asterisk 和 Linux 都是新手,并且对这种情况感到非常震惊。请帮我解决这个问题。

最佳答案

您收到此错误是因为 2001 未在任何地方注册。

在另一个软电话上注册2001试试。

关于linux - app_dial.c : dial_exec_full Unable to create channel type SIP (cause 20 Unknown),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22780207/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com