【发布时间】:2014-04-01 08:13:12
【问题描述】:
我第一次尝试在我的 Ubuntu Linux 机器上配置星号。我安装了星号并在执行以下命令时在我的终端中得到了这个...
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 调用 Extension 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.
这都是关于我的问题..我对星号和 Linux 都非常陌生,并且在这种情况下受到了严重打击。 请帮我解决这个问题。
【问题讨论】: