LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   GNUGK - Howto create static routing from inbound to outboung gateways (https://www.linuxquestions.org/questions/linux-newbie-8/gnugk-howto-create-static-routing-from-inbound-to-outboung-gateways-825753/)

mfondoum 08-12-2010 05:53 AM

GNUGK - Howto create static routing from inbound to outboung gateways
 
Dear participants

I am a newbie in the world of IP telephony. I have been working with Asterisk PBX (SIP) and Cisco Call Manager (MGCP) but now I am learning on how to work GNUGK for H.323 Gatekeeper.

I am having a problem, configuring static call routing on GNUGK

in the section

[RasSrv::GWPrefixes]

Remote1=203.
Remote2=486.
Local-router1 = 0...,1...,01.........,1.......,0......,1......,2...,3...,4...,5...,6...,7...,8...

Local-router2 = 0...,1...,01.........,1.......,0......,1......,2...,3...,4...,5...,6...,7...,8....



You can see that the routers Local-router1 and 2 has the same dialling plan.

What happens is the gatekeeper send calls randomly to one router or to the other when one of the matching extension is dialled.

What I am trying to do is to force

any calls coming from Remote1 to go out only throught Local-router1

Remote1 =========================> Local-router1

and any calls from Remote2 to go out throught Local-router2

Remote2 =========================> Local-router2

please tell me if there is any way of doing that, I have tried many things here and I am out of ressources.

Thank you in advance for your help
Roland

estabroo 08-14-2010 08:49 AM

you might be able to use iproute2 and set up tables for each ip with a separate default route and then use an ip rule that specifies that anything from a certain ip goes out its specific table


All times are GMT -5. The time now is 06:11 PM.