Routing calls to different (external) nics

Discussion in 'General' started by moljac, Jul 17, 2009.

  1. moljac

    Jul 17, 2009
    Likes Received:

    In order to save come money customer decided to run 1 asterisk server (plain old asterisk,
    Trixbox, Elastix) for several smaller companies. Due to the fact that one VoIP service
    provider does billing based on source IP address of the IP PBX the question came up regarding
    routing (I belive this would be layer 5 routing):

    Let say we have two internal subnets sn1= and sn2= and
    two external IP addresses (on physical or virtual nics) ip1 on eth1 (eth1:0) and ip2
    on eth2 (eth1:1).

    Is it possible to route calls from certain internal subnet sn1 to specific external
    (outgoing) network interface eth1 (eth1:0) with ip1 so that provider can distinguish
    internal "company"?

    What would be solutions:
    1. trunk setup
    2. routing (static routes) I would kindly ask You for sample
    3. virtualization

    Thanks and best regards

  2. gmonsalvo

    Aug 5, 2008
    Likes Received:
    Hi! maybe some ideas thats come to me helps you:
    In the Elastix side:
    there is a chapter in the book Elastix without tears about Multi-Tenants this involves the use of the module FreePBX custom-contexts.
    In the router side: you could make routing based policy to route the connection over the two nics more info at

    I hope this helps you.

Share This Page