Title:
Communications control method, relaying method and relaying device
Document Type and Number:
Kind Code:
A1

Abstract:
Method and device for heightening communications security. Gateway 3 receives packet P1 from caller terminal 1a, and creates and transmits to receiver terminal 1b packet P2, in which destination IP address, source IP address, destination port, source port, and session ID for packet P1 are rewritten. Gateway 3 also receives packet P3 from receiver terminal 1b, and creates and transmits to caller terminal 1a packet P4, in which destination IP address, source IP address, destination port, source port, and session ID for packet P3 are rewritten. Because communications between every terminal are identifiable according to session ID, a plurality of communications through the same port may be supported, which is favorable security-wise.

Inventors:
Noro, Masaaki (Kawasaki, JP)
Fukuyama, Noriyuki (Kawasaki, JP)
      Plaque It!

Sponsored by:
Flash of Genius
Application Number:
09/993498
Publication Date:
03/20/2003
Filing Date:
11/27/2001
View Patent Images:
Images are available in PDF form when logged in. To view PDFs, Login  or  Create Account (Free!)
Assignee:
Fujitsu Limited of Kawasaki, Japan
Primary Class:
International Classes:
(IPC1-7): G06F015/16
Attorney, Agent or Firm:
STAAS & HALSEY LLP (700 11TH STREET, NW, WASHINGTON, DC, 20001, US)
Claims:

What is claimed is:



1. A communications control method utilized in a communications system in which a first communications terminal T1, a second communications terminal T2, and a relaying terminal that relays communications by the two terminals are connected via a network, the communications control method including: a first determination step, prior to the first communications terminal T1 and the second communications terminal T2 carrying out communications via the relaying terminal, of the first communications terminal T1 determining first communications identification information S1 for identifying intercommunications between its terminal and the relaying terminal; a second determination step, prior to the first communications terminal T1 and the second communications terminal T2 carrying out communications via the relaying terminal, of the relaying terminal determining second communications identification information S2 for identifying intercommunications between its terminal and the first communications terminal T1; a third determination step, prior to the first communications terminal T1 and the second communications terminal T2 carrying out communications via the relaying terminal, of the relaying terminal determining third communications identification information S3 for identifying intercommunications between its terminal and the second communications terminal T2; a fourth determination step, prior to the first communications terminal T1 and the second communications terminal T2 carrying out communications via the relaying terminal, of the second communications terminal T2 determining fourth communications identification information S4 for identifying intercommunications between its terminal and the relaying terminal; a first communications step of the first communications terminal T1 and the relaying terminal carrying out transmission and reception of first data containing the first communications identification information S1 and the second communications identification information S2; a second communications step of the second communications terminal T2 and the relaying terminal carrying out transmission and reception of second data containing the third communications identification information S3 and the fourth communications identification information S4; a first relaying step, when the relaying terminal is to transmit to the second communications terminal T2 first data received from the first communications terminal T1, of rewriting within said first data the first communications identification information S1 and the second communications identification information S2 as the third communications identification information S3 and the fourth communications identification information S4; and a second relaying step, when the relaying terminal is to transmit to the first communications terminal T1 data received from the second communications terminal T2, of rewriting within said data the third communications identification information S3 and the fourth communications identification information S4 as the first communications identification information S1 and the second communications identification information S2.

2. A relaying method utilized by a relaying terminal that is connected via a network with a first communications terminal T1 and a second communications terminal T2, and that relays communications between the two terminals, the relaying method including: a first determination step of determining second communications identification information S2 identifying a communication carried out with the first communications terminal T1 for relaying communications between the first communications terminal T1 and the second communications terminal T2; a second determination step of determining third communications identification information S3 for identifying a communication carried out with the second communications terminal T2 for relaying communications between the first communications terminal T1 and the second communications terminal T2; a first communications step of carrying out with the first communications terminal T1 transmission and reception of data containing the second communications identification information S2; a second communications step of carrying out with the second communications terminal T2 transmission and reception of data containing the third communications identification information S3; a first relaying step of rewriting, when data received from the first communications terminal T1 is to be transmitted to the second communications terminal T2, the second communications identification information S2 within said data as the third communications identification information S3; and a second relaying step of rewriting, when data received from the second communications terminal T2 is to be transmitted to the first communications terminal T1, the third communications identification S3 within said data as the second communications identification information S2.

3. The relaying method set forth in claim 2, further including: a first acquisition step of acquiring first communications identification information S1 identifying a communication that the first communications terminal T1 carries out with the relaying terminal in order to communicate with the second communications terminal T2; a second acquisition step of acquiring fourth communications identification information S4 identifying a communication that the second communications terminal T2 carries out with the relaying terminal in order to communicate with the first communications terminal T1; wherein said first communications step carries out with the first communications terminal T1 transmission and reception of data further containing the first communications identification information S1, said second communications step carries out with second communications terminal T2 transmission and reception of data further containing the fourth communications identification information S4, said first relaying step, when data received from the first communications terminal T1 is to be transmitted to the second communications terminal T2, rewrites within said data the first communications identification information S1 and the second communications identification information S2 as the third communications identification information S3 and the fourth communications identification information S4, and said second relaying step, when data received from the second communications terminal T2 is to be transmitted to the first communications terminal T1, rewrites within said data the third communications identification information S3 and the fourth communications identification information S4 as the first communications identification information S1 and the second communications identification information S2.

4. The relaying method set forth in claim 2, further including a table-preparation step of preparing a session table; wherein within a single record the session table: stores the first communications identification information S1 and second communications identification information S2 correlatively with a communications address for the first communications terminal T1, and stores the third communications identification information S3 and the fourth communications identification information S4 correlatively with a communications address for the second communications terminal T2.

5. The relaying method set forth in claim 4, further including: a termination receiving step of accepting notification that communications between the first communications terminal T1 and the second communications terminal T2 have terminated; and a deletion step of deleting from the session table a record corresponding to communications between the first communications terminal T1 and the second communications terminal T2.

6. The relaying method set forth in claim 2, wherein the relaying terminal is further connected with a computer terminal connected via the network to the first communications terminal T1 and the second communications terminal T2, further including: a communications-request receiving step of receiving from the computer terminal a report indicating that there has been a request from the first communications terminal T1 for communication with the second communications terminal T2; a first notification step of reporting the second communications identification information S2 to the first communications terminal T1 via the computer terminal; and a second notification step of reporting the third communications identification information S3 to the second communications terminal T2 via the computer terminal.

