![软电话未注册到我的星号服务器](https://linux22.com/image/627476/%E8%BD%AF%E7%94%B5%E8%AF%9D%E6%9C%AA%E6%B3%A8%E5%86%8C%E5%88%B0%E6%88%91%E7%9A%84%E6%98%9F%E5%8F%B7%E6%9C%8D%E5%8A%A1%E5%99%A8.png)
我已经在本地局域网中配置了星号进行测试,运行正常。
使用“AWS Cloud”上相同的操作系统版本和软件包,我进行了如下设置。但它没有收到注册“错误 = sip 408 - 请求超时”,我在所有 iPhone 和 Android 上都遇到了同样的问题。
在我的云上,所有端口都开放 TCP /UDP 1 至 65553
我已按照以下步骤设置我的星号服务器。
请告诉我们设置中出了什么问题。
uname -a
Linux mysip.guggle.co.in 2.6.32-431.3.1.el6.x86_64 #1 SMP Fri Jan 3 21:39:27 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
cat /etc/redhat-release
CentOS release 6.5 (Final)
vi /etc/hosts
209.179.132.XXX sip.guggle.co.in sip ---> this is my static IP Address
vi /etc/sysconfig/network
HOSTNAME=guggle.co.in ---> FQDN
vi /etc/hostname
guggle.co.in
vi /etc/selinux/config
selinux=disabled
chkconfig iptables off
chkconfig ip6tables off
rpm -ivh http://ftp.jaist.ac.jp/pub/Linux/Fedora/epel/6Server/x86_64/epel-release-6-8.noarch.rpm
rpm -ivh http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-20.noarch.rpm
rpm -ivh http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-rawhide.noarch.rpm
cd /etc/yum.repos.d/ && wget http://packages.asterisk.org/centos/centos-asterisk-12.repo && wget http://packages.digium.com/centos/centos-digium-12.repo
cd /usr/src/ && wget http://downloads.asterisk.org/pub/telephony/asterisk-gui/asterisk-gui-2.1.0-rc1.tar.gz && tar zxvf asterisk-gui-2.1.0-rc1.tar.gz && cd asterisk-gui-2.1.0* && ./configure && make && make install && make checkconfig
cp -Rfv /var/lib/asterisk/* /usr/share/asterisk/ && mv /var/lib/asterisk /var/lib/asterisk_original && ln -s /usr/share/asterisk /var/lib/asterisk
sudo yum install gcc bison flex zlib-devel openssl-devel httpd mysql-server mysql-devel krb5-libs e2fsprogs-devel keyutils-libs-devel krb5-devel libselinux-devel libsepol-devel krb5-workstation mod_dav_svn subversion dahdi-linux dahdi-tools libpri asterisk
chkconfig asterisk on && chkconfig dahdi on && reboot
login as root :
cd /etc/asterisk
vi sip.conf
[raj]
type=friend
host=dynamic
secret=password ; put a strong, unique password here instead
context=users
[pjain]
type=friend
host=dynamic
secret=othersecretpassword ; put a strong, unique password here instead
context=users
[sham]
type=friend
host=dynamic
secret=password ; put a strong, unique password here instead
context=users
vi extension.conf
[users]
exten=>986001,1,Dial(SIP/raj,20)
exten=>986002,1,Dial(SIP/pjain,20)
exten=>986003,1,Dial(SIP/sham,20)
service asterisk restart
asterisk -rvvvvc
sip reload
sip show peers
dialplan reload
dialplan show users
http show status
http://guggle.co.in