Page 1 of 1

SIP ALG

Posted: Wed Jul 03, 2013 8:06 pm
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.

Re: SIP ALG

Posted: Fri Jul 05, 2013 7:23 am
by BashfulBladder
I don't believe SIP ALG is present

Re: SIP ALG

Posted: Tue Jul 16, 2013 1:59 am
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.

Re: SIP ALG

Posted: Tue Jul 16, 2013 6:03 pm
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!

Re: SIP ALG

Posted: Fri Aug 16, 2013 1:59 am
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

Re: SIP ALG

Posted: Wed Jan 22, 2014 10:23 pm
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.

Re: SIP ALG

Posted: Thu Jan 08, 2015 2:04 pm
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.

Re: SIP ALG

Posted: Sat Nov 18, 2017 1:35 am
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.

Re: SIP ALG

Posted: Sun Nov 04, 2018 10:18 am
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.