7. The relaying method set forth in claim 6, further including: a third acquisition step of acquiring from the computer first communications identification information S1 identifying a communication that the first communications terminal T1 carries out with the relaying terminal in order to communicate with the second communications terminal T2; a fourth acquisition step of acquiring from the computer fourth communications identification information S4 identifying a communication that the second communications terminal T2 carries out with the relaying terminal in order to communicate with the first communications terminal T1; wherein said first communications step carries out with the first communications terminal T1 transmission and reception of data further containing the first communications identification information S1, said second communications step carries out with second communications terminal T2 transmission and reception of data further containing the fourth communications identification information S4, said first relaying step, when data received from the first communications terminal T1 is to be transmitted to the second communications terminal T2, rewrites within said data the first communications identification information S1 and the second communications identification information S2 as the third communications identification information S3 and the fourth communications identification information S4, and said second relaying step, when data received from the second communications terminal T2 is to be transmitted to the first communications terminal T1, rewrites within said data the third communications identification information S3 and the fourth communications identification information S4 as the first communications identification information S1 and the second communications identification information S2.

8. The relaying method set forth in claim 6, further including: an alive-confirmation step of transmitting to and receiving from the computer terminal at fixed time intervals TM1 alive information signifying one's terminal is alive; and a suspend step of suspending relaying of communications between the first communications terminal T1 and the second communications terminal T2 if the alive information has not been received from the computer terminal though a fixed time TM2 or more has elapsed.

9. A relaying device connected via a network with a first communications terminal T1 and a second communications terminal T2, for relaying communications between the two terminals, the relaying device comprising: a first determination means for determining second communications identification information S2 identifying a communication carried out with the first communications terminal T1 for relaying communications between the first communications terminal T1 and the second communications terminal T2; a second determination means for determining third communications identification information S3 identifying a communication carried out with the second communications terminal T2 for relaying communications between the first communications terminal T1 and the second communications terminal T2; a first communications means for carrying out with the first communications terminal T1 transmission and reception of data containing the second communications identification information S2; a second communications means for carrying out with the second communications terminal T2 transmission and reception of data containing the third communications identification information S3; a first relaying means for rewriting, when data received from the first communications terminal T1 is to be transmitted to the second communications terminal T2, the second communications identification information S2 within said data as the third communications identification information S3; and a second relaying means for rewriting, when data received from the second communications terminal T2 is to be transmitted to the first communications terminal T1, the third communications identification S3 within said data as the second communications identification information S2.

10. A relaying computer product utilized by a computer connected via a network with a first communications terminal T1 and a second communications terminal T2, for relaying communications between the two terminals, the relaying computer product for making the computer function as: a first determination means for determining second communications identification information S2 identifying a communication carried out with the first communications terminal T1 for relaying communications between the first communications terminal T1 and the second communications terminal T2; a second determination means for determining third communications identification information S3 identifying a communication carried out with the second communications terminal T2 for relaying communications between the first communications terminal T1 and the second communications terminal T2; a first communications means for carrying out with the first communications terminal T1 transmission and reception of data containing the second communications identification information S2; a second communications means for carrying out with the second communications terminal T2 transmission and reception of data containing the third communications identification information S3; a first relaying means for rewriting, when data received from the first communications terminal T1 is to be transmitted to the second communications terminal T2, the second communications identification information S2 within said data as the third communications identification information S3; and a second relaying means for rewriting, when data received from the second communications terminal T2 is to be transmitted to the first communications terminal T1, the third communications identification S3 within said data as the second communications identification information S2.

11. A computer-readable recording medium on which is recorded a relaying program utilized by a relaying terminal that is connected via a network with a first communications terminal T1 and a second communications terminal T2, and that relays communications between the two terminals, the computer-readable recording medium on which is recorded a relaying program for executing: a first determination step of determining second communications identification information S2 identifying a communication carried out with the first communications terminal T1 for relaying communications between the first communications terminal T1 and the second communications terminal T2; a second determination step of determining third communications identification information S3 for identifying a communication carried out with the second communications terminal T2 for relaying communications by the first communications terminal T1 and the second communications terminal T2; a first communications step of carrying out with the first communications terminal T1 transmission and reception of data containing the second communications identification information S2; a second communications step of carrying out with the second communications terminal T2 transmission and reception of data containing the third communications identification information S3; a first relaying step of rewriting, when data received from the first communications terminal T1 is to be transmitted to the second communications terminal T2, the second communications identification information S2 within said data as the third communications identification information S3; and a second relaying step of rewriting, when data received from the second communications terminal T2 is to be transmitted to the first communications terminal T1, the third communications identification S3 within said data as the second communications identification information S2.

12. A communications control method utilized by a computer connected via a network to a first communications terminal T1, a second communications terminal T2 and a relaying terminal that relays communications between the two terminals, the communications control method including: a communication-request acceptance step of accepting from the first communications terminal T1 a request for communication with the second communications terminal T2; a request notification step of notifying the second communications terminal T2 of the communication request; a first reporting step of receiving from the first communications terminal T1 and reporting to the relaying terminal first communications identification information S1 identifying a communication that the first communications terminal T1 carries out with the relaying terminal; a second reporting step of notifying the relaying terminal of the communications request, and receiving from the relaying terminal and reporting to the first communications terminal T1 second communications identification information S2 for identifying a communication that the relaying terminal carries out with the first communications terminal T1; a third reporting step of notifying the relaying terminal of the communications request, and receiving from the relaying terminal and reporting to the second communications terminal T2 third communications identification information S3 for identifying a communication that the relaying terminal carries out with the second communications terminal T2; and a fourth reporting step of receiving from the second communications terminal T2 and reporting to the relaying terminal fourth communications identification information S4 identifying a communication that the second communications terminal T2 carries out with the relaying terminal.

13. The communications control method set forth in claim 12, further including a table-preparation step of preparing a session table; wherein within a single record the session table: stores the first communications identification information S1 and second communications identification information S2 correlatively with a communications address for the first communications terminal T1, and stores the third communications identification information S3 and the fourth communications identification information S4 correlatively with a communications address for the second communications terminal T2.

14. The communications control method set forth in claim 13, further including a termination receiving step of accepting notification that communications between the first communications terminal T1 and the second communications terminal Second communications terminal T2 have terminated; and a deletion step of deleting from the session table records corresponding to communications between the first communications terminal T1 and the second communications terminal T2.

15. The communications control method set forth in claim 12, further including: an alive-recognition step of transmitting to and receiving from the computer terminal at fixed time intervals TM1 alive information signifying one's terminal is alive; a termination reporting step of transmitting a communications termination notice to the first communications terminal T1, the second communications terminal T2, and the relaying terminal if the alive information has not been received from the computer terminal though a fixed time TM2 or more has elapsed; and cut-off step after transmission of the communications termination notice, of breaking the connection with the first communications terminal T1, the second communications terminal T2, and the relaying terminal.

