OPNsense Forum

Archive => 16.7 Legacy Series => Topic started by: brokenby2703 on July 28, 2016, 12:58:56 pm

Title: VOIP calls drop
Post by: brokenby2703 on July 28, 2016, 12:58:56 pm
Hi

I have a OPNsense firewall running smoothly.

I have add a VOIP phone inside the office connected to a local VOIP trunk provider.
I can make call and I can receive call.
But the problem is that ANY call (IN/OUT) is dropping automatically after 30seconds.

I googled and found that it may be problem on the firewall.
I'm not so IT expert so I don't know where I should put my hands to correct it.

Is there anybody with same situation can guide me ?
Appreciate and thanks in advance for your time and help

P.
Title: Re: VOIP calls drop
Post by: chpalmer on July 28, 2016, 08:54:57 pm

Yep- Firewalls and voip sometimes usually do not get along.

How many voip adapters do you have?

You need to make a firewall rule on your WAN to allow your providers SIP server to your ATA.

Generally  source (SIP Provider IP) port 5060(- 5061) (or whatever they use)  Destination (your ata LAN address or range if you have more than one)  Port 5060-5061 (if those are the ports you use.)

RTP (or the actual voice streams) can be a different beast. Depending on the ata they could be 5004-5059, 16384-16482 ect..   Firewall logs are your friend. Watch them as you try to make and receive calls. 
Title: Re: VOIP calls drop
Post by: brokenby2703 on July 29, 2016, 11:11:12 am
Hi.
First of all thanks !

I have done these before post my thread message.

See in attachment.
To be sure, I haven't limited the SOURCE IP to my VOIP TRUNK provider (to avoid unpleasant surprise of my lines to be used by others) so it was for test open to ANY SOURCE.

No way. It automatically drop after 30 seconds.
I'm testing just ONE SIP phone (alcatel Temporis Ip200) but it happen with other 2 SIP phone (grand stream GXP2020) etc.

Now.... don't misunderstand me here.
When I was using M0N0wall, I have just the same setup as above.
No QoS nothing else.
Indeed M0n0 was just handling ADSL connection (PPPoE) and internal VOIP phone.
I remember I did setup the m0n0 and I did as same as for OPNsense.

I googled a lot and it seems the problems is with FIREWALL configuration (nothing to do with FIREWALL NAT/rules).

And about the log.... I don't see anything strange on the NORMAL view or DYNAMIC view FIREWALL log.
Unless you may guide me on how to read it (again as I said yesterday I'm in learning phase).

Appreciate your help.
If somebody can rescue me.
Thanks in advance
P.
Title: Re: VOIP calls drop
Post by: Julien on July 29, 2016, 06:47:05 pm
I am having 40 VOIP phone running behind OPNsense everything is working fine.
your issue is related to hardware if I am not mistaken.
what is your hardware configuration ? CPU ? Memory ? SSD?...
Title: Re: VOIP calls drop
Post by: brokenby2703 on July 29, 2016, 07:44:27 pm
I am having 40 VOIP phone running behind OPNsense everything is working fine.
your issue is related to hardware if I am not mistaken.
what is your hardware configuration ? CPU ? Memory ? SSD?...

Thanks for your time.
Glad you don't have problem.
I didn't too when I was having M0N0 where only 4 firewall rules where there, the same of OPNSENSE.

CPU is XEON
RAM is 2GB
HDD is SDD 64GB
Ethernet is dual gigabit Intel pro
Actually it's a  Poweredge Dell Server

Don't tell me isn't enough  just for ONE voip.

Title: Re: VOIP calls drop
Post by: Julien on July 29, 2016, 09:53:06 pm
are you using Cashing and Intrusion detection ? if yes those need at least 4GB memory.
if you are not using those, than there is something with your configuration.
your hardware looks good
have you check this already ?
https://docs.opnsense.org/manual/how-tos/shaper.html?highlight=voip