Author Topic: Sending all VoIP Out via different Gateway  (Read 2890 times)

JPB

  • Zen Monk
  • **
  • Posts: 77
  • Karma: +1/-1
    • View Profile
Sending all VoIP Out via different Gateway
« 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?  ???

robb

  • Guest
Re: Sending all VoIP Out via different Gateway
« Reply #1 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?
« Last Edit: September 20, 2011, 01:06:55 pm by robb »

JPB

  • Zen Monk
  • **
  • Posts: 77
  • Karma: +1/-1
    • View Profile
Re: Sending all VoIP Out via different Gateway
« Reply #2 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.

half_life

  • Bug Hunter
  • Zen Hero
  • *****
  • Posts: 867
  • Karma: +59/-0
    • View Profile
Re: Sending all VoIP Out via different Gateway
« Reply #3 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?

jsalamero

  • Zentyal Staff
  • Zen Hero
  • *****
  • Posts: 1419
  • Karma: +45/-1
    • View Profile
Re: Sending all VoIP Out via different Gateway
« Reply #4 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.

half_life

  • Bug Hunter
  • Zen Hero
  • *****
  • Posts: 867
  • Karma: +59/-0
    • View Profile
Re: Sending all VoIP Out via different Gateway
« Reply #5 on: December 01, 2011, 02:12:44 am »
Thanks!