16. A communications control device connected via a network to a first communications terminal T1, a second communications terminal T2, and a relaying terminal that relays communications between the two terminals, the communications control device comprising: a communication-request acceptance means for accepting from the first communications terminal T1 a request for communication with the second communications terminal T2; a request notification means for notifying the second communications terminal T2 of the communication request; a first reporting means for receiving from the first communications terminal T1 and reporting to the relaying terminal first communications identification information S1 identifying a communication that the first communications terminal T1 carries out with the relaying terminal; a second reporting means for notifying the relaying terminal of the communications request, and receiving from the relaying terminal and reporting to the first communications terminal T1 second communications identification information S2 for identifying a communication that the relaying terminal carries out with the first communications terminal T1; a third reporting means for notifying the relaying terminal of the communications request, and receiving from the relaying terminal and reporting to the second communications terminal T2 third communications identification information S3 for identifying a communication that the relaying terminal carries out with the second communications terminal T2; and a fourth reporting means for receiving from the second communications terminal T2 and reporting to the relaying terminal fourth communications identification information S4 identifying a communication that the second communications terminal T2 carries out with the relaying terminal.

17. A communications control computer product utilized by a computer connected via a network to a first communications terminal T1, a second communications terminal T2, and a relaying terminal that relays communications between the two terminals, the communications control computer product for making the computer function as: a communication-request acceptance means for accepting from the first communications terminal T1 a request for communication with the second communications terminal T2; a request notification means for notifying the second communications terminal T2 of the communication request; a first reporting means for receiving from the first communications terminal T1 and reporting to the relaying terminal first communications identification information S1 identifying a communication that the first communications terminal T1 carries out with the relaying terminal; a second reporting means for notifying the relaying terminal of the communications request, and receiving from the relaying terminal and reporting to the first communications terminal T1 second communications identification information S2 for identifying a communication that the relaying terminal carries out with the first communications terminal T1; a third reporting means for notifying the relaying terminal of the communications request, and receiving from the relaying terminal and reporting to the second communications terminal T2 third communications identification information S3 for identifying a communication that the relaying terminal carries out with the second communications terminal T2; and a fourth reporting means for receiving from the second communications terminal T2 and reporting to the relaying terminal fourth communications identification information S4 identifying a communication that the second communications terminal T2 carries out with the relaying terminal.

18. A computer-readable recording medium on which is recorded a communications control program utilized by a computer connected via a network to a first communications terminal T1, a second communications terminal T2, and a relaying terminal that relays communications between the two terminals, the computer-readable recording medium on which is recorded a communications control program for executing: a communication-request acceptance step of accepting from the first communications terminal T1 a request for communication with the second communications terminal T2; a request notification step of notifying the second communications terminal T2 of the communication request; a first reporting step of receiving from the first communications terminal T1 and reporting to the relaying terminal first communications identification information S1 identifying a communication that the first communications terminal T1 carries out with the relaying terminal; a second reporting step of notifying the relaying terminal of the communications request, and receiving from the relaying terminal and reporting to the first communications terminal T1 second communications identification information S2 for identifying a communication that the relaying terminal carries out with the first communications terminal T1; a third reporting step of notifying the relaying terminal of the communications request, and receiving from the relaying terminal and reporting to the second communications terminal T2 third communications identification information S3 for identifying a communication that the relaying terminal carries out with the second communications terminal T2; and a fourth reporting step of receiving from the second communications terminal T2 and reporting to the relaying terminal fourth communications identification information S4 identifying a communication that the second communications terminal T2 carries out with the relaying terminal.

19. A communications control method utilized by a first communications terminal T1 connectable via a network with a second communications terminal T2, the communications control method including: a reporting step of reporting to the second communications terminal T2 first communications identification information S1 identifying communications between the second communications terminal T2 and the first communications terminal T1; a receiving step of receiving from the second communications terminal T2 second communications identification information S2 that the second communications terminal T2 uses for identifying communication with the first communications terminal T1; and a communications step of communicating with the second communications terminal T2 by carrying out transmission and reception of data containing the first communications identification information S1 and second communications identification information S2.

20. A first communications terminal T1 connectable via a network with a second communications terminal T2, the first communications terminal comprising: a reporting means for reporting to the second communications terminal T2 first communications identification information S1 identifying communications between the second communications terminal T2 and the first communications terminal T1; a receiving means for receiving from the second communications terminal T2 second communications identification information S2 that the second communications terminal T2 uses for identifying communication with the first communications terminal T1; and a communications means for communicating with the second communications terminal T2 by carrying out transmission and reception of data containing the first communications identification information S1 and second communications identification information S2.

21. A communications control computer product making a computer function as a first communications terminal T1 connectable via a network with a second communications terminal T2, the communications control computer product further for making the computer function as: a reporting means for reporting to the second communications terminal T2 first communications identification information S1 identifying communications between the second communications terminal T2 and the first communications terminal T1; a receiving means for receiving from the second communications terminal T2 second communications identification information S2 that the second communications terminal T2 uses for identifying communication with the first communications terminal T1; and a communications means for communicating with the second communications terminal T2 by carrying out transmission and reception of data containing the first communications identification information S1 and second communications identification information S2.

22. A computer-readable recording medium on which is recorded a communications control program for executing a communications control method utilized by a first communications terminal T1 connectable via a network with a second communications terminal T2, the computer-readable recording medium on which is recorded a communications control program for executing: a reporting step of reporting to the second communications terminal T2 first communications identification information S1 identifying communications between the second communications terminal T2 and the first communications terminal T1; a receiving step of receiving from the second communications terminal T2 second communications identification information S2 that the second communications terminal T2 uses for identifying communication with the first communications terminal T1; and a communications step of communicating with the second communications terminal T2 by carrying out transmission and reception of data containing the first communications identification information S1 and second communications identification information S2.

23. A communications method for when, via a secure host defending against wrongful access from without, internal terminal devices connected to a network on the inside of the secure host and external terminal devices connected to a network on the outside carry out voice communications, the communications method characterized by: accepting by way of the secure host, from outside the secure host, a call request from an external terminal device to a connectable internal terminal device, or accepting by way of the secure host, from inside the secure host, a call request from an internal terminal device to a connectable external terminal device; when a call between the external terminal device and the internal terminal device is established, reporting to the two terminal devices a path readied in advance for transmitting and receiving voice data, and communications identification information for distinguishing what is voice data between the terminal devices, and meanwhile storing terminal-device information identifying the two terminal devices, correlatively with the communications identification information reported to the two terminal devices; when the secure host has received form the external terminal device or the internal terminal device voice data containing the communications identification information, specifying, from the terminal-device information stored correlatively with the communications identification information, a communications-destination terminal device for the voice data, and sending out received voice data to the specified terminal device 1.

Description:

BACKGROUND OF THE INVENTION

[0001] 1. Technical Field

[0002] The present invention relates to communications control systems between computers on the Internet and computers connected to the Internet insulated by firewalls.

[0003] 2. Description of Related Art

