SIP ALG

Report wireless and/or network connectivity problems in this forum.

Moderator: Moderators

Post Reply
ldi9999
Posts: 32
Joined: Mon Nov 28, 2011 1:48 pm

SIP ALG

Post by ldi9999 »

Is there option for SIP ALG? Is it on or off by default? I'm having issue with my VOIP phone service. I was suggested to turn off SIP ALG. I have no idea on what to do with Gargoyle. Thanks.

BashfulBladder
Moderator
Posts: 250
Joined: Thu Jan 17, 2013 11:43 pm

Re: SIP ALG

Post by BashfulBladder »

I don't believe SIP ALG is present
TP-Link WDR3600 v1.1 running 1.5.10+ L10n-English (Built 20130922 - OpenWrt r38093)
TP-Link WDR4300 running 1.5.10+ i18n-English (Built 20131010 - OpenWrt r38286)

https://github.com/BashfulBladder/gargoyle-plugins/wiki

Ragnor
Posts: 10
Joined: Mon Apr 22, 2013 2:04 am

Re: SIP ALG

Post by Ragnor »

I had problems with SIP based VOIP on 1.5.9.. specifically two calls at once where we have multiple IP handsets registering to external SIP provider.

See here:
http://www.gargoyle-router.com/phpbb/vi ... f=6&t=4121

I assume it's still the same in 1.5.10 so you probably need to stop ip_nat_sip and ip_conntrack_sip from loading in the modules config as they are messing with SIP packets.

It would be great if there is a UI option for this but there isn't yet.

ldi9999
Posts: 32
Joined: Mon Nov 28, 2011 1:48 pm

Re: SIP ALG

Post by ldi9999 »

Thanks for the advise. However I've no idea how to do it :oops: . Can you provide detailed steps I can follow? Thanks!

Ragnor
Posts: 10
Joined: Mon Apr 22, 2013 2:04 am

Re: SIP ALG

Post by Ragnor »

Assuming you are on Windows PC connected to the router via LAN...

1: Download/Install WinSCP
http://winscp.net/eng/index.php

2: Settings for WinSCP:

File Protcol: SCP
Host Name: IP Address of our router (eg: 192.168.1.1)
User Name: root
Password: The password you set in Garogyle web admin

3: Once connected I got an error message about groups, just click ok and the file browser/navigator should be showing the root dir, hit ... to go up one directory. Then go into etc then into modules.d

4: Edit the 45-ipt-nathelper-extra file and remove the line nf_nat_sip

Note: You do not need to remove nf_conntrack_sip as this just tracks connections and doesn't modify the packets (as far as I can tell).

5: Disconnect WinSCP and reboot the router.

Screenshots (click on the image to see full size):

Image
Image
Image

liftow
Posts: 3
Joined: Wed Jan 22, 2014 9:25 pm

Re: SIP ALG

Post by liftow »

Thanks for the thorough walk through.

I has to remove nf_conntrack_sip to get my SIP application working.
Allworx Reach on an iPhone.

liftow
Posts: 3
Joined: Wed Jan 22, 2014 9:25 pm

Re: SIP ALG

Post by liftow »

Just a quick note that on 1.7.0 it appears the file name has changed to:

ipt-nathelper-extra

No more 45- in front of it.

Being able to toggle this option in the UI would be great.

ninderrycomp
Posts: 41
Joined: Thu Dec 03, 2015 3:20 am

Re: SIP ALG

Post by ninderrycomp »

This really ought to be a toggle. I've been going crazy for weeks trying to work out what was wrong with my VOIP before encountering this thread. My main issue was that my VOIP phones would ring (Linksys PAP2 / PAP2T and on Linksys SPA3000) but I was never able to answer the call. It would just go silent on my end and the caller just gets the normal ringing tone until it goes to voicemail. I can confirm that the instructions listed above work on Gargoyle 1.9.2. In my case the file as named "nf-nathelper-extra", but the rest was the same.

Hooray! So glad to have this finally working. Oddly enough FreePBX13 has no problems with this, it was just the PAP2 units.

Edit: for clarification, I had to remove both nf_nat_sip and nf_conntrack_sip to be able to get a fully working VOIP service with multiple concurrent phone calls. If I just removed nf_nat_sip, I wasn't able to make more than a single call at once.

JohnPeterson
Posts: 20
Joined: Sun Nov 04, 2018 10:06 am

Re: SIP ALG

Post by JohnPeterson »

Gargoyle 1.10.0 - - new user - happy with the system on a TP-Link TL-WR1043N/ND v1.

My OBIHAI200 sip adapter always worked with voip(dot)ms - behind a linksys that had a 'sip gateway' checkbox turned on.

I took both of those lines out of:
/etc/modules.d/nf-nathelper-extra

and it all works again, no port forwarding or any other changes.

Post Reply