|
|
This is the manual for GNU Gatekeeper 2.2.7. Chapters: Contents · Introduction · Installation · Getting started · Basic Config · Routed Mode & Proxy · Routing · RAS Config · Authentication · Accounting · Neighbors · Per Endpoint Config · Advanced Config · Monitoring
3. Getting Started (Tutorial)
3.1 A first simple experimentTo see that all components are up and running, get 2 Linux workstations, both connected to the LAN. Make sure you have at least version 1.1 of OpenH323 and OhPhone installed. On the first machine run the gatekeeper and ohphone (on different consoles):
Now the gatekeeper is running in direct mode.
The "
Now this OhPhone is listening ( On the second machine run ohphone only:
The second instance of OhPhone registers with the auto detected gatekeeper as user peter and tries to call user jan. The gatekeeper will resolve the username to the IP number from where user jan has registered (machine1 in this case) and OhPhone will call the other instance of OhPhone on machine one. The first instance of OhPhone will accept that call and Peter and Jan can chat.
3.2 Using the Status interface to monitor the gatekeeperNow we try to see which messages are handled by the gatekeeper. On a new console on machine1 we use telnet to connect to the gatekeeper:
Most probably we'll get an "Access forbidden!" message, because not everybody is allowed to spy. Now we create a file called
Stop the gatekeeper with Ctrl-C and restart it.
When we do the telnet again, we stay connected with the gatekeeper. Now repeat the first experiment where Peter calls Jan and see which messages are handled by the gatekeeper in non-routed mode. There is a number of commands that can be issued in this telnet session: Type "help" to see them. To end the telnet session with the gatekeeper type "quit" and hit Enter. But this is very insecure - everybody could connect to the status interface and see this. Lets change the configuration file to
The 5th line is added by addpasswd utility, it creates a user "gkadmin" with password "secret" which will limit access to the status port. Restart the gatekeeper with this new configuration and do the telnet again. Now you will be asked for a username and password before you can login. Take a look at the GkStatus::Auth section for more details on securing the status ports.
3.3 Starting the gatekeeper in routed modeStarting the gatekeeper in routed mode means that the gatekeeper uses "gatekeeper routed signaling" for all calls. In this mode the gatekeeper all signaling messages go through the gatekeeper and it has much greater control over the calls.
Now the gatekeeper is running in routed mode. Telnet to the status port and make a call to see what messages are now handled by the gatekeeper. Note that all media packets (audio and video) are still sent directly between the endpoints (the 2 instances of ohphone).
3.4 A virtual PBX: Disconnecting callsUntil now the gatekeeper has only acted as a mechanism to resolve symbolic names to IP addresses. That's an important function but hardly exciting. Since the gatekeeper has a lot of control over the calls,
it can terminate them for example. When we are
connected to the status port, we can list all active calls
with " One could for example write a simple script that connects to the status port and listens for all ongoing calls and terminates them after 5 minutes, so no user can over use system resources. Take a look at the other telephony functions like TransferCall to see what else is available.
3.5 Routing calls over a gateway to reach external usersWithout using a gateway you can only call other people with an IP phone over the Internet. To reach people with ordinary telephones you must use a gateway.
The gatekeeper has to know which calls are supposed to be routed over the gateway and what numbers shall be called directly. Use the [RasSrv::GWPrefixes] section of the config file to tell the gatekeeper the prefix of numbers that shall be routed over the gateway.
This entry tells the gatekeeper to route all calls to E.164 numbers starting with 0 to the gateway that has registered with the H.323 alias "gw1". If there is no registered gateway with that alias the call will fail. (Note that you must use the gateway alias - you can't just tell the gatekeeper the IP number of the gateway.)
A prefix can contain digits
3.6 Rewriting E.164 numbersWhen using a gateway you often have to use different numbers internally and rewrite them before sending them over a gateway into the telephone network. You can use the RasSrv::RewriteE164 section to configure that. Example: You want to call number 12345 with you IP Phone and would like to reach number 08765 behind a gateway called "gw1".
You can also configure rewriting of E.164 numbers based on which gateway you are receiving a call from or sending a call to using the RasSrv::GWRewriteE164 section. Example: You have two different gateways ("gw1" and "gw2") which you are sending calls with prefix 0044 to, but which require a different prefix to be added to the number after the routing has selected the gateway. This might be for identification purposes for example.
Example: You want to identify calls from a particular gateway "gw1" with a specific prefix before passing these calls to another gateway "gw2".
Rewrite expressions accept dot
Next Previous Contents Chapters: Contents · Introduction · Installation · Getting started · Basic Config · Routed Mode & Proxy · Routing · RAS Config · Authentication · Accounting · Neighbors · Per Endpoint Config · Advanced Config · Monitoring
|
|
Last updated: 21. Apr 2008 Page maintained by Jan Willamowius |