[0004] Take for example Internet telephony using, e.g., Internet telephone terminals on the Internet, and Internet telephone terminals connected to the Internet insulated by firewalls. Port numbers are used in Internet telephony to distinguish among a plurality of voice communications. Therefore, to let voice data from an Internet telephony application pass, the considerably broadband RTP/UDP (Real-time Transport Protocol/User Datagram Protocol) port number must be set for passing the firewall.

[0005] In transmitting/receiving voice and animation, UDP (User Datagram Protocol) is generally used. In a situation where a plurality of communications are carried out using UDP, it is necessary either: 1) to allocate a port to every communication; or 2) to assign a data-allotting application to a single port and enter in the data section information for distinguishing communications, and with allotting software to interpret-by derivation from information such as IP address and port number of the packet-sending source-and distribute the data to a program that actually processes the data.

[0006] In Internet telephony via firewalls, communications are carried out according to the VoIP protocol, and voice data is transmitted/received using UDP. In a situation where, for example, a telephone company is to offer Internet telephony services, if 100 calls are to be supported simultaneously on a computer terminal at the telephone company, 200 port numbers will be necessary. This is because two ports, receiving and sending, are required for one call with UDP. Because there are many security problems with this, however, in reality it is hard to adopt.

[0007] On the other hand, using an exchange device to let voice data pass without opening a hole in the firewall is conceivable. The firewall may be avoided if an exchange device is utilized, since the Internet and Intranet connect via the exchange device. Put differently, the firewall can be avoided by installing a non-IP section on the firewall section. Nevertheless, in addition to the high cost of the exchange device, delays arise with this method in the data exchange between the Internet and the exchange device, and between the Intranet and the exchange device. Therefore, this method, by which two exchanges are necessary between the two ends of the communications line, is undesirable owing to a severe worsening in voice quality.

SUMMARY OF THE INVENTION

[0008] An object of the present invention is to provide communications control technology for combining sufficient security compatibly with sufficient data quality in telephonic communications.

[0009] The present invention provides a communications control method utilized in a communications system in which a first communications terminal T1, a second communications terminal T2, and a relaying terminal that relays communications by the two terminals are connected via a network. The communications control method includes:

[0010] a first determination step, prior to the first communications terminal T1 and the second communications terminal T2 carrying out communications via the relaying terminal, of the first communications terminal T1 determining first communications identification information S1 for identifying intercommunications between its terminal and the relaying terminal;

[0011] a second determination step, prior to the first communications terminal T1 and the second communications terminal T2 carrying out communications via the relaying terminal, of the relaying terminal determining second communications identification information S2 for identifying intercommunications between its terminal and the first communications terminal T1;

[0012] a third determination step, prior to the first communications terminal T1 and the second communications terminal T2 carrying out communications via the relaying terminal, of the relaying terminal determining third communications identification information S3 for identifying intercommunications between its terminal and the second communications terminal T2;

[0013] a fourth determination step, prior to the first communications terminal T1 and the second communications terminal T2 carrying out communications via the relaying terminal, of the second communications terminal T2 determining fourth communications identification information S4 for identifying intercommunications between its terminal and the relaying terminal;

[0014] a first communications step of the first communications terminal T1 and the relaying terminal carrying out transmission and reception of first data containing the first communications identification information S1 and the second communications identification information S2;

[0015] a second communications step of the second communications terminal T2 and the relaying terminal carrying out transmission and reception of second data containing the third communications identification information S3 and the fourth communications identification information S4;

[0016] a first relaying step, when the relaying terminal is to transmit to the second communications terminal T2 first data received from the first communications terminal T1, of rewriting within the first data the first communications identification information S1 and the second communications identification information S2 as the third communications identification information S3 and the fourth communications identification information S4; and

[0017] a second relaying step, when the relaying terminal is to transmit to the first communications terminal T1 data received from the second communications terminal T2, of rewriting within the data the third communications identification information S3 and the fourth communications identification information S4 as the first communications identification information S1 and the second communications identification information S2.

[0018] This communications control method is utilized in communications among for example a first communications terminal T1 on the Internet, a second communications terminal T2 on an Intranet, and a gateway that connects the Internet and the Intranet. The first communications terminal T1 and the gateway, and the second communications terminal T2 and the gateway mutually report communications identification information (referred to as “session IDs” hereinafter) among one another, and transmit and receive session IDs for their terminals and partner terminals, together with data. This enables, while a plurality of communications are supported through a single port, each communication to be identified by session ID.

[0019] A second aspect of the present invention provides a relaying method utilized by a relaying terminal that is connected via a network with a first communications terminal T1 and a second communications terminal T2, and that relays communications between the two terminals. The relaying method includes:

[0020] a first determination step of determining second communications identification information S2 identifying a communication carried out with the first communications terminal T1 for relaying communications between the first communications terminal T1 and the second communications terminal T2;

[0021] a second determination step of determining third communications identification information S3 for identifying a communication carried out with the second communications terminal T2 for relaying communications between the first communications terminal T1 and the second communications terminal T2;

[0022] a first communications step of carrying out with the first communications terminal T1 transmission and reception of data containing the second communications identification information S2;

[0023] a second communications step of carrying out with the second communications terminal T2 transmission and reception of data containing the third communications identification information S3;

[0024] a first relaying step of rewriting, when data received from the first communications terminal T1 is to be transmitted to the second communications terminal T2, the second communications identification information S2 within the data as the third communications identification information S3; and

[0025] a second relaying step of rewriting, when data received from the second communications terminal T2 is to be transmitted to the first communications terminal T1, the third communications identification S3 within the data as the second communications identification information S2.

[0026] This method is applicable to gateways connected between the Internet and an Intranet. With this method, utilizing communications identification information (referred to as “session IDs” hereinafter), a relaying device identifies communications with other terminals. Relaying of communications from the first communications terminal T1 and second communications terminal T2 is carried out as follows. When data containing session ID “S2” is received from the first communications terminal T1, the session ID in the data is rewritten as “S3,” and the data is transmitted to the second communications terminal T2. Conversely, when data containing session ID “S3” is received from the second communications terminal T2, the session ID in the data is rewritten as “S2,” and the data is transmitted to the first communications terminal T1.

[0027] A third aspect of the present invention provides the relaying method set forth in the second aspect. The relaying methods further includes:

[0028] a first acquisition step of acquiring first communications identification information S1 identifying a communication that the first communications terminal T1 carries out with the relaying terminal in order to communicate with the second communications terminal T2;

[0029] a second acquisition step of acquiring fourth communications identification information S4 identifying a communication that the second communications terminal T2 carries out with the relaying terminal in order to communicate with the first communications terminal T1; wherein

[0030] the first communications step carries out with the first communications terminal T1 transmission and reception of data further containing the first communications identification information S1,

