OpenWrt Forum Archive

Topic: no SOUND with openwrt & asterisk

The content of this topic has been archived on 13 Mar 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hi guys (gals?)

I am successfully running Asterisk using the WhiteRussian version.
When I use any telephone registered INSIDE my network (on a 192.168... ip) I have no problems with audio.

but

When I use a telephone registered to Asterisk from OUTSIDE my network (say.. from work) then the registration works fine (I had to open the 8050 ports on openwrt to udp and tcp) BUT THERE IS NO AUDIO (Everything else works fine though.. including telephoning my telephone at home... or using the dialplans in extensions.conf to call outside lines).

I want to know what I have to tell openwrt so that my audio works with Asterisk with connections coming from the internet.

thanx for any help you might lend me!
/SHAWN

p.s. I really don't think this is a problem on the client side of my sip connection. I believe this because if I configure my client (Xlite) to register to a service OTHER than my asterisk server on openwrt then the audio works fine.

p.p.s. My client is in a DMZ.

p.p.p.s. when I remove the S45filewall file from etc/init.d and reboot, this doesn't help matters at all.

p.p.p.p.s. I'm thinking that maybe RTP packets aren't getting through (whatever THAT means!).


h e l p !

add this to your firewall.user


iptables -t nat -A prerouting_rule -i $WAN -p udp --sport 10000:20000 -j ACCEPT
iptables        -A input_rule      -i $WAN -p udp --sport 10000:20000 -j ACCEPT

The discussion might have continued from here.