GNUGK-How to setup static gateway to gateway routing


 
Thread Tools Search this Thread
Operating Systems Linux GNUGK-How to setup static gateway to gateway routing
# 1  
Old 08-12-2010
GNUGK-How to setup static gateway to gateway routing

Dear Sir

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
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Inconsistency between RedHat 6.5 global gateway and single gateway leads to loss of default gateway

Dear friends I use RedHat 6.5, which sets the gateway in the configuration file / etc / sysconfig / network as GATEWAY = 192.168.1.26, and the gateway in the configuration file / etc / sysconfig / network-scripts / ifcfg-eth11 as GATEWAY = 192.168.1.256. The two gateways are different.... (6 Replies)
Discussion started by: tanpeng
6 Replies

2. Linux

Not able to setup CentOS 7 as gateway [Using squid proxy]

Hello, Did anyone setup a CentOS7 as a gateway (with squid transparent proxy). I am trying to do so but not able to setup. I setup squid , iptables (using it instead of firewalld) and all the necessary IPtables rules but nothing work. It work previously but access.log of squid not getting... (4 Replies)
Discussion started by: sunnysthakur
4 Replies

3. UNIX for Advanced & Expert Users

Issue setup Transparent proxy and Gateway using Squid on CentOS 7

Hello, We are migrating our gateways from CentOS 6 to CentOS 7 and for setting up a transparent proxy using squid and Firewalld i am using below configuration. #Firewalld configurations firewall-cmd --permanent --zone=public --add-forward-port=port=80:proto=tcp:toport=3128:toaddr=LAN_IP... (4 Replies)
Discussion started by: sunnysthakur
4 Replies

4. IP Networking

Routing problem : two interfaces one gateway

hi folks, i have a horstbox-router with the following configuration. it has 4 ethernet ports from wich one (wan0) is configured as an external modem via dhcp. at this port/interface(wan0) it is connected with my home network (other switch). this configuration results in the following... (14 Replies)
Discussion started by: gencaslan
14 Replies

5. AIX

IBM Server doesn't ping gateway unless you put a static route

Just want to know if someone has a clue about what could be happening here: I have an AIX box with four NICs in Ether channel connected to a Cisco Switch. When I try to ping the default gateway, sometimes it works, but sometimes it doesn't work unless it has a defined static route. Thanks... (1 Reply)
Discussion started by: witt
1 Replies

6. Solaris

Can't setup gateway other than 127.0.0.1?

I have just installed Solaris 10 X86 today, but I can't use internet at all on it. When I was installing it, it only asked me to create a hostname, without even asking me this computer is "networked" or "non-networked". After I finished installation, I use "netstat -rn" command, and only see... (3 Replies)
Discussion started by: Diamondust
3 Replies

7. IP Networking

Static IP / Subnet mask and Gateway

Hi all, I installed Fedora 9 + squid at one of PC at work. Our company has windows 2003 servera acting as DHCP server. During installation, i set linux box up as Static IP (192.168.0.100) But once installation completed, The pc is assigned a different IP address instead of 192.168.0.100.... (3 Replies)
Discussion started by: c00kie88
3 Replies

8. AIX

gateway

Dear folks, How can delete the gateway from smitty or by command, Because I have 2 gatway in the system and I tried to delete by smitty it gave me failed command (7 Replies)
Discussion started by: magasem
7 Replies

9. Red Hat

gateway

Hi, in which file and how shuold be decalred a gateway and its IP adresse ? Where and how add a gateway ? Many thanks before. (3 Replies)
Discussion started by: big123456
3 Replies

10. IP Networking

gateway

I used "route" to add the default gateway I wrote this: route add default 19x.x.x.x 0 but this is not permanent default gateway. Do I need to use another command? Thank a lot (2 Replies)
Discussion started by: lmena
2 Replies
Login or Register to Ask a Question
asterisk (8)                                                                                                                          asterisk (8)