[0031] the second communications step carries out with second communications terminal T2 transmission and reception of data further containing the fourth communications identification information S4,

[0032] the first relaying step, when data received from the first communications terminal T1 is to be transmitted to the second communications terminal T2, rewrites within the data the first communications identification information S1 and the second communications identification information S2 as the third communications identification information S3 and the fourth communications identification information S4, and

[0033] the second relaying step, when data received from the second communications terminal T2 is to be transmitted to the first communications terminal T1, rewrites within the data the third communications identification information S3 and the fourth communications identification information S4 as the first communications identification information S1 and the second communications identification information S2.

[0034] Under this method, every terminal possesses session IDs that identify communications between other terminals and their terminals. Communications between terminals are specified by combining the two terminals' session IDs. This method is also applicable to multi-stage relaying.

[0035] A fourth aspect of the present invention provides the relaying method set forth in the second aspect. The relaying method further includes a table-preparation step of preparing a session table; wherein

[0036] within a single record the session table:

[0037] stores the first communications identification information S1 and second communications identification information S2 correlatively with a communications address for the first communications terminal T1, and

[0038] stores the third communications identification information S3 and the fourth communications identification information S4 correlatively with a communications address for the second communications terminal T2.

[0039] Specifically, the relaying terminal prepares in the session table entries for relaying communications by the first communications terminal T1 and second communications terminal T2. S1, S2, S3, S4, and IP addresses for the first communications terminal T1 and second communications terminal T2 are written into the entries.

[0040] A fifth aspect of the present invention provides the relaying method set forth in the fourth aspect. The relaying method further includes:

[0041] a termination receiving step of accepting notification that communications between the first communications terminal T1 and the second communications terminal T2 have terminated; and

[0042] a deletion step of deleting from the session table a record corresponding to communications between the first communications terminal T1 and the second communications terminal T2.

[0043] When the relaying terminal accepts the communication termination notice, it deletes from the session table the entries pertaining to the communications.

[0044] A sixth aspect of the present invention provides the relaying method set forth in the second aspect, wherein the relaying terminal is further connected with a computer terminal connected via the network to the first communications terminal T1 and the second communications terminal T2. The relaying method further includes:

[0045] a communications-request receiving step of receiving from the computer terminal a report indicating that there has been a request from the first communications terminal T1 for communication with the second communications terminal T2;

[0046] a first notification step of reporting the second communications identification information S2 to the first communications terminal T1 via the computer terminal; and

[0047] a second notification step of reporting the third communications identification information S3 to the second communications terminal T2 via the computer terminal.

[0048] The relaying terminal in this method is further connected with a separate computer (gatekeeper). Communication-request generation and session ID notification are carried out via the gatekeeper. Session ID notification from the first communications terminal T1 and second communications terminal T2 is received via the gatekeeper also.

[0049] A seventh aspect of the present invention provides the relaying method set forth in the sixth aspect. The relaying method further includes:

[0050] a third acquisition step of acquiring from the computer first communications identification information S1 identifying a communication that the first communications terminal T1 carries out with the relaying terminal in order to communicate with the second communications terminal T2;

[0051] a fourth acquisition step of acquiring from the computer fourth communications identification information S4 identifying a communication that the second communications terminal T2 carries out with the relaying terminal in order to communicate with the first communications terminal T1; wherein

[0052] the first communications step carries out with the first communications terminal T1 transmission and reception of data further containing the first communications identification information S1,

[0053] the second communications step carries out with second communications terminal T2 transmission and reception of data further containing the fourth communications identification information S4,

[0054] the first relaying step, when data received from the first communications terminal T1 is to be transmitted to the second communications terminal T2, rewrites within the data the first communications identification information S1 and the second communications identification information S2 as the third communications identification information S3 and the fourth communications identification information S4, and

[0055] the second relaying step, when data received from the second communications terminal T2 is to be transmitted to the first communications terminal T1, rewrites within the data the third communications identification information S3 and the fourth communications identification information S4 as the first communications identification information S1 and the second communications identification information S2.

[0056] The relaying terminal acquires session ID “S1” for first communications terminal T1, and session ID “S4” for second communications terminal T2 via the aforementioned gatekeeper. After acquisition of the session IDs, relaying of communications by the two terminals T1, T2 takes place, without the gatekeeper intermediating.

[0057] An eighth aspect of the present invention provides the relaying method set forth in the sixth aspect. The relaying method further includes:

[0058] an alive-confirmation step of transmitting to and receiving from the computer terminal at fixed time intervals TM1 alive information signifying one's terminal is alive; and

[0059] a suspend step of suspending relaying of communications between the first communications terminal T1 and the second communications terminal T2 if the alive information has not been received from the computer terminal though a fixed time TM2 or more has elapsed.

[0060] The relaying terminal immediately suspends relaying operations if the gatekeeper (aforementioned computer terminal) is down.

[0061] A ninth aspect of the present invention provides a relaying device connected via a network with a first communications terminal T1 and a second communications terminal T2, for relaying communications between the two terminals. The relaying device comprises:

[0062] a first determination means for determining second communications identification information S2 identifying a communication carried out with the first communications terminal T1 for relaying communications between the first communications terminal T1 and the second communications terminal T2;

[0063] a second determination means for determining third communications identification information S3 identifying a communication carried out with the second communications terminal T2 for relaying communications between the first communications terminal T1 and the second communications terminal T2;

[0064] a first communications means for carrying out with the first communications terminal T1 transmission and reception of data containing the second communications identification information S2;

[0065] a second communications means for carrying out with the second communications terminal T2 transmission and reception of data containing the third communications identification information S3;

[0066] a first relaying means for rewriting, when data received from the first communications terminal T1 is to be transmitted to the second communications terminal T2, the second communications identification information S2 within the data as the third communications identification information S3; and

[0067] a second relaying means for rewriting, when data received from the second communications terminal T2 is to be transmitted to the first communications terminal T1, the third communications identification S3 within the data as the second communications identification information S2.

[0068] A tenth aspect of the present invention provides a relaying computer product utilized by a computer connected via a network with a first communications terminal T1 and a second communications terminal T2, for relaying communications between the two terminals, the relaying computer product for making the computer function as:

[0069] a first determination means for determining second communications identification information S2 identifying a communication carried out with the first communications terminal T1 for relaying communications between the first communications terminal T1 and the second communications terminal T2;

[0070] a second determination means for determining third communications identification information S3 identifying a communication carried out with the second communications terminal T2 for relaying communications between the first communications terminal T1 and the second communications terminal T2;

[0071] a first communications means for carrying out with the first communications terminal T1 transmission and reception of data containing the second communications identification information S2;

[0072] a second communications means for carrying out with the second communications terminal T2 transmission and reception of data containing the third communications identification information S3;

