Page 1 of 1

Unable to hear voice when called from a PSTN phone

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

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
/sbin/iptables -A FORWARD -p udp -d \
--destination-port 5060 -j ACCEPT

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

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

My sip_nat.conf contains the below configuration


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