NAME
asterisk - All-purpose telephony server. SYNOPSIS
asterisk [-BcdfFghiImnpqRtTvVW] [-C file] [-e memory] [-G group] [-L loadaverage] [-M value] [-U user] [-s socket-file] asterisk -r [-v] [-d] [-x command] asterisk -R [-v] [-d] [-x command] DESCRIPTION
asterisk is a full-featured telephony server which provides Private Branch eXchange (PBX), Interactive Voice Response (IVR), Automated Call Distribution (ACD), Voice over IP (VoIP) gatewaying, Conferencing, and a plethora of other telephony applications to a broad range of tele- phony devices including packet voice (SIP, IAX2, MGCP, Skinny, H.323, Unistim) devices (both endpoints and proxies), as well as traditional TDM hardware including T1, E1, ISDN PRI, GR-303, RBS, Loopstart, Groundstart, ISDN BRI and many more. At start, Asterisk reads the /etc/asterisk/asterisk.conf main configuration file and locates the rest of the configuration files from the configuration in that file. The -C option specifies an alternate main configuration file. Virtually all aspects of the operation of aster- isk's configuration files can be found in the sample configuration files. The format for those files is generally beyond the scope of this man page. When running with -c, -r or -R options, Asterisk supplies a powerful command line, including command completion, which may be used to moni- tors its status, perform a variety of administrative actions and even explore the applications that are currently loaded into the system. Asterisk is a trademark of Digium, Inc. OPTIONS
Running Asterisk starts the asterisk daemon (optionally running it in the foreground). However running it with -r or -R connects to an ex- isting Asterisk instance through a remote console. -B Force the background of the terminal to be black, in order for terminal colors to show up properly. Equivalent to forceblackback- ground = yes in asterisk.conf. See also -n and -W. -C file Use file as master configuration file instead of the default, /etc/asterisk/asterisk.conf -c Provide a control console on the calling terminal. The console is similar to the remote console provided by -r. Specifying this op- tion implies -f and will cause asterisk to no longer fork or detach from the controlling terminal. Equivalent to console = yes in asterisk.conf. -d Enable extra debugging statements. This parameter may be used several times, and each increases the debug level. Equivalent to debug = num in asterisk.conf to explicitly set the initian debug level to num. When given at startup, this option also implies -f (no forking). However when connecting to an existing Asterisk instance (-r or -R), it may only increase the debug level. -e memory Limit the generation of new channels when the amount of free memory has decreased to under memory megabytes. Equivalent to minmem- free = memory in asterisk.conf. -f Do not fork or detach from controlling terminal. Overrides any preceding specification of -F on the command line. Equivalent to no- fork = yes in asterisk.conf. See also -c. -F Always fork and detach from controlling terminal. Overrides any preceding specification of -f on the command line. May also be used to prevent -d and -v to imply no forking. Equivalent to alwaysfork = yes in asterisk.conf. -g Remove resource limit on core size, thus forcing Asterisk to dump core in the unlikely event of a segmentation fault or abort sig- nal. NOTE: in some cases this may be incompatible with the -U or -G flags. -G group Run as group group instead of the calling group. NOTE: this requires substantial work to be sure that Asterisk's environment has permission to write the files required for its operation, including logs, its comm socket, the asterisk database, etc. -h Provide brief summary of command line arguments and terminate. -i Prompt user to intialize any encrypted private keys for IAX2 secure authentication during startup. -I Enable internal timing if DAHDI timing is available. The default behaviour is that outbound packets are phase locked to inbound packets. Enabling this switch causes them to be locked to the internal DAHDI timer instead. -L loadaverage Limits the maximum load average before rejecting new calls. This can be useful to prevent a system from being brought down by termi- nating too many simultaneous calls. -m Temporarily mutes output to the console and logs. To return to normal, use logger mute. -M value Limits the maximum number of calls to the specified value. This can be useful to prevent a system from being brought down by termi- nating too many simultaneous calls. -n Disable ANSI colors even on terminals capable of displaying them. -p If supported by the operating system (and executing as root), attempt to run with realtime priority for increased performance and responsiveness within the Asterisk process, at the expense of other programs running on the same machine. Note: astcanary will run concurrently with asterisk. If astcanary stops running or is killed, asterisk will slow down to normal process priority, to avoid locking up the machine. -q Reduce default console output when running in conjunction with console mode (-c). -r Instead of running a new Asterisk process, attempt to connect to a running Asterisk process and provide a console interface for con- trolling it. -R Much like -r. Instead of running a new Asterisk process, attempt to connect to a running Asterisk process and provide a console in- terface for controlling it. Additionally, if connection to the Asterisk process is lost, attempt to reconnect for as long as 30 sec- onds. -s socket file name In combination with -r, connect directly to a specified Asterisk server socket. -t When recording files, write them first into a temporary holding directory, then move them into the final location when done. -T Add timestamp to all non-command related output going to the console when running with verbose and/or logging to the console. -U user Run as user user instead of the calling user. NOTE: this requires substantial work to be sure that Asterisk's environment has per- mission to write the files required for its operation, including logs, its comm socket, the asterisk database, etc. -v Increase the level of verboseness on the console. The more times -v is specified, the more verbose the output is. Specifying this option implies -f and will cause asterisk to no longer fork or detach from the controlling terminal. This option may also be used in conjunction with -r and -R. Note: This always sets the verbose level in the asterisk process, even if it is running in the background. This will affect the size of your log files. -V Display version information and exit immediately. -W Display colored terminal text as if the background were white or otherwise light in color. Normally, terminal text is displayed as if the background were black or otherwise dark in color. -x command Connect to a running Asterisk process and execute a command on a command line, passing any output through to standard out and then terminating when the command execution completes. Implies -r when -R is not explicitly supplied. -X Enables executing of includes via #exec directive. This can be useful if You want to do #exec inside asterisk.conf EXAMPLES
asterisk - Begin Asterisk as a daemon asterisk -vvvgc - Run on controlling terminal asterisk -rx "core show channels" - Display channels on running server BUGS
Bug reports and feature requests may be filed at https://issues.asterisk.org SEE ALSO
http://www.asterisk.org - The Asterisk Home Page http://www.asteriskdocs.org - The Asterisk Documentation Project http://wiki.asterisk.org - The Asterisk Wiki http://www.digium.com/ - Asterisk is sponsored by Digium AUTHOR
Mark Spencer <markster@digium.com> Countless other contributors, see CREDITS with distribution for more information. asterisk 1.8 2011-02-08 asterisk (8)