Page 1 of 1

Unable to hear voice when called from a PSTN phone

PostPosted: Mon May 10, 2010 7:12 am
by supratik
Hi

I am using Skype for Asterisk (asterisk14-skypeforasterisk-1.4_1.0.11-1_centos5). My Asterisk server is running behind NAT/Firewall.

I have forwarded the ports 5060, 10001 and 20000 to my Asterisk server in my Firewall.

/sbin/iptables -t nat -A PREROUTING -p udp -d $PUBLICIP \
--destination-port 5060 -j DNAT --to-destination 192.168.1.171:5060
/sbin/iptables -A FORWARD -p udp -d 192.168.1.171 \
--destination-port 5060 -j ACCEPT

/sbin/iptables -t nat -A PREROUTING -p udp -d $PUBLICIP \
--destination-port 10001 -j DNAT --to-destination 192.168.1.171:10001
/sbin/iptables -A FORWARD -p udp -d 192.168.1.171 \
--destination-port 10001 -j ACCEPT

/sbin/iptables -t nat -A PREROUTING -p udp -d $PUBLICIP \
--destination-port 20000 -j DNAT --to-destination 192.168.1.171:20000
/sbin/iptables -A FORWARD -p udp -d 192.168.1.171 \
--destination-port 20000 -j ACCEPT

My sip_nat.conf contains the below configuration

localnet=192.168.1.0/255.255.255.0
externhost=server.mydomain.com
externrefresh=10
fromdomain=mydomain.com
nat=yes
qualify=yes
canreinvite=no

I am able to communicate using two SIP extensions, once connected from within the LAN and the other outside the Firewall.
I am also able to communicate to my default Skype business account from any other skype accounts.
The problem is when I am making a call from a PSTN phone at both end it rings but when the connection is established, I am not able to hear voice.

Please let me know if I am doing anything wrong in the configuration.


Warm Regards

Supratik