OpenWrt Forum Archive

Topic: The perfect router for VoIP (SIP)

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

Interesting article on "the perfect router" for VoIP/SIP support:
http://sipsorcery.wordpress.com/2009/12 … ew-router/

Nice tool for NAT testing is mentioned:
http://nattest.net.in.tum.de/

And....seems OpenWrt (Kamikaze 8.09.2) is not exactly the perfect one.  To developers: any way to revert this?


PS: beside a good NAT solution I'll put a good QoS as a mandatory feature for "the perfect router" for VoIP.  This is somehow present in OpenWrt already.

What I did to avoid NAT issues is that I installed asterisk on my router. OpenWRT has many SIP packages pre-packaged so it's easy.

zorxd wrote:

What I did to avoid NAT issues is that I installed asterisk on my router. OpenWRT has many SIP packages pre-packaged so it's easy.

Yeap!  That's a good option!  In fact I did just the same....by the way I'm facing problems to reach my asterisk from outside.  From LAN no problem at all.  But I'll open a new thread for that and not spoil this one here.

But this thread idea is to share a good article (at least in my opinion).  And maybe discuss about a full cone OpenWrt.

(Last edited by wilsonhlacerda on 8 Mar 2010, 17:27)

If you want asterisk behind an openwrt (bcrm 2.4) router, you have to make sure r19761 is compiled in.  Otherwise the port forwarding (NAT) breaks after a relatively short time and your asterisk may (or may not) lose its sip registration and ability to communicate with the outside world. I've had issues with this for more than two years, and now it's been finally fixed in r19761 (this is not included in the 8.09.2 release!) See https://dev.openwrt.org/ticket/2558 for more details.

thomasw wrote:

If you want asterisk behind an openwrt (bcrm 2.4) router, you have to make sure r19761 is compiled in.  Otherwise the port forwarding (NAT) breaks after a relatively short time and your asterisk may (or may not) lose its sip registration and ability to communicate with the outside world. I've had issues with this for more than two years, and now it's been finally fixed in r19761 (this is not included in the 8.09.2 release!) See https://dev.openwrt.org/ticket/2558 for more details.

I'll better check that.  2 years bug and it is not in latest Kamikaze yet!? smile

Maybe this can explain what I wrote here:
https://forum.openwrt.org/viewtopic.php?id=23862

Thanks!

Port forwarding was definitely broken for a long long time, including 8.09.2 (even though the release notes state otherwise). Anyway, I checked out the 8.09.2 branch, merged r19761 from trunk and for the first time in years port forwarding actually works. Without that fix, my asterisk server "worked", but usually not more than 12 to 24 hours, then it just lost it's sip registration because incoming packets didn't get delivered properly anymore (not sure if they didn't get sent to the right machine at all or if they were sent to the wrong port). As soon as I applied that one single revision, everything worked flawlessly.  My router hasn't been rebooted for about four weeks now, and my asterisk server behind the my OpenWRT router has been working great since.

There is no perfect thing...

Of course there is no perfect thing, but if such a basic essential feature of a router doesn't work, it kind of defeats the purpose of it.  At least I haven't been able to use OpenWRT for the past two years simply because of this bug.  I'm glad it's finally fixed.

The discussion might have continued from here.