Zentyal Forum, Linux Small Business Server

Zentyal Server => Installation and Upgrades => Topic started by: JPB on September 20, 2011, 07:21:12 am

Title: Sending all VoIP Out via different Gateway
Post by: JPB on September 20, 2011, 07:21:12 am
I need to split all VoiP traffic to a Seperate provider but I dont know how to accomplish this.
I have one Internal Network on eth0 where the VoIP come from
I have my STD ISP on eth1
I have my VoIP ISP on eth2

I added some trafic shaping rules for all VoIP services on both External interfaces, but my trunk from my dedicated VoIP server go through my default Gateway. Because of the Shaping its not to shabby but in high traffic it fails as the line is not shaped for voice on the provider side.  The eth2 provider does shape it also.

I made a Service called VoIP with these ports in

Protocol    Source port    Destination port
UDP    4569    4569    
UDP    2727    2727    
UDP    10000:20000    10000:20000    
UDP    5060    5060    
UDP    5036    5036    

And tried to use Loadbalance to redirect.

Is there any help on this?  ???
Title: Re: Sending all VoIP Out via different Gateway
Post by: robb on September 20, 2011, 01:03:59 pm
Have a look at http://doc.zentyal.org/en/routing.html#configuring-traffic-balancing-with-zentyal
You can configure 1 gateway for WWW and another for VOIP.

hope this helps

/edit I see you already are on this track: you created a service and set the 2nd gateway to be used for that service.
Can you be more specific what exactly happens? Isn't the VOIP service redirected to the 2nd gateway exclusively?
Title: Re: Sending all VoIP Out via different Gateway
Post by: JPB on November 21, 2011, 09:50:03 am
Sometime the VoIP IAX2 trunk register through the low quality Data gateway.  I did fix this by means of physical cabeling BUT iI lost the ability now to Shape the VoIP properly via the Zentyal server.

Remember I have a Secondary Elastix / Asterik Server inside my network NOT the Zentyal service.  So the VoIP need to be shaped by Zentayl and passed through to the VoIP gateway, sometime it does not!  I detect this when the voice quality degrade badly.
Title: Re: Sending all VoIP Out via different Gateway
Post by: half_life on November 22, 2011, 02:27:44 am
If you have a separate feed for voip, why not hook directly to the elastix server?  Is security a concern?  Look at the new 2.2 release of Elastix.  BTW how did you ad IAX to traffic shaping?
Title: Re: Sending all VoIP Out via different Gateway
Post by: jsalamero on November 29, 2011, 02:26:58 pm
Try to use a static route to reach your ISP provider using the VoIP gateway.

To shape IAX2 traffic, just create a service with the right port, proto UDP and use it on traffic shaping rules, service based.
Title: Re: Sending all VoIP Out via different Gateway
Post by: half_life on December 01, 2011, 02:12:44 am
Thanks!