[0073] a first relaying means for rewriting, when data received from the first communications terminal T1 is to be transmitted to the second communications terminal T2, the second communications identification information S2 within the data as the third communications identification information S3; and

[0074] a second relaying means for rewriting, when data received from the second communications terminal T2 is to be transmitted to the first communications terminal T1, the third communications identification S3 within the data as the second communications identification information S2.

[0075] An eleventh aspect of the present invention provides a computer-readable recording medium on which is recorded a relaying program utilized by a relaying terminal that is connected via a network with a first communications terminal T1 and a second communications terminal T2, and that relays communications between the two terminals, the computer-readable recording medium on which is recorded a relaying program for executing:

[0076] a first determination step of determining second communications identification information S2 identifying a communication carried out with the first communications terminal T1 for relaying communications between the first communications terminal T1 and the second communications terminal T2;

[0077] a second determination step of determining third communications identification information S3 for identifying a communication carried out with the second communications terminal T2 for relaying communications by the first communications terminal T1 and the second communications terminal T2;

[0078] a first communications step of carrying out with the first communications terminal T1 transmission and reception of data containing the second communications identification information S2;

[0079] a second communications step of carrying out with the second communications terminal T2 transmission and reception of data containing the third communications identification information S3;

[0080] a first relaying step of rewriting, when data received from the first communications terminal T1 is to be transmitted to the second communications terminal T2, the second communications identification information S2 within the data as the third communications identification information S3; and

[0081] a second relaying step of rewriting, when data received from the second communications terminal T2 is to be transmitted to the first communications terminal T1, the third communications identification S3 within the data as the second communications identification information S2.

[0082] Herein, flexible disks, hard disks, semiconductor memory, CD-ROMs, DVDs, magneto-optical disks (MOs) and other recording media for computer reading/writing may be cited.

[0083] A twelfth aspect of the present invention provides a communications control method utilized by a computer connected via a network to a first communications terminal T1, a second communications terminal T2 and a relaying terminal that relays communications between the two terminals. The communications control method includes:

[0084] a communication-request acceptance step of accepting from the first communications terminal T1 a request for communication with the second communications terminal T2;

[0085] a request notification step of notifying the second communications terminal T2 of the communication request;

[0086] a first reporting step of receiving from the first communications terminal T1 and reporting to the relaying terminal first communications identification information S1 identifying a communication that the first communications terminal T1 carries out with the relaying terminal;

[0087] a second reporting step of notifying the relaying terminal of the communications request, and receiving from the relaying terminal and reporting to the first communications terminal T1 second communications identification information S2 for identifying a communication that the relaying terminal carries out with the first communications terminal T1;

[0088] a third reporting step of notifying the relaying terminal of the communications request, and receiving from the relaying terminal and reporting to the second communications terminal T2 third communications identification information S3 for identifying a communication that the relaying terminal carries out with the second communications terminal T2; and

[0089] a fourth reporting step of receiving from the second communications terminal T2 and reporting to the relaying terminal fourth communications identification information S4 identifying a communication that the second communications terminal T2 carries out with the relaying terminal.

[0090] This method is applicable to gatekeepers connected between the Internet and an Intranet.

[0091] A thirteenth aspect of the present invention provides the communications control method set forth in the twelfth aspect, further including a table-preparation step of preparing a session table; wherein

[0092] within a single record the session table:

[0093] stores the first communications identification information S1 and second communications identification information S2 correlatively with a communications address for the first communications terminal T1, and

[0094] stores the third communications identification information S3 and the fourth communications identification information S4 correlatively with a communications address for the second communications terminal T2.

[0095] Specifically, the gatekeeper (aforementioned computer) prepares in the session table entries for relaying communications by the first communications terminal T1 and second communications terminal T2. S1, S2, S3, S4, and IP addresses for the first communications terminal T1 and second communications terminal T2 are written into the entries.

[0096] A fourteenth aspect of the present invention provides the communications control method set forth in the thirteenth aspect. The communication control method further includes:

[0097] a termination receiving step of accepting notification that communications between the first communications terminal T1 and the second communications terminal Second communications terminal T2 have terminated; and

[0098] a deletion step of deleting from the session table records corresponding to communications between the first communications terminal T1 and the second communications terminal T2.

[0099] When the gatekeeper accepts the communication termination notice from the first communications terminal T1 or the second communications terminal T2, it deletes from the session table the entries pertaining to those communications.

[0100] A fifteenth aspect of the present invention provides the communications control method set forth in the twelfth aspect. The communications control method further includes:

[0101] an alive-recognition step of transmitting to and receiving from the computer terminal at fixed time intervals TM1 alive information signifying one's terminal is alive;

[0102] a termination reporting step of transmitting a communications termination notice to the first communications terminal T1, the second communications terminal T2, and the relaying terminal if the alive information has not been received from the computer terminal though a fixed time TM2 or more has elapsed; and

[0103] cut-off step after transmission of the communications termination notice, of breaking the connection with the first communications terminal T1, the second communications terminal T2, and the relaying terminal.

[0104] A sixteenth aspect of the present invention provides a communications control device connected via a network to a first communications terminal T1, a second communications terminal T2, and a relaying terminal that relays communications between the two terminals. The communications control device comprises:

[0105] a communication-request acceptance means for accepting from the first communications terminal T1 a request for communication with the second communications terminal T2;

[0106] a request notification means for notifying the second communications terminal T2 of the communication request;

[0107] a first reporting means for receiving from the first communications terminal T1 and reporting to the relaying terminal first communications identification information S1 identifying a communication that the first communications terminal T1 carries out with the relaying terminal;

[0108] a second reporting means for notifying the relaying terminal of the communications request, and receiving from the relaying terminal and reporting to the first communications terminal T1 second communications identification information S2 for identifying a communication that the relaying terminal carries out with the first communications terminal T1;

[0109] a third reporting means for notifying the relaying terminal of the communications request, and receiving from the relaying terminal and reporting to the second communications terminal T2 third communications identification information S3 for identifying a communication that the relaying terminal carries out with the second communications terminal T2; and

[0110] a fourth reporting means for receiving from the second communications terminal T2 and reporting to the relaying terminal fourth communications identification information S4 identifying a communication that the second communications terminal T2 carries out with the relaying terminal.

[0111] A seventeenth aspect of the present invention provides a communications control computer product utilized by a computer connected via a network to a first communications terminal T1, a second communications terminal T2, and a relaying terminal that relays communications between the two terminals, the communications control computer product for making the computer function as:

[0112] a communication-request acceptance means for accepting from the first communications terminal T1 a request for communication with the second communications terminal T2;

[0113] a request notification means for notifying the second communications terminal T2 of the communication request;

[0114] a first reporting means for receiving from the first communications terminal T1 and reporting to the relaying terminal first communications identification information S1 identifying a communication that the first communications terminal T1 carries out with the relaying terminal;

