软电话不连接星号

我正尝试将我的X-Lite与远程Asterisk服务器连接起来。 我已经在Ubuntu VPS服务器(14.04)上安装了这个教程: https : //www.callcentric.com/support/device/asterisk/1_8我已经关注了那篇文章上的所有内容。

sip.conf中我改变了这样的:

[general] dtmfmode = rfc2833 context=from-callcentric srvlookup=yes register => 1777MYCCID:[email protected] session-timers=refuse [callcentric] type=peer context=from-callcentric host=callcentric.com fromdomain=callcentric.com defaultuser=1777MYCCID fromuser=1777MYCCID secret=SUPERSECRET insecure=port,invite disallowed_methods=UPDATE directmedia=no videosupport=no disallow=all allow=ulaw [123] context=to-callcentric type=friend defaultuser=123 secret=PASSWORD host=dynamic 

在extensions.conf中,我在底部添加了这一行:

 [from-callcentric] exten => s,1,Dial(SIP/123) [to-callcentric] exten => _XX,1,Dial(SIP/${EXTEN}@callcentric) 

从docker:

  asterisk -r Privilege escalation protection disabled! See https://wiki.asterisk.org/wiki/x/1gKfAQ for more details. Asterisk 11.7.0~dfsg-1ubuntu1, Copyright (C) 1999 - 2013 Digium, Inc. and others. Created by Mark Spencer <[email protected]> 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 11.7.0~dfsg-1ubuntu1 currently running on torrent (pid = 518) torrent*CLI> torrent*CLI> sip show registry Host dnsmgr Username Refresh State Reg.Time callcentric.com:5060 N 17772807810 45 Registered Thu, 10 Sep 2015 11:00:55 1 SIP registrations. torrent*CLI> sip show peers Name/username Host Dyn Forcerport ACL Port Status Description 123/123 (Unspecified) D a 0 Unmonitored callcentric/17772807810 204.11.192.163 a 5080 Unmonitored 2 sip peers [Monitored: 0 online, 0 offline Unmonitored: 1 online, 1 offline] 

但在使用扩展123连接我的softphone X-Lite和Asterisk后,我得到这个错误: SIP error 408 。 我使用了以下信息:

 User ID: 123 Pass: 123 Domain: My VPS IP 

我哪里错了? 任何build议,请…

您需要将您的服务器的公有IP地址设置为X-Lite中帐户设置中的SIP代理。 我不完全确定为什么这不起作用,但添加它为我连接X-Lite到我的星号。