Re[2]: Nated GKs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



It's still isn't clear - it's not your fault - it's mine, sorry ;)
If you want to make endpoints from one network be able to call endpoints from the other network, and both gk are on nat box, then I'd suggest you the following if your goal is to connect the two nets (not to test neighbours, etc):
let's
gk_01 addresses 123.123.123.123(public) and 192.168.100.128
gk_02 addresses 54.54.54.54(public) and 192.168.100.128 
with default ports (1719udp/1721tcp/7000tcp)
configs:

#gk_01
[Gatekeeper::Main]            
Fourtytwo=42                  
Name=gk_01 
UseBroadcastListener=1        

[RoutedMode]                  
GKRouted=1                    
AcceptUnregisteredCalls=1     
SupportNATedEndpoints=1       
CallUnregisteredEndpoints=1   
AcceptNeighborsCalls=1        
H245Routed=1                  

#you may need it...
#[Proxy]
#Enable=1

[GkStatus::Auth]              
rule=allow                    

[RasSrv::PermanentEndpoints]
54.54.54.54:1721=gk_02;02            
                 
##################################
#gk_02
[Gatekeeper::Main]            
Fourtytwo=42                  
Name=gk_02 
UseBroadcastListener=1        

[RoutedMode]                  
GKRouted=1                    
AcceptUnregisteredCalls=1     
SupportNATedEndpoints=1       
CallUnregisteredEndpoints=1   
AcceptNeighborsCalls=1        
H245Routed=1                  

#you may need it...
#[Proxy]
#Enable=1

[GkStatus::Auth]              
rule=allow                    

[RasSrv::PermanentEndpoints]
123.123.123.123:1721=gk_01;01            

####
In these configs both gk's are permanent endpoints of eachother and unresolved aliases beging on 01 gk_02 will send to 123.123.123.123:1721, and gk_01 will send calls to aliases from 02 to gk_02 (54.54....)     
            

So now you should register endpoints to their local gk's and try to make some calls - should do what you want.                 
Endpoint of gk_01 should register with numbers like 01xxx, and endpoints of the other gk_02 are with aliases 02xxx.
You may however want to asign numbers by the gatekeeper to avoid forcing endpoints to use specific aliases, or set rewriting rules - it's up to you.

Hope this does what you want.
                 
                 
                 
                 
                 
> At 13:44 19/01/2004, you wrote:
> >It's really isn't clear what exactly you wanted to set up here.
>                
> Sorry.         
>                
> GK1 and GK2 are nat box. running GnuGK.
> 
> EP201 (now EP01201) and EP206 (nor EP02206) are openphone-win32 and 
> ohphone-freebsd win a nated address (192.168...).
> 
> GK1 is neighbor of GK2, and GK2 id neighbor of GK1 (I thing).
> 
> I need to call EP 02206 from EP 01201, or EP 01201 from EP 02206.
> 
> 
> > From the first glimse it looks like you are trying to call endpoint with 
> > unexistent alias. If you call 206 then your call isn't routed anywhere, 
> > if you call 02206, then your call is routed over to the neighbouring gk, 
> > but there is no endpoint registered with such an alias name 02206 - maybe 
> > you forgot to enter that in config, or you may try to use some rewrite rules.
> >The simplest is to set the last line of the 2nd config as follows:
> >192.168.0.190:1720=02206, should work, if I understand your intention 
> >correctly. And if there is an endpoint with this address 
> >(192.168.0.190:1720) then if you dial 02206 the call should be routed to it.
> 
> I do this change, add prefix to EP number on both [RasSrv::PermanentEndpoints].
> 
> GK1 ------------------------
> [RasSrv::PermanentEndpoints]
> 192.168.88.18:1720=01208
> 192.168.88.249:1720=01201
> 
> GK2 ------------------------
> 192.168.0.190:1720=02206
> 192.168.0.50:1720=02216
> 
> if I try to call:
> Command ? C 01201
> 02216 is calling host 01201
> Gatekeeper could not find user "01201"
> 
> I'm running GK with
> gnugk -c gatekeeper.ini -ttt
> 
> and with
> gnugk -c gatekeeper.ini -rr -ttt
> 
> looking on debug screen od the called side nothing happen? i have to make 
> anything to neighbors register then ?
> 
> 
> 

 I have this situation

(GK1) ------ Internet ------ (GK2)
    |                                    |
    |                                    |
    |                                    |
EP201                           EP206

the .ini files

------------------GK1
[Gatekeeper::Main]
Fourtytwo=42
Name=NEO
UseBroadcastListener=1
[RoutedMode]
GKRouted=1
AcceptUnregisteredCalls=0
SupportNATedEndpoints=1
CallUnregisteredEndpoints=1
H245Routed=1
AcceptNeighborsCalls=1
[GkStatus::Auth]
rule=allow
[RasSrv::Neighbors]
NAS=200.xxx.xxx.xx;;02
[RasSrv::PermanentEndpoints]
192.168.88.18:1720=208
192.168.88.249:1720=201


---------------- GK2
[Gatekeeper::Main]
Fourtytwo=42
Name=NAS
UseBroadcastListener=1
[RoutedMode]
GKRouted=1
AcceptUnregisteredCalls=0
SupportNATedEndpoints=1
CallUnregisteredEndpoints=1
H245Routed=1
AcceptNeighborsCalls=1
[GkStatus::Auth]
rule=allow
[RasSrv::Neighbors]
NEO=home.anywhere.com;;01
[RasSrv::PermanentEndpoints]
192.168.0.190:1720=206
192.168.0.:1720=216


I try to call EP206 with dial 206 or 02206 it say could not find user.
What is wrong ????? What I need to do ?????






-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
List: Openh323gk-users@lists.sourceforge.net
Archive: http://sourceforge.net/mailarchive/forum.php?forum_id=8549
Homepage: http://www.gnugk.org/

[Index of Archives]     [SIP]     [Open H.323]     [Gnu Gatekeeper]     [Asterisk PBX]     [ISDN Cause Codes]     [Yosemite News]

  Powered by Linux