[0115] a second reporting means for notifying the relaying terminal of the communications request, and receiving from the relaying terminal and reporting to the first communications terminal T1 second communications identification information S2 for identifying a communication that the relaying terminal carries out with the first communications terminal T1;

[0116] a third reporting means for notifying the relaying terminal of the communications request, and receiving from the relaying terminal and reporting to the second communications terminal T2 third communications identification information S3 for identifying a communication that the relaying terminal carries out with the second communications terminal T2; and

[0117] a fourth reporting means for receiving from the second communications terminal T2 and reporting to the relaying terminal fourth communications identification information S4 identifying a communication that the second communications terminal T2 carries out with the relaying terminal.

[0118] An eighteenth aspect of the present invention provides a computer-readable recording medium on which is recorded a communications control program utilized by a computer connected via a network to a first communications terminal T1, a second communications terminal T2, and a relaying terminal that relays communications between the two terminals, the computer-readable recording medium on which is recorded a communications control program for executing:

[0119] a communication-request acceptance step of accepting from the first communications terminal T1 a request for communication with the second communications terminal T2;

[0120] a request notification step of notifying the second communications terminal T2 of the communication request;

[0121] a first reporting step of receiving from the first communications terminal T1 and reporting to the relaying terminal first communications identification information S1 identifying a communication that the first communications terminal T1 carries out with the relaying terminal;

[0122] a second reporting step of notifying the relaying terminal of the communications request, and receiving from the relaying terminal and reporting to the first communications terminal T1 second communications identification information S2 for identifying a communication that the relaying terminal carries out with the first communications terminal T1;

[0123] a third reporting step of notifying the relaying terminal of the communications request, and receiving from the relaying terminal and reporting to the second communications terminal T2 third communications identification information S3 for identifying a communication that the relaying terminal carries out with the second communications terminal T2; and

[0124] a fourth reporting step of receiving from the second communications terminal T2 and reporting to the relaying terminal fourth communications identification information S4 identifying a communication that the second communications terminal T2 carries out with the relaying terminal.

[0125] Herein, flexible disks, hard disks, semiconductor memory, CD-ROMs, DVDs, magneto-optical disks (MOs) and other recording media for computer reading/writing may be cited.

[0126] A nineteenth aspect of the present invention provides a communications control method utilized by a first communications terminal T1 connectable via a network with a second communications terminal T2. The communications control method includes:

[0127] a reporting step of reporting to the second communications terminal T2 first communications identification information S1 identifying communications between the second communications terminal T2 and the first communications terminal T1;

[0128] a receiving step of receiving from the second communications terminal T2 second communications identification information S2 that the second communications terminal T2 uses for identifying communication with the first communications terminal T1; and

[0129] a communications step of communicating with the second communications terminal T2 by carrying out transmission and reception of data containing the first communications identification information S1 and second communications identification information S2.

[0130] This method is applicable to the first and second communications terminals T1, T2, the relaying terminal (gateway) in the foregoing first invention, and the computer (gatekeeper) in the foregoing sixth invention. Though the terminals connected through the network are multi-stage connected, neighboring terminal associates report mutual communications sessions to each other prior to the start of communications, and identify communications by combining the mutual communications sessions.

[0131] A twentieth aspect of the present invention provides a first communications terminal T1 connectable via a network with a second communications terminal T2. The first communications terminal comprises:

[0132] a reporting means for reporting to the second communications terminal T2 first communications identification information S1 identifying communications between the second communications terminal T2 and the first communications terminal T1;

[0133] a receiving means for receiving from the second communications terminal T2 second communications identification information S2 that the second communications terminal T2 uses for identifying communication with the first communications terminal T1; and

[0134] a communications means for communicating with the second communications terminal T2 by carrying out transmission and reception of data containing the first communications identification information S1 and second communications identification information S2.

[0135] A twenty-first aspect of the present invention provides a communications control computer product making a computer function as a first communications terminal T1 connectable via a network with a second communications terminal T2, the communications control computer product further for making the computer function as:

[0136] a reporting means for reporting to the second communications terminal T2 first communications identification information S1 identifying communications between the second communications terminal T2 and the first communications terminal T1;

[0137] a receiving means for receiving from the second communications terminal T2 second communications identification information S2 that the second communications terminal T2 uses for identifying communication with the first communications terminal T1; and

[0138] a communications means for communicating with the second communications terminal T2 by carrying out transmission and reception of data containing the first communications identification information S1 and second communications identification information S2.

[0139] A twenty-second aspect of the present invention provides a computer-readable recording medium on which is recorded a communications control program for executing a communications control method utilized by a first communications terminal T1 connectable via a network with a second communications terminal T2, the computer-readable recording medium on which is recorded a communications control program for executing:

[0140] a reporting step of reporting to the second communications terminal T2 first communications identification information S1 identifying communications between the second communications terminal T2 and the first communications terminal T1;

[0141] a receiving step of receiving from the second communications terminal T2 second communications identification information S2 that the second communications terminal T2 uses for identifying communication with the first communications terminal T1; and

[0142] a communications step of communicating with the second communications terminal T2 by carrying out transmission and reception of data containing the first communications identification information S1 and second communications identification information S2.

[0143] Herein, flexible disks, hard disks, semiconductor memory, CD-ROMS, DVDs, magneto-optical disks (MOs) and other recording media for computer reading/writing may be cited.

[0144] A twenty-third aspect of the present invention provides a communications method for when, via a secure host defending against wrongful access from without, internal terminal devices connected to a network on the inside of the secure host and external terminal devices connected to a network on the outside carry out voice communications. The communications method is characterized by:

[0145] accepting by way of the secure host, from outside the secure host, a call request from an external terminal device to a connectable internal terminal device, or accepting by way of the secure host, from inside the secure host, a call request from an internal terminal device to a connectable external terminal device;

[0146] when a call between the external terminal device and the internal terminal device is established, reporting to the two terminal devices a path readied in advance for transmitting and receiving voice data, and communications identification information for distinguishing what is voice data between the terminal devices, and meanwhile storing terminal-device information identifying the two terminal devices, correlatively with the communications identification information reported to the two terminal devices;

[0147] when the secure host has received form the external terminal device or the internal terminal device voice data containing the communications identification information, specifying, from the terminal-device information stored correlatively with the communications identification information, a communications-destination terminal device for the voice data, and sending out received voice data to the specified terminal device.

[0148] From the following detailed description in conjunction with the accompanying drawings, the foregoing and other objects, features, aspects and advantages of the present invention will become readily apparent to those skilled in the art.

BRIEF DESCRIPTION OF THE DRAWINGS

[0149] FIG. 1 is an overall configurational diagram of a communications control system having to do with a first embodied example of the present invention;

[0150] FIG. 2 is an explanatory diagram of a relay routine that the gateway carries out;

