Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I have config in my local lan asterisk for test. which is working fine.

With the same OS version and packages on "AWS Cloud" I am setting as following. But it don't get register "error = sip 408 - request timeout" same I am getting on all Iphone and Androids.

On my cloud all port are open TCP /UDP 1 to 65553

I have done following step to setup my asterisk server.

Kindly suggest us what went wrong with setting.

    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

vi /etc/selinux/config
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

secret=password ; put a strong, unique password here instead

secret=othersecretpassword ; put a strong, unique password here instead

secret=password ; put a strong, unique password here instead

vi extension.conf


service asterisk restart

asterisk -rvvvvc

sip reload
sip show peers
dialplan reload
dialplan show users
http show status

share|improve this question
The ports are open, but is your asterisk server listening on that external interface? –  NickW Feb 21 '14 at 9:15
NickW Thank you so much for your reply, YES IP address is ping-able from each phone & default url page is getting loading. When we test same setting on our local LAN /WIFI it work. We are able to telnet on 5060 on our static ipaddress. Pink –  user199331 Feb 21 '14 at 9:20
So when you do a netstat -an | grep :5060 you see something like listed? –  NickW Feb 21 '14 at 9:21
yes on TCP/UDP I can see internal ipaddress from AWS. $ netstat -an |grep :5060 tcp 0 0* LISTEN udp 0 0* $ telnet 5060 Trying 209.12.19.***... Connected to 209.12.19.***. Escape character is '^]'. –  user199331 Feb 21 '14 at 9:24
Nothing at all in your asterisk logs? –  NickW Feb 21 '14 at 9:49

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.