[0151] FIG. 3A is a First session table (caller terminal);

[0152] FIG. 3B is a second session table (receiver terminal);

[0153] FIG. 3C is a third session table (gateway);

[0154] FIG. 4 is an explanatory diagram illustrating flow in a routine for calling;

[0155] FIG. 5 is an explanatory diagram illustrating flow in a routine for terminating communications;

[0156] FIG. 6 is an overall configurational diagram of communications control system having to do with a second embodied example; and

[0157] FIG. 7 is an overall configurational diagram of communications control system having to do with a third embodied example.

DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0158] First Embodied Example

[0159] To facilitate illustration, in the following explanation will be made taking voice-communications control on the Internet in accordance with TCP/IP (Transmission Control Protocol/Internet Protocol) as an example.

[0160] Configuration

[0161] FIG. 1 is a communications control system having to do with a first embodied example of the present invention. Caller terminal 1a on the Internet 5 and receiver terminal 1b on an Intranet 6 are connected via VoIP gatekeeper 2 (gatekeeper 2 hereinafter) and VoIP gateway 3 (gateway 3 hereinafter) in this communications control system. The gatekeeper 2 and gateway 3 are disposed on a DMZ (Demilitarized Zone) network. Here, the DMZ network is utilized for disposing servers such as, ordinarily, WWW servers and mail servers for external/public services. Devices on the DMZ network and the Intranet 6 are ordinarily protected by two defense means, firewalls 4a, 4b. The gatekeeper 2 administers voice communications on the DMZ network, and the gateway 3 is used to transfer voice packets.

[0162] The caller terminal 1a and the receiver terminal 1b have not-shown voice input means and voice output means, and are communications terminals for carrying out voice communications based on VoIP (Voice-over Internet Protocol). The caller terminal 1a and receiver terminal 1b, prior to initiating communications with another terminal, determine a session ID that specifies direct communications with that terminal, and report this to the given communications partner. Further, the caller terminal 1a and the receiver terminal 1b receive from the gatekeeper 2, and temporarily store, a session ID used for specifying communications by the given communications partner with their terminals. The session IDs are stored in a first session table (FIG. 3(a)) and a second session table (FIG. 3(b)), respectively. These tables will be described later. Furthermore, the caller terminal 1a and the receiver terminal 1b annex session IDs, for their terminals and the direct communications partner, to each voice packet, which they send. The created session IDs should be produced within each device so as not to be duplicates; and may be created, for example, based on the communications addresses for the direct communications partner and their terminals, or else created using random-number generation means.

[0163] The gatekeeper 2 negotiates with the gateway 3 before the start of voice communications to determine information required for the voice data to pass through the firewall. Herein, the gateway 3 determines a session ID that identifies the voice telephone calls between the caller terminal 1a and the receiver terminal 1b, and a port number that the gateway 3 uses for sending or receiving the voice data. Here, whether it is the gateway 3 or the gatekeeper 2 that makes the session ID determination does not matter, but in the present embodied example, the gatekeeper 2 does so. The created session IDs should be produced within each device so as not to be duplicates; and may be created, for example, based on the communications addresses for the direct communications partner and their terminals, or else created using random-number generation means.

[0164] Further, the gatekeeper 2 prepares a fourth session table and herein stores information necessary for the gateway 3 to relay communications between the caller terminal 1a and the receiver terminal 1b. Details of the fourth session table will be described later.

[0165] The gateway 3 acquires the information necessary to relay communications between the caller terminal 1a and the receiver terminal 1b from the gatekeeper 2. The gateway 3 also records the given acquired information in a third session table. The information stored in the third session table is similar to the information that the gatekeeper 2 has stored in the fourth session table, and the details will be described later. The gateway 3 relays communications between the caller terminal 1a and the receiver terminal 1b based on this third session table. Further, when the gateway 3 gets a telephone call-ended notification from the gatekeeper 2, it deletes the corresponding communications entries in the third session table.

[0166] Relay Routine

[0167] (1) Premises

[0168] FIG. 2 is an explanatory diagram of a relay routine that the gateway 3 carries out. A relay routine using voice packets in a voice stream process according to RTP/UDP is illustrated in the diagram. The IP addresses, sending ports, receiving ports, and session IDs that the relay routine requires for each terminal are as follows. Herein, “sending ports” are the numbers of the ports through which the terminals send packets. “Receiving ports” are the numbers of the ports through which the terminals receive packets.

[0169] (1-1) Caller Terminal 1a

[0170] IP address (a): Communications address for caller terminal 1a;

[0171] Sending port (a1): Port number caller terminal 1a uses in sending packets;

[0172] Receiving port (a2): Port number caller terminal 1a uses in receiving packets;

[0173] Session ID (s1): Identification number specifying communications caller terminal 1a carries out with gateway 3 for communicating with receiver terminal 1b.

[0174] (1-2) Receiver Terminal 1b

[0175] IP address (b): Communications address for receiver terminal 1b;

[0176] Sending port (b1): Port number receiver terminal 1b uses in sending packets;

[0177] Receiving port (b2): Port number receiver terminal 1b uses in receiving packets;

[0178] Session ID (s4): Identification number specifying communications receiver terminal 1b carries out with gateway 3 for communicating with caller terminal 1a.

[0179] (1-3) Gateway 3

[0180] IP address (c): Communications address for gateway 3;

[0181] Sending port (c1): Port number gateway 3 uses for sending packets outside the firewall (“external sending-port number” hereinafter);

[0182] Receiving port (c2): Port number gateway 3 uses for receiving packets from outside the firewall (“external receiving-port number” hereinafter);

[0183] Session ID (s2): Identification number for specifying communications gateway 3 carries out with caller terminal 1a for relaying communications between caller terminal 1a and receiver terminal 1b (“outside session ID” hereinafter).

[0184] Sending port (c3): Port number gateway 3 uses for sending packets inside the firewall (“internal sending-port number” hereinafter);

[0185] Receiving port (c4): Port number gateway 3 uses for receiving packets from inside the firewall (“internal receiving-port number” hereinafter);

[0186] Session ID (s3): Identification number for specifying communications gateway 3 carries out with receiver terminal 1b for relaying communications between caller terminal 1a and receiver terminal 1b (“inside session ID” hereinafter).

[0187] (2) Session Tables

[0188] FIG. 3 is a conceptual explanatory diagram of first, second and third session tables for the caller terminal 1a, the receiver terminal 1b and the gateway 3. FIG. 3A is the first session table, which the caller terminal 1a retains. FIG. 3B is the second session table, which the receiver terminal 1b retains. Referring to the first and second session tables, both the terminals 1a, 1b perform packet transmission and reception. In a singe record both the tables store “caller IP,” which is the IP address of caller terminal 1a, “receiver IP,” which is the IP address of the receiver ter