JP5096074B2 - IP telephone apparatus with relay function, IP telephone system including the same, and communication relay method - Google Patents

IP telephone apparatus with relay function, IP telephone system including the same, and communication relay method Download PDF

Info

Publication number
JP5096074B2
JP5096074B2 JP2007218004A JP2007218004A JP5096074B2 JP 5096074 B2 JP5096074 B2 JP 5096074B2 JP 2007218004 A JP2007218004 A JP 2007218004A JP 2007218004 A JP2007218004 A JP 2007218004A JP 5096074 B2 JP5096074 B2 JP 5096074B2
Authority
JP
Japan
Prior art keywords
relay
telephone
call control
terminal
message
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP2007218004A
Other languages
Japanese (ja)
Other versions
JP2009055165A (en
Inventor
晃 宮嶋
和人 小林
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Panasonic Corp
Panasonic Holdings Corp
Original Assignee
Panasonic Corp
Matsushita Electric Industrial Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Panasonic Corp, Matsushita Electric Industrial Co Ltd filed Critical Panasonic Corp
Priority to JP2007218004A priority Critical patent/JP5096074B2/en
Publication of JP2009055165A publication Critical patent/JP2009055165A/en
Application granted granted Critical
Publication of JP5096074B2 publication Critical patent/JP5096074B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)
  • Telephonic Communication Services (AREA)

Description

本発明は、SIP(Session Initiation Protocol)サーバ等の呼制御サーバを備えた広域ネットワークにおいて通信を行うIP(Internet Protocol)電話装置及びこれを備えたIP電話システム並びに通信中継方法に関する。   The present invention relates to an IP (Internet Protocol) telephone apparatus that performs communication in a wide area network including a call control server such as a SIP (Session Initiation Protocol) server, an IP telephone system including the IP telephone system, and a communication relay method.

従来、企業や家庭内のLAN(Local Area Network)に接続されたIP電話装置は、ルータ等の中継装置を介してWAN(Wide-Area Network)に接続されるのが一般的である。そのような中継装置として、LANのみで通用するプライベートなIPアドレスと、外部のWANへのアクセスに利用できるグローバルなIPアドレスとを透過的に相互変換するためのNAT機能を搭載したものが存在する。このNAT機能によれば、LANに接続される機器に対するIPアドレスの付与の自由度が高まり、またLANのセキュリティも高まるという利点がある。   2. Description of the Related Art Conventionally, an IP telephone device connected to a company or home LAN (Local Area Network) is generally connected to a WAN (Wide-Area Network) via a relay device such as a router. As such a relay device, there is a device equipped with a NAT function for transparently converting between a private IP address that can be used only in a LAN and a global IP address that can be used to access an external WAN. . According to this NAT function, there is an advantage that the degree of freedom of assigning an IP address to a device connected to the LAN increases and the security of the LAN also increases.

しかし、中継装置がNAT機能を有する場合、IP電話の呼制御プロトコルとして用いるSIP(Session Initiation Protocol)等ではIPパケットのデータ部にプライベートIPアドレスやポート番号を付加して通信を行うため、IPパケットのヘッダ部分のIPアドレスのみを変換するNAT機能では対応できず、また、IPパケットのデータ部にグローバルIPアドレスを付加しようとした場合でも、IP電話装置は自らが利用するグローバルアドレスやポート番号の情報を自身では把握できないという問題がある。その結果、中継装置が壁となってWAN側からの通信パケットがLAN側に到達しないという、いわゆるNAT越え問題が生じている。   However, when the relay device has a NAT function, in SIP (Session Initiation Protocol) used as a call control protocol for IP telephones, communication is performed by adding a private IP address or port number to the data portion of the IP packet. The NAT function that converts only the IP address in the header portion of the IP telephone device cannot cope with it, and even if an attempt is made to add a global IP address to the data portion of the IP packet, the IP telephone device uses the global address and port number used by itself. There is a problem that information cannot be grasped by itself. As a result, a so-called NAT traversal problem has occurred, in which communication packets from the WAN side do not reach the LAN side due to the relay device as a wall.

このNAT越え問題を解決するための一手段として、STUN(Simple Traversal of User Datagram Protocol)を利用する方法が知られている。この方法では、IP電話装置からの要求に応じて必要な情報(グローバルIPアドレス、ポート番号及びNATの種別等)を提供するSTUNサーバをネットワーク上に設置することでNAT越えを実現可能とする。しかし、この方法は、中継装置のNATの種別や装置特性によっては適切に機能しないことがある。   As a means for solving this NAT traversal problem, a method using STUN (Simple Traversal of User Datagram Protocol) is known. In this method, NAT traversal can be realized by installing a STUN server on the network that provides necessary information (global IP address, port number, NAT type, etc.) in response to a request from the IP telephone apparatus. However, this method may not function properly depending on the NAT type and device characteristics of the relay device.

そこで、そのようなNATの種別や装置特性によらずにNAT越えを実現するための技術として、例えば、ネットワークのファイアウォール(NAT)を挟んで対をなす中継装置を設け、当該中継装置にファイアウォールを越える通信を仲介させることで、NAT越えを実現する通信システムが知られている(特許文献1参照)。   Therefore, as a technique for realizing NAT traversal regardless of the NAT type and device characteristics, for example, a relay device that forms a pair across a network firewall (NAT) is provided, and a firewall is provided on the relay device. There is known a communication system that realizes NAT traversal by mediating intercommunicating communications (see Patent Document 1).

特開2006−254160号公報JP 2006-254160 A

しかしながら、上記特許文献1に記載の従来技術では、通信を実行する端末が属する各ネットワークにおいて、ファイアウォール(NAT)の内外に通信を仲介させる中継装置を設ける必要があるので、システムのコストが嵩み、また、汎用性にも乏しいという問題があった。   However, in the prior art described in Patent Document 1, it is necessary to provide a relay device that mediates communication inside and outside the firewall (NAT) in each network to which a terminal that performs communication belongs, which increases the cost of the system. Also, there was a problem that it was poor in versatility.

NATの種別や装置特性によらずにNAT越えを実現するための技術としては、SBC(Session Border Controller)等の中継サーバにSIPメッセージ及び音声データの中継処理を行わせる方法も存在する。しかし、IP電話装置間で実行されるSIPメッセージや音声データの転送を中継サーバを介して行う場合、トラフィックの増加や中継サーバの過大な処理負荷が生じ得るという課題があった。   As a technique for realizing NAT traversal regardless of the NAT type and device characteristics, there is a method in which a relay server such as an SBC (Session Border Controller) performs relay processing of SIP messages and voice data. However, when transferring SIP messages and voice data executed between IP telephone devices via a relay server, there is a problem that an increase in traffic and an excessive processing load on the relay server may occur.

本発明は、このような従来技術の課題を鑑みて案出されたものであり、IP電話装置が接続される中継装置のNATの種別によらず、簡易かつ安価な構成によりそれらIP電話装置間の音声通信を実現可能とした中継機能付きIP電話装置及びこれを備えたIP電話システム並びに通信中継方法を提供することを目的とする。   The present invention has been devised in view of such problems of the prior art, and it is possible to connect between IP telephone apparatuses with a simple and inexpensive configuration regardless of the NAT type of the relay apparatus to which the IP telephone apparatus is connected. It is an object to provide an IP telephone device with a relay function, an IP telephone system including the IP telephone device, and a communication relay method.

本発明の中継機能付きIP電話装置は、NAT機能を有する中継装置を介して広域ネットワークに接続される複数のIP電話装置とこれらIP電話装置の呼を制御する呼制御サーバとを有するIP電話システムで用いられる中継機能付きIP電話装置であって、前記中継機能付きIP電話装置は、完全コーン型のNAT機能を有する中継装置を介して前記広域ネットワークに接続され、前記IP電話装置と音声通信を行う通常モードと、他のIP電話装置間で実行される音声通信を中継する中継モードとの2つの動作モードを有し、前記中継モードにある場合、前記呼制御サーバに対し、当該呼制御サーバを介して他のIP電話装置間で送受信される呼制御メッセージの転送を指示する転送指示手段と、前記転送指示に基づき前記呼制御サーバから転送された呼制御メッセージを受信し、当該呼制御メッセージに含まれる発信先および発信元のIPアドレスおよびポート番号を認識するとともに、当該呼制御メッセージのSDPに含まれる発信元のIPアドレスおよびポート番号を自装置のIPアドレスおよびポート番号にそれぞれ書き換え、当該書き換え後の呼制御メッセージを前記呼制御サーバに返送するメッセージ中継手段と、前記呼制御メッセージの送受信により前記他のIP電話装置間で音声通信を実行するための接続が確立された後、当該IP電話装置の一方から前記自装置のIPアドレスおよびポート番号宛に送信される通信データを、前記認識に基づいて本来の発信先である他方に転送することにより前記音声通信を中継する音声中継手段とを備えたことを特徴とする。
An IP telephone apparatus with a relay function according to the present invention includes an IP telephone system having a plurality of IP telephone apparatuses connected to a wide area network through a relay apparatus having a NAT function and a call control server for controlling calls of these IP telephone apparatuses. The IP telephone device with a relay function used in the above-mentioned network is connected to the wide area network via a relay device having a complete cone type NAT function, and performs voice communication with the IP telephone device A normal mode for performing the operation and a relay mode for relaying voice communication performed between other IP telephone devices. When the operation mode is in the relay mode, the call control server A transfer instructing unit for instructing transfer of a call control message transmitted / received between other IP telephone devices via the communication device, and the call control server based on the transfer instruction. Receiving a call control message transferred from, recognizes the destination and source IP address and port number included in the call control message, the originating IP address and ports in the SDP of the call control messages The message relay means for rewriting the number to the IP address and port number of the own device and returning the rewritten call control message to the call control server, and the voice between the other IP telephone device by transmitting and receiving the call control message After the connection for executing communication is established, communication data transmitted from one of the IP telephone devices to the IP address and port number of the own device is the original transmission destination based on the recognition. Voice relay means for relaying the voice communication by transferring to That.

このように本発明によれば、中継機能付きIP電話装置が自ら音声通信を行わない場合に他のIP電話装置間の音声通信を中継することで、音声通信を行うIP電話装置が接続される中継装置のNATの種別によらず、簡易かつ安価な構成によりそれらIP電話装置間の音声通信を実現できるという優れた効果を奏する。   As described above, according to the present invention, when an IP telephone device with a relay function does not perform voice communication by itself, an IP telephone device that performs voice communication is connected by relaying voice communication between other IP telephone devices. Regardless of the NAT type of the relay device, the voice communication between the IP telephone devices can be realized with a simple and inexpensive configuration.

上記課題を解決するためになされた第1の発明は、NAT機能を有する中継装置を介して広域ネットワークに接続される複数のIP電話装置とこれらIP電話装置の呼を制御する呼制御サーバとを有するIP電話システムで用いられる中継機能付きIP電話装置であって、前記中継機能付きIP電話装置は、完全コーン型のNAT機能を有する中継装置を介して前記広域ネットワークに接続され、前記IP電話装置と音声通信を行う通常モードと、他のIP電話装置間で実行される音声通信を中継する中継モードとの2つの動作モードを有し、前記中継モードにある場合、前記呼制御サーバに対し、当該呼制御サーバを介して他のIP電話装置間で送受信される呼制御メッセージの転送を指示する転送指示手段と、前記転送指示に基づき前記呼制御サーバから転送された呼制御メッセージを受信し、当該呼制御メッセージに含まれる発信先および発信元のIPアドレスおよびポート番号を認識するとともに、当該呼制御メッセージのSDPに含まれる発信元のIPアドレスおよびポート番号を自装置のIPアドレスおよびポート番号にそれぞれ書き換え、当該書き換え後の呼制御メッセージを前記呼制御サーバに返送するメッセージ中継手段と、前記呼制御メッセージの送受信により前記他のIP電話装置間で音声通信を実行するための接続が確立された後、当該IP電話装置の一方から前記自装置のIPアドレスおよびポート番号宛に送信される通信データを、前記認識に基づいて本来の発信先である他方に転送することにより前記音声通信を中継する音声中継手段とを備えた構成とする。
A first invention made to solve the above problems includes a plurality of IP telephone apparatuses connected to a wide area network via a relay apparatus having a NAT function, and a call control server for controlling calls of these IP telephone apparatuses. An IP telephone apparatus with a relay function used in an IP telephone system having the IP telephone apparatus with the relay function, wherein the IP telephone apparatus with the relay function is connected to the wide area network via a relay apparatus having a complete cone type NAT function. And a normal mode for performing voice communication and a relay mode for relaying voice communication performed between other IP telephone devices. When in the relay mode, the call control server Transfer instruction means for instructing transfer of a call control message transmitted and received between other IP telephone devices via the call control server, and based on the transfer instruction, Receiving the forwarded call control message from the control server, recognizes the destination and source IP address and port number included in the call control message, the source IP address included in the SDP of the call control messages And message relay means for rewriting the port number to the IP address and port number of the own device and returning the call control message after the rewriting to the call control server, and the other IP telephone device by transmitting and receiving the call control message Communication data transmitted from one of the IP telephone devices to the IP address and port number of the own device after the connection for performing voice communication is established at the original destination based on the recognition. structure that includes a voice relay means for relaying the voice communication by transferring to an other To.

これによると、中継機能付きIP電話装置が自ら音声通信を行わない場合に他のIP電話装置間の音声通信を中継することで、音声通信を行うIP電話装置が接続される中継装置のNATの種別によらず、簡易かつ安価な構成によりIP電話装置間の音声通信を実現できる。また、音声通信を行うIP電話装置は、特別な機能を必要とすることなく、従来と同様の手順で音声通信を実行できるという利点もある。   According to this, when the IP telephone device with a relay function does not perform voice communication by itself, by relaying voice communication between other IP telephone devices, the NAT of the relay device to which the IP telephone device that performs voice communication is connected Regardless of the type, voice communication between IP telephone devices can be realized with a simple and inexpensive configuration. In addition, an IP telephone apparatus that performs voice communication has an advantage that voice communication can be executed in the same procedure as before without requiring a special function.

この場合、中継機能付きIP電話装置は、自ら音声通信を行わない場合に中継処理(中継モード)を実行することで、自装置の通常の音声通信処理(通常モード)への影響(処理遅延等)を抑制することができる。   In this case, the IP telephone device with a relay function executes relay processing (relay mode) when voice communication is not performed by itself, thereby affecting the normal voice communication processing (normal mode) of the own device (processing delay or the like). ) Can be suppressed.

上記課題を解決するためになされた第2の発明は、前記転送指示手段は、前記呼制御サーバに対して転送指示要求パケットを継続的に繰り返し送信することで前記呼制御メッセージの転送を指示する一方、前記パケットの送信を停止することで前記転送の指示を解除する構成とする。
A second invention has been made in order to solve the above problems, the transfer instruction means instructs the transfer of the call control messages by continuously repeatedly transmit the transfer instruction request packet to the call control server On the other hand, the transfer instruction is canceled by stopping transmission of the packet.

これによると、他のIP電話装置間の音声通信を中継する際のインバウンド通信を可能とするために継続的にパケットを送信し、このパケット送信の有無により、呼制御サーバに対する呼制御メッセージの転送の指示または解除を行うので、外部から自装置の所定ポートにアクセス可能な時間を必要最小限としてセキュリティを高めることができる。   According to this, packets are continuously transmitted to enable inbound communication when voice communication between other IP telephone devices is relayed, and the call control message is transferred to the call control server depending on the presence / absence of this packet transmission. Therefore, it is possible to increase security by minimizing the time required to access a predetermined port of the own device from the outside.

上記課題を解決するためになされた第3の発明は、前記転送指示要求パケットは自装置において音声中継に使用するポートから送信する構成とする。   According to a third aspect of the invention for solving the above problem, the transfer instruction request packet is transmitted from a port used for voice relay in the own apparatus.

これによると、呼制御メッセージの指示または解除と、音声通信の中継のためのUDPホールパンチングを連動して行うことが可能となり、動作の簡易化と高能率化を図ることができる。   According to this, it becomes possible to perform instructing or canceling the call control message and UDP hole punching for relaying voice communication in conjunction with each other, and it is possible to simplify the operation and increase the efficiency.

上記課題を解決するためになされた第4の発明は、前記中継モードを実行中に前記通常モードへ移行する場合、前記音声通信を実行するIP電話装置の一方に対して前記IP電話装置間の接続を再度確立するための呼制御メッセージの送出を指示するとともに、前記呼制御サーバに対して前記IP電話装置間で送受信される呼制御メッセージを他の中継機能付きIP電話装置へ転送するように指示する中継変更指示手段を更に備えた構成とする。   According to a fourth aspect of the present invention for solving the above problems, when the mode is shifted to the normal mode while the relay mode is being executed, the IP telephone device is in communication with one of the IP telephone devices that performs the voice communication. Instructing the call control server to send a call control message for re-establishing the connection and transferring the call control message transmitted / received between the IP telephone devices to the other IP telephone device with a relay function. A relay change instruction means for instructing is further provided.

これによると、中継機能付きIP電話装置は、音声通信の中継を実行中に自ら音声通信を行う必要が生じた場合、その中継処理を他の中継機能付きIP電話装置に容易に引き継ぐことができ、中継していた音声通信が中止されるという不都合を回避することができる。   According to this, when an IP telephone device with a relay function needs to perform voice communication by itself during execution of voice communication, it can easily take over the relay processing to another IP telephone device with a relay function. Thus, it is possible to avoid the inconvenience that the voice communication being relayed is stopped.

上記課題を解決するためになされた第5の発明は、上記第1乃至第4の発明のいずれかに係る中継機能付きIP電話装置を備えたIP電話システムである。   A fifth invention made to solve the above problems is an IP telephone system including the IP telephone device with a relay function according to any one of the first to fourth inventions.

上記課題を解決するためになされた第6の発明は、前記呼制御サーバは、前記IP電話装置からの登録要求を受信して前記IP電話装置を呼制御メッセージまたは通信データを中継する中継端末として中継端末登録テーブルに登録する中継端末登録手段と、他のIP電話装置間で送受信される呼制御メッセージを前記中継端末登録テーブルに登録された中継端末に転送する転送手段とを備えた前記呼制御サーバは呼制御メッセージまたは通信データを中継する端末を登録する中継端末登録テーブル手段と、前記端末からの登録要求を受信して前記端末を中継端末として登録する中継端末登録手段とを備えた構成とする。   A sixth invention made to solve the above-described problem is that the call control server receives a registration request from the IP telephone apparatus and uses the IP telephone apparatus as a relay terminal that relays a call control message or communication data. The call control comprising: a relay terminal registration means for registering in the relay terminal registration table; and a transfer means for transferring a call control message transmitted / received between other IP telephone devices to the relay terminal registered in the relay terminal registration table A server comprising: a relay terminal registration table means for registering a terminal that relays a call control message or communication data; and a relay terminal registration means for receiving a registration request from the terminal and registering the terminal as a relay terminal; To do.

これによると、呼制御サーバは、呼制御メッセージをどの端末に中継させるか、自動的に判別することができ、システムの設定操作性が向上する。   According to this, the call control server can automatically determine to which terminal the call control message is relayed, and the setting operability of the system is improved.

上記課題を解決するためになされた第7の発明は、NAT機能を有する中継装置を介して広域ネットワークに接続される複数のIP電話装置とこれらIP電話装置の呼を制御する呼制御サーバとを有するIP電話システムで用いられる通信中継方法であって、前記IP電話装置の少なくとも一つは、完全コーン型のNAT機能を有する中継装置を介して前記広域ネットワークに接続され、前記IP電話装置と音声通信を行う通常モードと、他のIP電話装置間で実行される音声通信を中継する中継モードとの2つの動作モードを有し、前記中継モードにある場合、前記呼制御サーバに対し、当該呼制御サーバを介して他のIP電話装置間で送受信される呼制御メッセージの転送を指示し、前記転送指示に基づき前記呼制御サーバから転送された呼制御メッセージを受信し、当該呼制御メッセージに含まれる発信先および発信元のIPアドレスおよびポート番号を認識するとともに、当該呼制御メッセージのSDPに含まれる発呼元のIPアドレスおよびポート番号を自装置のIPアドレスおよびポート番号にそれぞれ書き換え、当該書き換え後の呼制御メッセージを前記呼制御サーバに返送し、前記呼制御メッセージの送受信により前記他のIP電話装置間で音声通信を実行するための接続が確立された後、当該IP電話装置の一方から前記自装置のIPアドレスおよびポート番号宛に送信される通信データを、前記認識に基づいて本来の発信先である他方に転送することにより前記音声通信を中継する。 A seventh invention made to solve the above problems includes a plurality of IP telephone apparatuses connected to a wide area network via a relay apparatus having a NAT function, and a call control server for controlling calls of these IP telephone apparatuses. A communication relay method used in an IP telephone system, wherein at least one of the IP telephone devices is connected to the wide area network via a relay device having a complete cone type NAT function, and the IP telephone device and voice There are two operation modes, a normal mode for performing communication and a relay mode for relaying voice communication performed between other IP telephone devices. When in the relay mode, the call control server is informed of the call mode. Instructs transfer of a call control message transmitted / received between other IP telephone devices via the control server, and is transferred from the call control server based on the transfer instruction. Receiving a call control message, recognizes the destination and source IP address and port number included in the call control message, the IP address and port number of the calling side contained in the SDP of the call control message itself Connection for rewriting the IP address and port number of the device, returning the rewritten call control message to the call control server, and performing voice communication between the other IP telephone devices by transmitting and receiving the call control message Is established, the communication data transmitted from one of the IP telephone devices to the IP address and port number of the own device is transferred to the other, which is the original transmission destination, based on the recognition. Relay communication.

これによると、中継機能付きIP電話装置が自ら音声通信を行わない場合に他のIP電話装置間の音声通信を中継することで、音声通信を行うIP電話装置が接続される中継装置のNATの種別によらず、簡易かつ安価な構成によりIP電話装置間の音声通信を実現できる。   According to this, when the IP telephone device with a relay function does not perform voice communication by itself, by relaying voice communication between other IP telephone devices, the NAT of the relay device to which the IP telephone device that performs voice communication is connected Regardless of the type, voice communication between IP telephone devices can be realized with a simple and inexpensive configuration.

以下、本発明の実施の形態について図面を参照しながら説明する。   Hereinafter, embodiments of the present invention will be described with reference to the drawings.

図1は本願発明に係る中継機能付きIP電話端末を備えたIP電話システムの概略を示すシステム構成図であり、図2はIP電話端末の機能ブロック図であり、図3はSIPサーバの機能ブロック図である。   1 is a system configuration diagram showing an outline of an IP telephone system including an IP telephone terminal with a relay function according to the present invention, FIG. 2 is a functional block diagram of the IP telephone terminal, and FIG. 3 is a functional block of a SIP server. FIG.

このIP電話システム1は、複数のIP電話端末A〜E及びSIPサーバ(呼制御サーバ)2が、インターネット(広域ネットワーク)3を介してそれぞれ通信可能に接続された構成を有する。IP電話端末A〜Eは、それぞれLAN(Local Area Network)4〜8に属しており、NATルータ(NAT機能を有する中継装置)A〜Eを介してインターネット3に接続される。   The IP telephone system 1 has a configuration in which a plurality of IP telephone terminals A to E and a SIP server (call control server) 2 are connected to each other via the Internet (wide area network) 3 so as to communicate with each other. IP telephone terminals A to E belong to LANs (Local Area Networks) 4 to 8, respectively, and are connected to the Internet 3 via NAT routers (relay devices having a NAT function) A to E.

IP電話端末A〜Eは、SIP(Session Initiation Protocol)のUAC(User Agent Client)として機能する。IP電話端末C,Dは、IP電話端末A,B,Eと同様に他のIP電話端末と音声通信を行う通常モードと、他のIP電話端末間で実行される音声通信を中継する中継モードとの2つの動作モードを有する中継機能付きIP電話端末(以下、「中継端末」という。)であり、自ら音声通信を行わない場合には中継モードを実行して他のIP電話端末間の音声通信を中継可能である。   The IP telephone terminals A to E function as UAC (User Agent Client) of SIP (Session Initiation Protocol). The IP telephone terminals C and D, like the IP telephone terminals A, B, and E, are in a normal mode for performing voice communication with other IP telephone terminals and a relay mode for relaying voice communication performed between the other IP telephone terminals. When the IP telephone terminal with a relay function (hereinafter referred to as “relay terminal”) has two operation modes, and does not perform voice communication by itself, the relay mode is executed and the voice between other IP telephone terminals is Communication can be relayed.

中継端末C,Dは、図2に示すように、呼制御部11、ダイヤル操作部12、音声パケット送受信部13、ハンドセット部14、中継端末登録部(転送指示手段)15、中継動作設定部16、SIPメッセージ中継部(メッセージ中継手段、中継変更指示手段)17、中継用アドレス情報格納部18、音声パケット中継部(音声中継手段)19、及びネットワークI/F部20を備える。ここで、中継端末登録部15、中継動作設定部16、SIPメッセージ中継部17、中継用アドレス情報格納部18、及び音声パケット中継部19については、中継端末C,Dが有する中継機能に関わるものであり、その他についてはIP電話端末A,B,Eと共通の構成である。   As shown in FIG. 2, the relay terminals C and D include a call control unit 11, a dial operation unit 12, a voice packet transmission / reception unit 13, a handset unit 14, a relay terminal registration unit (transfer instruction unit) 15, and a relay operation setting unit 16. SIP message relay unit (message relay unit, relay change instruction unit) 17, relay address information storage unit 18, voice packet relay unit (voice relay unit) 19, and network I / F unit 20. Here, the relay terminal registration unit 15, the relay operation setting unit 16, the SIP message relay unit 17, the relay address information storage unit 18, and the voice packet relay unit 19 are related to the relay function of the relay terminals C and D. Other configurations are the same as those of the IP telephone terminals A, B, and E.

呼制御部11は、ユーザによるダイヤル操作部12の操作に応じて、SIPに基づき相手装置(他のIP電話端末)との間でSIPサーバ2を介してSIPメッセージを交換しながら呼接続を確立するシグナリング処理を行う。また、呼制御部11は、上記通常モード及び中継モードの2つの動作モードを選択的に実行すべく各部の処理を制御する。動作モードの選択には、IP電話システム1の使用形態に応じて種々の方法を用いることができる。例えば、各動作モードについて予め実行時間を設定したり、或いは、自装置が他のIP電話端末と音声通信を行わない場合には常に中継モードを実行させたりすることができる。   The call control unit 11 establishes a call connection while exchanging SIP messages with the partner device (another IP telephone terminal) via the SIP server 2 based on SIP in accordance with the operation of the dial operation unit 12 by the user. Signaling processing is performed. Further, the call control unit 11 controls the processing of each unit so as to selectively execute the two operation modes of the normal mode and the relay mode. Various methods can be used for selecting the operation mode depending on the usage mode of the IP telephone system 1. For example, the execution time can be set in advance for each operation mode, or the relay mode can always be executed when the own device does not perform voice communication with other IP telephone terminals.

音声パケット送受信部13は、呼接続確立後の音声パケットの送受信を始めとして、VoIP(voice over internet protocol)に基づき相手装置との間で実行される音声通信に関する種々の処理を実行する。音声パケット送受信部13は、送信データ及び受信データのA/D及びD/A変換機能と、所定の音声符号化方式(例えば、ITU−T勧告G.711、G.729等)に基づく音声コーデック機能とを有しており、ユーザが使用するハンドセット部14から入力される音声のアナログ信号をA/D変換及び符号化して送信データとする一方、符号化された受信データを復号化及びD/A変換して生成したアナログ信号をハンドセット部14に出力する。   The voice packet transmitting / receiving unit 13 executes various processes related to voice communication performed with a partner apparatus based on VoIP (voice over internet protocol), starting with transmission / reception of voice packets after establishment of a call connection. The voice packet transmission / reception unit 13 includes an A / D and D / A conversion function for transmission data and reception data, and a voice codec based on a predetermined voice coding method (for example, ITU-T recommendation G.711, G.729, etc.) A voice analog signal input from the handset unit 14 used by the user is A / D converted and encoded to be transmitted data, while the encoded received data is decoded and D / The analog signal generated by the A conversion is output to the handset unit 14.

中継端末登録部15は、SIPサーバ2に対して自装置が中継モードにあることを登録(以下、「中継端末登録」という。)するための処理を実行する。より詳細には、中継端末登録部15は、自装置が中継モードにある場合、SIPサーバ2に対して中継端末登録のリクエストを含むパケットを継続的に繰り返し送信する一方、自装置が通常モードにある場合、そのパケットの送信を停止する。中継動作設定部16には、中継端末登録部15が実行する中継端末登録に必要な情報が設定され、例えば、パケットの送信先の情報、パケットの送信タイミング、パケットを送出するポート番号の情報等が設定される。   The relay terminal registration unit 15 executes processing for registering that the local apparatus is in the relay mode with respect to the SIP server 2 (hereinafter referred to as “relay terminal registration”). More specifically, when the own device is in the relay mode, the relay terminal registration unit 15 continuously and repeatedly transmits a packet including the request for registering the relay terminal to the SIP server 2, while the own device is in the normal mode. If there is, stop sending the packet. Information necessary for relay terminal registration executed by the relay terminal registration unit 15 is set in the relay operation setting unit 16. For example, information on a packet transmission destination, packet transmission timing, and information on a port number for sending a packet, etc. Is set.

後述するように、この中継動作設定部16によるパケット送信は、SIPサーバ2に対するSIPメッセージの転送指示として機能し、これを受けたSIPサーバ2は、他のIP電話端末間で送受信されるSIPメッセージを登録中の中継端末(即ち、SIPサーバ2がパケットを受信中の中継端末)に対して適宜転送する。この転送指示は、中継端末の登録が解除される(即ち、中継端末からのパケットの受信が停止する)ことで解除される。また、パケットは、UDPホールパンチング(UDP hole punching)として後の音声通信を中継する際に使用するポート(以下、「音声中継ポート」という。)から送出され、これにより、音声中継ポートの穴あけが行われ、他のIP電話端末からのインバウンド通信が可能となる。   As will be described later, the packet transmission by the relay operation setting unit 16 functions as a SIP message transfer instruction to the SIP server 2, and the SIP server 2 that receives this packet transmits / receives a SIP message between other IP telephone terminals. Is appropriately transferred to the relay terminal that is registering (that is, the relay terminal in which the SIP server 2 is receiving the packet). This transfer instruction is canceled when the registration of the relay terminal is canceled (that is, reception of a packet from the relay terminal is stopped). Further, the packet is sent out from a port (hereinafter referred to as “voice relay port”) used for relaying subsequent voice communication as UDP hole punching. Inbound communication from other IP telephone terminals is possible.

SIPメッセージ中継部17は、上記中継端末登録に基づきSIPサーバ2から転送されたSIPメッセージを受信し、そのSIPメッセージ上のSDP(Session Description Protocol)記述文書(以下、単に「SDP」という。)に含まれる音声通信の通信先を示すIPアドレス及びポート番号を自装置の所定のIPアドレス及びポート番号にそれぞれ書き換え、その書き換え後のSIPメッセージを再びSIPサーバ2に返送する。ここで、書き換え用いられる自装置のIPアドレス及びポート番号は、中継用アドレス情報として中継用アドレス情報格納部18に予め格納される。ここで用いられる自装置のポート番号は、上述の音声中継ポートの番号である。なお、SIPメッセージ中継部17が上記IPアドレス及びポート番号の書き換え処理のみを実行し、その書き換え処理に関わるSIPメッセージの送受信の処理を、通常のSIPメッセージと同様に呼制御部11が実行する構成とすることもできる。   The SIP message relay unit 17 receives the SIP message transferred from the SIP server 2 based on the relay terminal registration, and stores it in an SDP (Session Description Protocol) description document (hereinafter simply referred to as “SDP”) on the SIP message. The IP address and port number indicating the communication destination of the included voice communication are rewritten to the predetermined IP address and port number of the own device, respectively, and the rewritten SIP message is returned to the SIP server 2 again. Here, the IP address and port number of the own device to be rewritten are stored in advance in the relay address information storage unit 18 as relay address information. The port number of the own device used here is the number of the voice relay port described above. The SIP message relay unit 17 executes only the rewriting process of the IP address and the port number, and the call control unit 11 executes the transmission / reception process of the SIP message related to the rewriting process in the same way as a normal SIP message. It can also be.

音声パケット中継部19は、上述の中継モードの実行によって他のIP電話端末間の呼接続が確立された後、メディアセッションにおいてそれらIP電話端末間で送受信される音声パケットの中継処理を行う。   The voice packet relay unit 19 relays voice packets transmitted and received between the IP telephone terminals in the media session after the call connection between the other IP telephone terminals is established by executing the relay mode.

ネットワークI/F部20は、LANに接続され、所定の通信プロトコルに従って相手装置との間でSIPメッセージ及び音声パケットの送受信を実行する。   The network I / F unit 20 is connected to the LAN and executes transmission / reception of SIP messages and voice packets with a partner apparatus according to a predetermined communication protocol.

NATルータA〜Eは、IP電話端末A〜Eが各LAN4〜8において通信に使用するプライベートなIPアドレスと、その外部のインターネット3を介した通信に使用するグローバルなIPアドレスとを透過的に相互変換するためのNAT機能を搭載したブロードバンドルータである。NATルータA〜Eは、そのNAT機能により、NATの内側から外側へ開始されるアウトバウンド通信を許容する一方、NATの外側から内側へ開始されるインバウンド通信を原則として拒否し、また、時間経過等によりNATの変換テーブルのエントリ(登録内容)を消滅させることで、ファイアウォール的な役割も果たす。なお、ここで用いる用語「NAT」は、プライベートアドレスとグローバルアドレスとを変換する技術に限定されるものではなく、IPアドレスの変換に加えてポート番号を変換するNAPT(Network Address Port Translation)等の類似技術を含むものとする。   The NAT routers A to E transparently transmit a private IP address used for communication by the IP telephone terminals A to E in the respective LANs 4 to 8 and a global IP address used for communication via the external Internet 3. This is a broadband router equipped with a NAT function for mutual conversion. The NAT routers A to E allow outbound communication started from the inside to the outside of the NAT by the NAT function, while rejecting inbound communication started from the outside to the inside of the NAT in principle. By deleting the entry (registration contents) of the NAT conversion table as described above, it also serves as a firewall. Note that the term “NAT” used here is not limited to a technique for converting a private address and a global address, but includes NAPT (Network Address Port Translation) that converts a port number in addition to IP address conversion. Similar technology shall be included.

ここで、NATルータA,B,EのNAT機能は、実装上の挙動から分類されるNAT種別(完全コーン型(Full Cone)、制限付きコーン型(Restricted Cone)、ポート制限付きコーン型(Port Restricted Cone)、対称型(Symmetric))のうちの何れに属するものでもよい。一方、中継端末C,Dが接続されるNATルータC,DのNAT機能は、同一のプライベートなIPアドレス及びポート番号と同一のグローバルなIPアドレス及びポート番号とのマッピングが任意の通信相手に対して保持される完全コーン型であることが必要である。場合によっては、中継端末C,DがNATルータを介さずにインターネット3に接続される構成も可能である。   Here, the NAT functions of the NAT routers A, B, and E are classified into NAT types (Full Cone), Restricted Cone (Restricted Cone), and Port Cone (Port). It may belong to any of Restricted Cone) and Symmetric). On the other hand, the NAT function of the NAT routers C and D to which the relay terminals C and D are connected is such that the mapping between the same private IP address and port number and the same global IP address and port number can be made to any communication partner. It is necessary to be a complete cone type to be held. In some cases, a configuration in which the relay terminals C and D are connected to the Internet 3 without going through a NAT router is also possible.

SIPサーバ2は、SIPのUAS(User Agent Server)として機能する。SIPサーバ2は、図3に示すように、端末登録部31、端末テーブル32、SIPメッセージ中継部33、中継端末登録部34、及び中継端末テーブル35を備える。   The SIP server 2 functions as a SIP UAS (User Agent Server). As shown in FIG. 3, the SIP server 2 includes a terminal registration unit 31, a terminal table 32, a SIP message relay unit 33, a relay terminal registration unit 34, and a relay terminal table 35.

端末登録部31は、各IP電話端末A〜EからREGISTERメッセージを受信することにより、IP電話端末A〜Eの位置情報(IPアドレス、ポート番号等)を取得し、それらを登録及び管理するレジストラ機能を有する。IP電話端末A〜Eの位置情報は、端末テーブル32に記憶され、必要に応じて適宜更新される。   The terminal registration unit 31 receives the REGISTER message from each of the IP telephone terminals A to E, thereby acquiring the location information (IP address, port number, etc.) of the IP telephone terminals A to E, and registering and managing them. It has a function. The location information of the IP telephone terminals A to E is stored in the terminal table 32 and updated as necessary.

SIPメッセージ中継部33は、各IP電話端末A〜Eからのリクエストに応じて、それら装置間の呼接続のためのSIPメッセージの中継を行う。   The SIP message relay unit 33 relays a SIP message for call connection between the devices in response to requests from the IP telephone terminals A to E.

中継端末登録部34は、中継端末C,Dの中継端末登録部15からのリクエストに従って中継端末登録を実行する。より詳細には、中継端末登録部34は、中継端末から中継端末登録のリクエストを含むパケットを継続的に受信している間は、当該中継端末が中継モードにあると認識し、その位置情報(IPアドレス、ポート番号等)を中継端末テーブル35に記憶する。一方、そのパケットの受信が停止すると、当該中継端末の登録を解除するために、その位置情報を中継端末テーブル35から消去する。   The relay terminal registration unit 34 executes relay terminal registration in accordance with a request from the relay terminal registration unit 15 of the relay terminals C and D. More specifically, the relay terminal registration unit 34 recognizes that the relay terminal is in the relay mode while continuously receiving packets including the relay terminal registration request from the relay terminal, and detects the position information ( (IP address, port number, etc.) are stored in the relay terminal table 35. On the other hand, when the reception of the packet is stopped, the position information is deleted from the relay terminal table 35 in order to cancel the registration of the relay terminal.

なお、中継端末登録部34は、中継モードにある複数の中継端末を登録した場合、それら中継端末に対して所定の優先順位(例えば、登録順)を設定し、その優先順位に基づき各中継端末に中継処理を実行させることができる。また、後述するように、中継端末登録部34は、中継端末が中継モードを実行中に前記通常モードへ移行する場合、他の中継端末にその中継処理を引き継ぐための処理を実行する。   When a plurality of relay terminals in the relay mode are registered, the relay terminal registration unit 34 sets a predetermined priority (for example, registration order) for the relay terminals, and each relay terminal is based on the priority. Can execute relay processing. As will be described later, when the relay terminal shifts to the normal mode while the relay terminal is executing the relay mode, the relay terminal registration unit 34 executes a process for taking over the relay process to another relay terminal.

ネットワークI/F部36は、インターネット3に接続され、所定の通信プロトコルに従ってネット上の各IP電話端末A〜Eとの間でSIPメッセージ等の送受信を実行する。   The network I / F unit 36 is connected to the Internet 3 and executes transmission / reception of SIP messages and the like with the IP telephone terminals A to E on the network according to a predetermined communication protocol.

図4は本願発明に係るIP電話システムの基本動作を示すシーケンス図である。ここでは、IP電話端末A及びIP電話端末Bをそれぞれ発信側及び着信側とし、それらの音声通信を中継端末Cが中継する場合を示している。   FIG. 4 is a sequence diagram showing the basic operation of the IP telephone system according to the present invention. Here, a case is shown in which the IP telephone terminal A and the IP telephone terminal B are the transmission side and the reception side, respectively, and the voice communication is relayed by the relay terminal C.

図4に示すように、IP電話端末A,B及び中継端末Cは、それぞれ起動後にSIPサーバ2に対してREGISTERメッセージを適宜送信し、SIPサーバ2から200 OKメッセージを受信することで位置情報等の登録処理を行う(1001)。この登録処理において、SIPサーバ2は、各REGISTERメッセージのヘッダ情報から、IP電話端末AのIPアドレスIP−A及びポート番号P−A、IP電話端末BのIPアドレスIP−B及びポート番号P−B、中継端末CのIPアドレスIP−C及びポート番号P−Cをそれぞれ取得する。   As shown in FIG. 4, the IP telephone terminals A and B and the relay terminal C each appropriately transmit a REGISTER message to the SIP server 2 after activation and receive a 200 OK message from the SIP server 2 to receive location information and the like. Registration processing is performed (1001). In this registration process, the SIP server 2 determines the IP address IP-A and the port number PA of the IP telephone terminal A, the IP address IP-B and the port number P- of the IP telephone terminal B from the header information of each REGISTER message. B, IP address IP-C and port number PC of relay terminal C are acquired.

中継端末Cは、自ら音声通信を行わないと判断して中継モードに移行すると、SIPサーバ2に対して中継端末登録のリクエストを含むパケットの送信を開始する(1002)。このパケットの送信は、後の音声通信を中継する際に使用する音声中継ポートS3から送出され、音声通信が終了するまで継続的に繰り返し実行される。   When the relay terminal C determines that it does not perform voice communication by itself and shifts to the relay mode, the relay terminal C starts transmission of a packet including a relay terminal registration request to the SIP server 2 (1002). This packet transmission is transmitted from the voice relay port S3 used when relaying the subsequent voice communication, and is continuously repeated until the voice communication is completed.

次に、IP電話端末Aは、ユーザによるダイヤル操作を受けて(1003)、SIPサーバ2に対してIP電話端末B宛のINVITEメッセージを送信する(1004)。ここで、1004のINVITE(SDP:IP−A,S1)における「SDP:IP−A,S1」の表記は、INVITEメッセージ上のSDPに後の音声通信の通信先となるIPアドレスIP−A及びポート番号S1が含まれていることを示す(以下、200 OKメッセージの場合を含め同様)。   Next, upon receiving a dial operation by the user (1003), IP telephone terminal A transmits an INVITE message addressed to IP telephone terminal B to SIP server 2 (1004). Here, the notation of “SDP: IP-A, S1” in the INVITE 1004 (SDP: IP-A, S1) is the IP address IP-A that is the communication destination of the subsequent voice communication in the SDP on the INVITE message. It indicates that the port number S1 is included (hereinafter, including the case of the 200 OK message).

SIPサーバ2は、そのINVITEメッセージを受信すると、そのメッセージを中継端末Cに対して転送する(1005)。中継端末Cは、転送されたINVITEメッセージを受信すると、そのINVITEメッセージ上のSDPに含まれる音声通信の通信先のIPアドレスIP−A及びポート番号S1を自装置のIPアドレスIP−C及びポート番号S3にそれぞれ書き換え、その書き換え後のINVITEメッセージをSIPサーバ2に返送する(1006)。SIPサーバ2は、そのINVITEメッセージをそのままIP電話端末Bに対して転送する(1007)。   When receiving the INVITE message, the SIP server 2 transfers the message to the relay terminal C (1005). When the relay terminal C receives the transferred INVITE message, the IP address IP-A and the port number S1 of the voice communication destination included in the SDP on the INVITE message are changed to the IP address IP-C and the port number of the own device. Each is rewritten to S3, and the rewritten INVITE message is returned to the SIP server 2 (1006). The SIP server 2 transfers the INVITE message as it is to the IP telephone terminal B (1007).

そのINVITEメッセージを受信したIP電話端末Bは、呼び出し中を通知するIP電話端末A宛の180 RingingメッセージをSIPサーバ2に対して送信し、その180 Ringingメッセージは、先のINVITEメッセージと同様に、中継端末C経由でIP電話端末Aに送られる(1008)。続いて、IP電話端末Bでオフフックが実行されると(1009)、IP電話端末Bは、SIPサーバ2に対してIP電話端末A宛の200 OKメッセージを送信する。この200 OKメッセージ上のSDPには、後の音声通信の通信先となるIPアドレスIP−B及びポート番号S2が含まれる(1010)。SIPサーバ2は、その200 OKメッセージを受信すると、中継端末Cに対して転送する(1011)。中継端末Cは、転送された200 OKメッセージを受信すると、その200 OKメッセージ上のSDPに含まれるIPアドレスIP−B及びポート番号S2を自装置のIPアドレスIP−C及びポート番号S3にそれぞれ書き換え、その書き換え後の200 OKメッセージをSIPサーバ2に返送する(1012)。SIPサーバ2は、その200 OKメッセージをそのままIP電話端末Aに対して転送する(1013)。   The IP telephone terminal B that has received the INVITE message transmits a 180 Ringing message addressed to the IP telephone terminal A that notifies the calling state to the SIP server 2, and the 180 Ringing message is similar to the previous INVITE message. It is sent to IP telephone terminal A via relay terminal C (1008). Subsequently, when the off-hook is executed in the IP telephone terminal B (1009), the IP telephone terminal B transmits a 200 OK message addressed to the IP telephone terminal A to the SIP server 2. The SDP on the 200 OK message includes an IP address IP-B and a port number S2, which are communication destinations for later voice communication (1010). When the SIP server 2 receives the 200 OK message, it forwards it to the relay terminal C (1011). When the relay terminal C receives the forwarded 200 OK message, it rewrites the IP address IP-B and port number S2 included in the SDP on the 200 OK message with its own IP address IP-C and port number S3, respectively. The rewritten 200 OK message is returned to the SIP server 2 (1012). The SIP server 2 transfers the 200 OK message as it is to the IP telephone terminal A (1013).

その200 OKメッセージを受信したIP電話端末Aは、その受信を通知するために、IP電話端末B宛のACK メッセージをSIPサーバ2に対して送信し、そのACKメッセージは、先の180 Ringingメッセージと同様に、中継端末C経由でIP電話端末Bに送られる(1014)。   The IP telephone terminal A that has received the 200 OK message transmits an ACK message addressed to the IP telephone terminal B to the SIP server 2 in order to notify the reception, and the ACK message includes the previous 180 Ringing message and Similarly, it is sent to the IP telephone terminal B via the relay terminal C (1014).

このような一連のSIPメッセージの交換により(1015)、IP電話端末A,B間の呼接続が確立される。また、IP電話端末A、Bは、その後のメディアセッションで実行する音声パケットの送信先が中継端末CのIPアドレスIP−C及びポート番号S3であることを認識する。   By exchanging a series of such SIP messages (1015), a call connection between the IP telephone terminals A and B is established. The IP telephone terminals A and B recognize that the destination of the voice packet to be executed in the subsequent media session is the IP address IP-C and the port number S3 of the relay terminal C.

音声通信が開始されると、IP電話端末Bは、自装置のポートS2から中継端末CのポートS3宛に音声パケットの送信を開始する(1016)。同様に、IP電話端末Aは、自装置のポートS1から中継端末CのポートS3宛に音声パケットの送信を開始する(1017)。ここで、図4における各メッセージ等の送信を示す矢印上に付された記号●及びそれと破線の矢印で結ばれた記号○は、記号●が付されたアウトバウンド通信によって記号○が付されたインバウンド通信が可能となることを示している(図9の場合も同様)。即ち、1016のIP電話端末Bからの音声パケットは、1002のパケット送信が継続的に実行されることにより中継端末CのポートS3に到達可能となる。同様に、1017のIP電話端末Aからの音声パケットは、1002のパケット送信が継続的に実行されることにより中継端末CのポートS3に到達可能となる。このような構成により、外部から自装置の音声中継ポートS3にアクセス可能な時間を必要最小限としてセキュリティを高めることができる。   When voice communication is started, IP telephone terminal B starts transmission of a voice packet from port S2 of its own device to port S3 of relay terminal C (1016). Similarly, IP telephone terminal A starts transmitting a voice packet from port S1 of its own device to port S3 of relay terminal C (1017). Here, the symbol ● attached on the arrow indicating the transmission of each message and the like in FIG. 4 and the symbol ○ connected with the dashed arrow are the inbounds indicated by the symbol ○ by outbound communication marked with the symbol ●. It shows that communication is possible (the same applies to FIG. 9). That is, a voice packet from 1016 IP telephone terminal B can reach port S3 of relay terminal C by continuously executing 1002 packet transmission. Similarly, a voice packet from 1017 IP telephone terminal A can reach port S3 of relay terminal C by continuously executing 1002 packet transmission. With such a configuration, it is possible to increase the security by minimizing the time required to access the voice relay port S3 of the own apparatus from the outside.

1016のIP電話端末Bからの音声パケットを受信した中継端末Cは、音声パケットの転送先の情報としてIP電話端末Bのポート番号S2を取得する。同様に、1017のIP電話端末Aからの音声パケットを受信した中継端末Cは、音声パケットの転送先の情報としてIP電話端末Aのポート番号S1を取得する。これにより、中継端末Cは、1016のIP電話端末Bからの音声パケットをIP電話端末AのポートS1宛に転送し(1018)、また、1017のIP電話端末Bからの音声パケットをIP電話端末AのポートS1宛に転送することが可能となる(1019)。このとき、1018の音声パケットは、1017の音声パケットの送信によりIP電話端末AのポートS1に到達可能となり、また、1019の音声パケットは、1016の音声パケットの送信によりIP電話端末BのポートS2に到達可能となる。その後は、同様の音声パケットの送受信が、メディアセッションにおける音声通信の終了まで繰り返し実行される(1020)。   The relay terminal C that has received the voice packet from the IP telephone terminal B 1016 acquires the port number S2 of the IP telephone terminal B as the information on the voice packet transfer destination. Similarly, the relay terminal C that has received the voice packet from the IP telephone terminal A 1017 acquires the port number S1 of the IP telephone terminal A as the information on the transfer destination of the voice packet. As a result, the relay terminal C transfers the voice packet from the IP telephone terminal B 1016 to the port S1 of the IP telephone terminal A (1018), and the voice packet from the IP telephone terminal B 1017 is transferred to the IP telephone terminal. It is possible to transfer to A port S1 (1019). At this time, 1018 voice packets can reach port S1 of IP telephone terminal A by transmission of 1017 voice packets, and 1019 voice packets can be transmitted to port S2 of IP telephone terminal B by transmission of 1016 voice packets. Can be reached. Thereafter, the same voice packet transmission / reception is repeatedly executed until the voice communication in the media session ends (1020).

音声通信が終了すると、IP電話端末Aは、セッションの切断を通知するために、IP電話端末B宛のBYEメッセージをSIPサーバ2に対して送信し、そのBYEメッセージは、先の180 Ringingメッセージ等と同様に、中継端末C経由でIP電話端末Bに送られる(1021)。このBYEメッセージを受信したIP電話端末Bは、その受信を通知するために、IP電話端末A宛の200 OKメッセージをSIPサーバ2に対して送信し、その200 OKメッセージは、先の180 Ringingメッセージ等と同様に、中継端末C経由でIP電話端末Aに送られる(1022)。   When the voice communication is completed, the IP telephone terminal A transmits a BYE message addressed to the IP telephone terminal B to the SIP server 2 in order to notify the disconnection of the session. The BYE message is the previous 180 Ringing message or the like. In the same manner as described above, it is sent to the IP telephone terminal B via the relay terminal C (1021). Upon receiving this BYE message, IP telephone terminal B transmits a 200 OK message addressed to IP telephone terminal A to SIP server 2 in order to notify the reception, and the 200 OK message is the previous 180 Ringing message. In the same manner as in the above, it is sent to the IP telephone terminal A via the relay terminal C (1022).

このように、中継端末Cが、自らが音声通信を行わない場合にIP電話端末A,B間の音声通信を中継することで、IP電話端末A,Bが接続されるNATルータA,BのNATの種別によらず、しかもSBC(Session Border Controller)等の中継サーバを必要とせずに簡易かつ安価な構成により音声通信を実現することが可能となる。また、音声通信を行うIP電話端末A,Bは、特別な機能を必要とすることなく、従来と同様の手順で音声通信を実行できる。   In this way, when the relay terminal C does not perform voice communication by itself, the relay terminal C relays voice communication between the IP telephone terminals A and B, so that the NAT routers A and B to which the IP telephone terminals A and B are connected are relayed. Voice communication can be realized with a simple and inexpensive configuration regardless of the type of NAT and without requiring a relay server such as SBC (Session Border Controller). Further, IP telephone terminals A and B that perform voice communication can perform voice communication in the same procedure as before without requiring a special function.

次に、図5〜図8を参照して、上記IP電話システムの基本動作におけるIP電話端末A,B、中継端末C、及びSIPサーバの処理の詳細について示す。ここでは、説明の便宜上、図4に示したIP電話システムにおける動作に準じて処理を説明する。   Next, with reference to FIG. 5 to FIG. 8, details of processing of the IP telephone terminals A and B, the relay terminal C, and the SIP server in the basic operation of the IP telephone system will be described. Here, for convenience of explanation, processing will be described in accordance with the operation in the IP telephone system shown in FIG.

図5は発信側であるIP電話端末Aの処理手順を示すフロー図である。まず、IP電話端末Aが起動すると、呼制御部11はSIPサーバ2に対してREGISTERメッセージを送信し(ST101)、SIPサーバ2から200 OKメッセージを受信することで位置情報等の登録処理を行う(ST102)。その後、ダイヤル操作部12がユーザのダイヤル操作を検出すると(ST103:YES)、呼制御部11は発信先のIP電話端末B宛のINVITEメッセージを生成し、SIPサーバ2に対して送信する(ST104)。このとき、INVITEメッセージ上のSDPには、後の音声通信の通信先となるIP電話端末AのIPアドレスIP−A及びポート番号S1が設定される。   FIG. 5 is a flowchart showing the processing procedure of the IP telephone terminal A on the calling side. First, when the IP telephone terminal A is activated, the call control unit 11 transmits a REGISTER message to the SIP server 2 (ST101), and receives a 200 OK message from the SIP server 2 to perform registration processing of location information and the like. (ST102). After that, when the dial operation unit 12 detects the user's dial operation (ST103: YES), the call control unit 11 generates an INVITE message addressed to the destination IP telephone terminal B and transmits it to the SIP server 2 (ST104). ). At this time, the IP address IP-A and the port number S1 of the IP telephone terminal A that is the communication destination of the subsequent voice communication are set in the SDP on the INVITE message.

次に、呼制御部11は、中継端末C経由でIP電話端末Bからの180 Ringingメッセージ及び200 OKメッセージを順次受信する(ST105,ST106)。このとき、200 OKメッセージ上のSDPには、後の音声通信の通信先となる中継端末CのIPアドレスIP−C及びポート番号S3が設定されている。200 OKメッセージを受信した呼制御部11は、SIPサーバ2に対してIP電話端末B宛のACK メッセージを送信する(ST107)。   Next, the call control unit 11 sequentially receives the 180 Ringing message and the 200 OK message from the IP telephone terminal B via the relay terminal C (ST105, ST106). At this time, in the SDP on the 200 OK message, the IP address IP-C and the port number S3 of the relay terminal C that is the communication destination of the subsequent voice communication are set. Receiving the 200 OK message, call control unit 11 transmits an ACK message addressed to IP telephone terminal B to SIP server 2 (ST107).

その後、音声パケット送受信部13は、IP電話端末B宛の音声パケットの送信を開始する(ST108)。この音声パケットは、IP電話端末AのポートS1から中継端末CのポートS3宛に送出される。続いて、音声パケット送受信部13は、IP電話端末Bからの音声パケットを受信する(ST109)。この受信した音声パケットは、中継端末CのポートS3からIP電話端末AのポートS1宛に送出されたものである。   Thereafter, voice packet transmitting / receiving section 13 starts transmitting voice packets addressed to IP telephone terminal B (ST108). This voice packet is sent from port S1 of IP telephone terminal A to port S3 of relay terminal C. Subsequently, voice packet transmitting / receiving section 13 receives a voice packet from IP telephone terminal B (ST109). The received voice packet is transmitted from the port S3 of the relay terminal C to the port S1 of the IP telephone terminal A.

上記のようなIP電話端末Bとの音声パケットの送受信が繰り返し実行され、最終的に終話となると(ST110:YES)、呼制御部11は、SIPサーバ2に対してIP電話端末B宛のBYEメッセージを送信し(ST111)、中継端末C経由でIP電話端末Bからの200 OKメッセージを受信する(ST112)。その後は、ST103に戻り、IP電話端末Aは上述と同様の処理を繰り返し実行する。   When the transmission / reception of the voice packet with the IP telephone terminal B as described above is repeatedly executed and finally the call ends (ST110: YES), the call control unit 11 sends the address to the IP telephone terminal B to the SIP server 2. A BYE message is transmitted (ST111), and a 200 OK message from IP telephone terminal B is received via relay terminal C (ST112). After that, returning to ST103, IP telephone terminal A repeatedly executes the same processing as described above.

図6は着信側であるIP電話端末Bの処理手順を示すフロー図である。まず、IP電話端末Bが起動すると、呼制御部11は図5のST101及びST102と同様の登録処理を実行する(ST201,ST202)。その後、呼制御部11は、着信を検出(IP電話端末AからのINVITEメッセージを受信)すると(ST203:YES)、SIPサーバ2に対してIP電話端末A宛の180 Ringingメッセージを送信する(ST204)。   FIG. 6 is a flowchart showing the processing procedure of the IP telephone terminal B on the receiving side. First, when IP telephone terminal B is activated, call control unit 11 executes registration processing similar to ST101 and ST102 of FIG. 5 (ST201, ST202). Thereafter, when call reception unit 11 detects an incoming call (receives an INVITE message from IP telephone terminal A) (ST203: YES), it transmits a 180 Ringing message addressed to IP telephone terminal A to SIP server 2 (ST204). ).

次に、ダイヤル操作部12がオフフックを検出すると、呼制御部11はSIPサーバ2に対してIP電話端末A宛の200 OKメッセージを送信する(ST205)。このとき、200 OKメッセージ上のSDPには、後の音声通信の通信先となる中継端末CのIPアドレスIP−C及びポート番号S3が設定される。続いて、呼制御部11は、中継端末C経由でIP電話端末AからのACK メッセージを受信する(ST206)。   Next, when dial operation unit 12 detects off-hook, call control unit 11 transmits a 200 OK message addressed to IP telephone terminal A to SIP server 2 (ST205). At this time, in the SDP on the 200 OK message, the IP address IP-C and the port number S3 of the relay terminal C that is the communication destination of the subsequent voice communication are set. Subsequently, call control unit 11 receives an ACK message from IP telephone terminal A via relay terminal C (ST206).

その後、図5のST108,ST109と同様に、音声パケット送受信部13による音声パケットの送受信が実行される(ST207,ST208)。そして、最終的に終話となると(ST209:YES)、呼制御部11は、中継端末C経由でIP電話端末AからのBYEメッセージを受信し(ST210)、SIPサーバ2に対してIP電話端末A宛の200 OKメッセージを送信する(ST211)。その後は、ST203に戻り、IP電話端末Bは、上述と同様の処理を繰り返し実行する。   Thereafter, similar to ST108 and ST109 in FIG. 5, voice packet transmission / reception is performed by the voice packet transmission / reception unit 13 (ST207, ST208). When the call is finally finished (ST209: YES), the call control unit 11 receives the BYE message from the IP telephone terminal A via the relay terminal C (ST210), and the IP telephone terminal is connected to the SIP server 2. A 200 OK message addressed to A is transmitted (ST211). After that, returning to ST203, IP telephone terminal B repeatedly executes the same processing as described above.

図7は中継端末Cの処理手順を示すフロー図である。まず、中継端末Cが起動すると、呼制御部11は図5のST101,ST102と同様の登録処理を実行する(ST301,ST302)。その後、中継端末登録部15は、自装置が通話状態にないことを確認すると中継モードへ移行するために、音声中継ポートS3からSIPサーバ2に対して中継端末登録のリクエストを含むパケットの送信を開始する(ST303)。   FIG. 7 is a flowchart showing the processing procedure of the relay terminal C. First, when the relay terminal C is activated, the call control unit 11 executes registration processing similar to ST101 and ST102 in FIG. 5 (ST301 and ST302). After that, the relay terminal registration unit 15 transmits a packet including a relay terminal registration request from the voice relay port S3 to the SIP server 2 in order to shift to the relay mode when confirming that the own device is not in a call state. Start (ST303).

続いて、SIPメッセージ中継部17は、SIPサーバ2から転送されたIP電話端末B宛のINVITEメッセージを受信すると(ST304)、そのINVITEメッセージ上のSDPに含まれる音声通信の通信先を示すIPアドレスIP−A及びポート番号S1を自装置のIPアドレスIP−C及びポート番号S3にそれぞれ書き換え、その書き換え後のINVITEメッセージをSIPサーバ2に返送する(ST305)。   Subsequently, when the SIP message relay unit 17 receives the INVITE message addressed to the IP telephone terminal B transferred from the SIP server 2 (ST304), the IP address indicating the communication destination of the voice communication included in the SDP on the INVITE message IP-A and port number S1 are rewritten to IP address IP-C and port number S3 of the own device, respectively, and the rewritten INVITE message is returned to SIP server 2 (ST305).

次に、SIPメッセージ中継部17は、SIPサーバ2から転送されたIP電話端末A宛の180 Ringingメッセージを受信し、その180 RingingメッセージをSIPサーバ2に返送する(ST306)。続いて、SIPメッセージ中継部17は、SIPサーバ2から転送されたIP電話端末A宛の200 OKメッセージを受信すると、その200 OKメッセージ上のSDPに含まれる音声通信の通信先のIPアドレスIP−B及びポート番号S2を自装置のIPアドレスIP−C及びポート番号S3にそれぞれ書き換え、その書き換え後の200 OKメッセージをSIPサーバ2に返送する(ST307)。さらに、SIPメッセージ中継部17は、SIPサーバ2から転送されたIP電話端末B宛のACKメッセージを受信し、そのACKメッセージをSIPサーバ2に返送する(ST308)。   Next, SIP message relay unit 17 receives the 180 Ringing message addressed to IP telephone terminal A transferred from SIP server 2, and returns the 180 Ringing message to SIP server 2 (ST306). Subsequently, when the SIP message relay unit 17 receives the 200 OK message addressed to the IP telephone terminal A transferred from the SIP server 2, the IP address IP− of the communication destination of the voice communication included in the SDP on the 200 OK message. B and port number S2 are rewritten to the IP address IP-C and port number S3 of the own device, respectively, and the 200 OK message after the rewriting is returned to SIP server 2 (ST307). Furthermore, SIP message relay unit 17 receives the ACK message addressed to IP telephone terminal B transferred from SIP server 2, and returns the ACK message to SIP server 2 (ST308).

次に、音声パケット中継部19は、IP電話端末BからIP電話端末A宛の音声パケットを受信し、その発信元IPアドレスIP−B及びポート番号S2を取得する(ST309)。続いて、音声パケット中継部19は、IP電話端末AからIP電話端末B宛の音声パケットを受信し、その発信元IPアドレスIP−A及びポート番号S1を取得する(ST310)。さらに、音声パケット中継部19は、ST310においてIP電話端末Aから受信した音声パケットを、ST309で取得したIP電話端末BのIPアドレスIP−B及びポート番号S2に対して転送する(ST311)。また、音声パケット中継部19は、ST309においてIP電話端末Bから受信した音声パケットを、ST310で取得したIP電話端末AのIPアドレスIP−A及びポート番号S1に対して転送する(ST312)。音声パケット中継部19は、このような音声パケットの転送処理を終話まで繰り返し実行する。   Next, voice packet relay unit 19 receives a voice packet addressed to IP telephone terminal A from IP telephone terminal B, and obtains its source IP address IP-B and port number S2 (ST309). Subsequently, the voice packet relay unit 19 receives the voice packet addressed to the IP telephone terminal B from the IP telephone terminal A, and acquires the source IP address IP-A and the port number S1 (ST310). Further, voice packet relay section 19 transfers the voice packet received from IP telephone terminal A in ST310 to IP address IP-B and port number S2 of IP telephone terminal B acquired in ST309 (ST311). Voice packet relay section 19 forwards the voice packet received from IP telephone terminal B in ST309 to IP address IP-A and port number S1 of IP telephone terminal A acquired in ST310 (ST312). The voice packet relay unit 19 repeatedly executes such voice packet transfer processing until the end of the call.

最終的に終話になると(ST313:YES)、音声パケット中継部19は、IP電話端末AからのIP電話端末B宛のBYEメッセージを受信し(ST314)、そのBYEメッセージをSIPサーバ2に返送する(ST315)。続いて、音声パケット中継部19は、IP電話端末BからのIP電話端末A宛の200 OKメッセージを受信し(ST315)、その200 OKメッセージをSIPサーバ2に返送する(ST316)。その後は、ST304に戻り、中継端末Cは上述と同様の処理を繰り返し実行する。   When the talk is finally over (ST313: YES), the voice packet relay unit 19 receives the BYE message addressed to the IP telephone terminal B from the IP telephone terminal A (ST314), and returns the BYE message to the SIP server 2. (ST315). Subsequently, voice packet relay unit 19 receives a 200 OK message addressed to IP phone terminal A from IP phone terminal B (ST315), and returns the 200 OK message to SIP server 2 (ST316). After that, returning to ST304, relay terminal C repeatedly executes the same processing as described above.

図8はSIPサーバの処理手順を示すフロー図である。SIPサーバ2の端末登録部31は、IP電話端末A,B及び中継端末CからREGISTERメッセージを適宜受信し、それらの位置情報を取得して登録処理を行う(ST401)。登録が成功すると、端末登録部31はIP電話端末A,B及び中継端末Cに対して200 OKメッセージを適宜送信する(ST402)。   FIG. 8 is a flowchart showing the processing procedure of the SIP server. The terminal registration unit 31 of the SIP server 2 appropriately receives REGISTER messages from the IP telephone terminals A and B and the relay terminal C, acquires their position information, and performs registration processing (ST401). If the registration is successful, terminal registration unit 31 appropriately transmits a 200 OK message to IP telephone terminals A and B and relay terminal C (ST402).

次に、中継端末登録部34は、中継端末Cから中継端末登録のリクエストを含むパケットを受信する(ST403)。これにより、中継端末登録部34は、中継端末Cを中継端末登録すべく中継端末テーブル35に中継端末Cの位置情報等を記録する。なお、中継端末登録部34は、同様のパケット受信により中継端末C以外の登録を適宜受け付けることができる。   Next, relay terminal registration unit 34 receives a packet including a relay terminal registration request from relay terminal C (ST403). Accordingly, the relay terminal registration unit 34 records the position information of the relay terminal C and the like in the relay terminal table 35 so as to register the relay terminal C as a relay terminal. The relay terminal registration unit 34 can appropriately accept registrations other than the relay terminal C by receiving similar packets.

次に、SIPメッセージ中継部33は、IP電話端末AからのIP電話端末B宛のINVITEメッセージを受信すると(ST404:YES)、中継端末テーブル35を参照して中継端末CのIPアドレス及びポート番号を取得し、中継端末Cに対してそのINVITEメッセージを転送する(ST405)。続いて、SIPメッセージ中継部33は、中継端末Cから返送されたINVITEメッセージを受信し、IP電話端末Bに対してそのまま転送する(ST406)。   Next, when receiving an INVITE message addressed to IP telephone terminal B from IP telephone terminal A (ST404: YES), SIP message relay section 33 refers to relay terminal table 35 to refer to IP address and port number of relay terminal C. And the INVITE message is transferred to relay terminal C (ST405). Subsequently, the SIP message relay unit 33 receives the INVITE message returned from the relay terminal C and transfers it directly to the IP telephone terminal B (ST406).

その後、SIPメッセージ中継部33は、IP電話端末BからのIP電話端末A宛の180 Ringingメッセージを中継端末Cに転送し、中継端末Cから返送された180 RingingメッセージをIP電話端末Aに転送する(ST407,ST408)。同様に、SIPメッセージ中継部33は、IP電話端末Bからの200 OKメッセージを中継端末Cに転送し、中継端末Cから返送された200 OKメッセージをIP電話端末Aに転送する(ST409,ST410)。さらに、SIPメッセージ中継部33は、IP電話端末AからのACKメッセージを中継端末Cに転送し、中継端末Cから返送されたACKメッセージをIP電話端末Bに転送する(ST411,ST412)。   Thereafter, the SIP message relay unit 33 transfers the 180 Ringing message addressed to the IP telephone terminal A from the IP telephone terminal B to the relay terminal C, and transfers the 180 Ringing message returned from the relay terminal C to the IP telephone terminal A. (ST407, ST408). Similarly, SIP message relay section 33 transfers the 200 OK message from IP telephone terminal B to relay terminal C, and forwards the 200 OK message returned from relay terminal C to IP telephone terminal A (ST409, ST410). . Further, SIP message relay unit 33 transfers the ACK message from IP telephone terminal A to relay terminal C, and transfers the ACK message returned from relay terminal C to IP telephone terminal B (ST411, ST412).

この後、IP電話端末AとIP電話端末Bは、中継端末Cの中継により音声通信を行うが、この間、SIPサーバ2は介在しない。   Thereafter, IP telephone terminal A and IP telephone terminal B perform voice communication by relay of relay terminal C, but SIP server 2 does not intervene during this time.

オンフック等により終話となった場合、SIPメッセージ中継部33は、IP電話端末AからのBYEメッセージを受信して中継端末Cに転送し、中継端末Cから返送されたBYEメッセージを受信してIP電話端末Bに転送する(ST413,ST414)。同様に、SIPメッセージ中継部33は、IP電話端末Bからの200 OKメッセージを中継端末Cに転送し(ST415)、中継端末Cから返送された200 OKメッセージをIP電話端末Aに転送する(ST416)。その後は、ST404に戻り、SIPサーバ2は上述と同様の処理を繰り返し実行する。   When the call ends due to on-hook or the like, the SIP message relay unit 33 receives the BYE message from the IP telephone terminal A, transfers it to the relay terminal C, receives the BYE message returned from the relay terminal C, and receives the IP message. Transfer to telephone terminal B (ST413, ST414). Similarly, SIP message relay unit 33 transfers the 200 OK message from IP telephone terminal B to relay terminal C (ST415), and transfers the 200 OK message returned from relay terminal C to IP telephone terminal A (ST416). ). After that, returning to ST404, the SIP server 2 repeatedly executes the same processing as described above.

次に、図4に示したIP電話システムの動作において、中継端末Cが中継モードを実行中に通常モードへの移行が必要となった場合の中継変更動作について示す。   Next, in the operation of the IP telephone system shown in FIG. 4, the relay change operation when the transition to the normal mode becomes necessary while the relay terminal C is executing the relay mode will be described.

図9は本願発明に係るIP電話システムの中継変更動作を示すシーケンス図である。ここでは、図4に示した動作においてIP電話端末Eから中継端末Cへの着信があり、中継端末Cが実行中の中継処理を中継端末Dに引き継ぐ場合を示している。また、図9に示すIP電話システムの動作は、図4の1020の音声通信の処理中に開始されるものとする。   FIG. 9 is a sequence diagram showing the relay change operation of the IP telephone system according to the present invention. 4 shows a case where there is an incoming call from the IP telephone terminal E to the relay terminal C in the operation shown in FIG. 4 and the relay processing being executed by the relay terminal C is taken over by the relay terminal D. The operation of the IP telephone system shown in FIG. 9 is started during the voice communication process 1020 in FIG.

中継端末Dは、図4の1001と同様の登録処理を実行後、中継モードに移行すると、SIPサーバ2に対して中継端末登録のリクエストを含むパケットの送信を開始する(2001)。このパケットの送信は、後の音声通信を中継する際に使用する音声中継ポートS4から送出され、音声通信が終了するまで継続的に繰り返し実行される。   When the relay terminal D shifts to the relay mode after executing the registration process similar to 1001 in FIG. 4, the relay terminal D starts transmission of a packet including a relay terminal registration request to the SIP server 2 (2001). This packet transmission is transmitted from the voice relay port S4 used when relaying the subsequent voice communication, and is continuously repeated until the voice communication ends.

SIPサーバ2は、中継端末Dからの中継端末登録のリクエストを含むパケットを受信すると、中継端末Dの位置情報(IPアドレス、ポート番号等)を中継端末Cの位置情報に加えて中継端末テーブルに記憶する。   When the SIP server 2 receives a packet including a relay terminal registration request from the relay terminal D, the SIP server 2 adds the position information (IP address, port number, etc.) of the relay terminal D to the relay terminal C in the relay terminal table. Remember.

中継端末Cが中継を行っている状態でIP電話端末Eが中継端末Cに発信を行った場合について以下説明する。IP電話端末Eは、ユーザによるダイヤル操作を受けて(2002)、SIPサーバ2に対して中継端末C宛のINVITEメッセージを送信する(2003)。このとき、INVITEメッセージ上のSDPには、後の音声通信の通信先となるIP電話端末EのIPアドレスIP−E及びポート番号S5が設定される。   A case where the IP telephone terminal E makes a call to the relay terminal C while the relay terminal C is relaying will be described below. Upon receiving a dial operation by the user (2002), the IP telephone terminal E transmits an INVITE message addressed to the relay terminal C to the SIP server 2 (2003). At this time, the IP address IP-E and the port number S5 of the IP telephone terminal E that is the communication destination of the subsequent voice communication are set in the SDP on the INVITE message.

SIPサーバ2は、そのINVITEメッセージを受信すると、中継端末Cに対して転送する(2004)。これにより、IP電話端末Eからの着信を確認した中継端末Cは、SIPサーバ2を介してIP電話端末Aに対してREFERメッセージを送信する(2005)。中継端末CがREFERメッセージを送信するのは、IP電話装置間で送受信されるSIPメッセージを他の中継端末へ転送することをSIPサーバ2に指示するためである。また、このREFERメッセージには、IP電話端末Aに対するRE-INVITEメッセージ(IP電話装置A,B間の接続を再度確立するための呼制御メッセージ)の送出命令が含まれる。   When receiving the INVITE message, the SIP server 2 transfers the message to the relay terminal C (2004). As a result, the relay terminal C confirming the incoming call from the IP telephone terminal E transmits a REFER message to the IP telephone terminal A via the SIP server 2 (2005). The reason why the relay terminal C transmits the REFER message is to instruct the SIP server 2 to transfer the SIP message transmitted / received between the IP telephone apparatuses to another relay terminal. The REFER message includes a command for sending a RE-INVITE message (call control message for reestablishing a connection between the IP telephone apparatuses A and B) to the IP telephone terminal A.

IP電話端末Aは、そのREFERメッセージを受信すると、SIPサーバ2に対してIP電話端末B宛のRE-INVITEメッセージを送信する(2006)。SIPサーバ2は、そのRE-INVITEメッセージを受信すると、そのメッセージを中継端末Dに対して転送する(2007)。中継端末Dは、転送されたINVITEメッセージのSDPに含まれる音声通信の通信先を示すIPアドレスIP−A及びポート番号S1を自装置のIPアドレスIP−D及びポート番号S4にそれぞれ書き換え、その書き換え後のINVITEメッセージをSIPサーバ2に返送する(2008)。SIPサーバ2は、そのINVITEメッセージをそのままIP電話端末Bに対して転送する(2009)。   When receiving the REFER message, IP telephone terminal A transmits a RE-INVITE message addressed to IP telephone terminal B to SIP server 2 (2006). When the SIP server 2 receives the RE-INVITE message, the SIP server 2 transfers the message to the relay terminal D (2007). The relay terminal D rewrites the IP address IP-A and the port number S1 indicating the communication destination of the voice communication included in the SDP of the transferred INVITE message with the IP address IP-D and the port number S4 of the own device, respectively. The subsequent INVITE message is returned to the SIP server 2 (2008). The SIP server 2 transfers the INVITE message as it is to the IP telephone terminal B (2009).

次に、IP電話端末Bは、SIPサーバ2に対してIP電話端末A宛の200 OKメッセージを送信する(2010)。SIPサーバ2は、その200 OKメッセージを中継端末Dに対して転送する(2011)。中継端末Dは、転送された200 OKメッセージを上のSDPに含まれるIPアドレスIP−B及びポート番号S2を自装置のIPアドレスIP−D及びポート番号S4にそれぞれ書き換え、その書き換え後の200 OKメッセージをSIPサーバ2に返送する(2012)。SIPサーバ2は、その200 OKメッセージをそのままIP電話端末Aに対して転送する(2013)。   Next, the IP telephone terminal B transmits a 200 OK message addressed to the IP telephone terminal A to the SIP server 2 (2010). The SIP server 2 transfers the 200 OK message to the relay terminal D (2011). The relay terminal D rewrites the forwarded 200 OK message with the IP address IP-B and the port number S2 included in the above SDP to the IP address IP-D and port number S4 of its own device, and the rewritten 200 OK message. The message is returned to the SIP server 2 (2012). The SIP server 2 transfers the 200 OK message as it is to the IP telephone terminal A (2013).

その200 OKメッセージを受信したIP電話端末Aは、SIPサーバ2に対してIP電話端末B宛のACK メッセージを送信し、そのACKメッセージは中継端末Dを介してIP電話端末Bに送られる(2014)。続いて、IP電話端末Aは、先の2013で、SDPが中継端末DのIPアドレス及びポート番号に書き換えられた200OKメッセージをIP電話端末Bから受信したことを契機として、SIPサーバ2を介して中継端末Cに対してNOTIFYメッセージを送信する(2015)。このNOTIFYメッセージには、中継端末Cに対する中継終了許可(即ち、先のREFERメッセージによるRE-INVITEメッセージの送出命令を受け付けた旨)の情報が含まれる。このNOTIFYメッセージを受信した中継端末Cは、他の中継端末への中継処理の引き継ぎが成功したと判断してIP電話端末Eとの接続を開始し(2016)、SIPサーバ2を介してIP電話端末Aに対して200 OKメッセージを送信する(2017)。SIPサーバ2は、2015でNOTIFYメッセージを中継した際に、中継端末テーブルから中継端末Cを削除する。   The IP telephone terminal A that has received the 200 OK message transmits an ACK message addressed to the IP telephone terminal B to the SIP server 2, and the ACK message is sent to the IP telephone terminal B via the relay terminal D (2014). ). Subsequently, the IP telephone terminal A receives the 200 OK message from the IP telephone terminal B through the SIP server 2 after receiving the 200 OK message in which the SDP is rewritten with the IP address and port number of the relay terminal D in 2013. A NOTIFY message is transmitted to the relay terminal C (2015). This NOTIFY message includes information on permission of relay termination to the relay terminal C (that is, the fact that a RE-INVITE message sending command by the previous REFER message has been accepted). The relay terminal C that has received this NOTIFY message determines that the relay process has succeeded in the other relay terminal, starts connection with the IP telephone terminal E (2016), and receives the IP telephone via the SIP server 2. A 200 OK message is transmitted to terminal A (2017). When the SIP server 2 relays the NOTIFY message in 2015, it deletes the relay terminal C from the relay terminal table.

上記RE-INVITEメッセージ及び200 OKメッセージの交換を実行することにより、IP電話端末A,B間の呼接続が再度確立される。また、IP電話端末A、Bは、その後のメディアセッションで実行する音声パケットの送信先が中継端末DのIPアドレスIP−D及びポート番号S4であることを認識する。   By exchanging the RE-INVITE message and the 200 OK message, the call connection between the IP telephone terminals A and B is established again. The IP telephone terminals A and B recognize that the destination of the voice packet to be executed in the subsequent media session is the IP address IP-D and the port number S4 of the relay terminal D.

音声通信開始後の2018〜2021処理は、中継端末Cの代わりに中継端末Dが音声パケットの中継を行うことを除いて、それぞれ図4の1016〜1019の処理と概ね同様であり、ここでは説明を省略する。また、図9では図示しないが、終話の際には、図4の1021及び1022と同様の処理が実行される。なお、中継端末Cは、IP電話端末Eとの通話が終了すると、再び中継モードに移行してSIPサーバ2に対する中継端末登録のリクエストを含むパケットの送信を開始することができる。   The processes 2018 to 2021 after the start of voice communication are substantially the same as the processes 1016 to 1019 in FIG. 4 except that the relay terminal D relays voice packets instead of the relay terminal C. Is omitted. Although not shown in FIG. 9, the same processing as 1021 and 1022 in FIG. 4 is executed at the end of the talk. Note that, when the call with the IP telephone terminal E ends, the relay terminal C can shift to the relay mode again and start transmitting a packet including a relay terminal registration request to the SIP server 2.

このような構成により、中継端末Cは、音声通信の中継を実行中に自ら音声通信を行う必要が生じた場合、その中継処理を中継端末Dに容易に引き継ぐことができ、中継していたIP電話端末A,B間の音声通信が中止されるという不都合を回避することができる。なお、ここでは、IP電話端末Eからの着信を受けて中継処理を引き継ぐ場合を示したが、中継端末Cから他のIP電話端末に発信する場合にも同様の処理を実行することが可能である。   With this configuration, the relay terminal C can easily take over the relay process to the relay terminal D when it becomes necessary to perform voice communication by itself while performing the voice communication relay. The inconvenience that the voice communication between the telephone terminals A and B is interrupted can be avoided. Here, the case where the relay process is taken over upon receipt of an incoming call from IP telephone terminal E is shown, but the same process can also be executed when a call is made from relay terminal C to another IP telephone terminal. is there.

次に、図10〜図14を参照して、上記IP電話システムの中継変更動作におけるIP電話端末A,B,E、中継端末C,D、及びSIPサーバの処理の詳細について示す。ここでは、説明の便宜上、図9に示したIP電話システムにおける動作に準じて処理を説明する。   Next, with reference to FIG. 10 to FIG. 14, details of processing of the IP telephone terminals A, B, E, the relay terminals C, D, and the SIP server in the relay change operation of the IP telephone system will be described. Here, for convenience of explanation, processing will be described according to the operation in the IP telephone system shown in FIG.

図10は発信側であるIP電話端末Aの処理手順を示すフロー図である。IP電話端末Aは、図5のST101〜ST103と同様のST501〜ST503を実行後、図5のST104〜ST110と同様の処理を実行してIP電話端末Bと中継端末Cを介して通話中となる(ST504)。   FIG. 10 is a flowchart showing the processing procedure of the IP telephone terminal A on the calling side. IP telephone terminal A executes ST501 to ST503 similar to ST101 to ST103 in FIG. 5 and then executes the same processing as ST104 to ST110 in FIG. 5 to indicate that a call is in progress via IP telephone terminal B and relay terminal C. (ST504).

IP電話端末Bとの通話中に、呼制御部11が、中継端末CからREFERメッセージを受信し(ST505)、このREFERメッセージに含まれるRE-INVITEメッセージの送出命令に基づき、SIPサーバ2に対してIP電話端末B宛のRE-INVITEメッセージを送信する(ST506)。このとき、RE-INVITEメッセージ上のSDPには、後の音声通信の通信先となるIP電話端末AのIPアドレスIP−A及びポート番号S1が設定される。   During a call with IP telephone terminal B, call control unit 11 receives a REFER message from relay terminal C (ST505) and, based on the RE-INVITE message sending command included in the REFER message, Then, a RE-INVITE message addressed to IP telephone terminal B is transmitted (ST506). At this time, the IP address IP-A and the port number S1 of the IP telephone terminal A that is the communication destination of the subsequent voice communication are set in the SDP on the RE-INVITE message.

次に、呼制御部11は、中継端末D経由でIP電話端末Bからの200 OKメッセージを受信する(ST507)。このとき、200 OKメッセージ上のSDPには、後の音声通信の通信先となる中継端末DのIPアドレスIP−D及びポート番号S4が設定されている。200 OKメッセージを受信した呼制御部11は、SIPサーバ2に対してIP電話端末B宛のACK メッセージを送信する(ST508)。   Next, call control section 11 receives a 200 OK message from IP telephone terminal B via relay terminal D (ST507). At this time, in the SDP on the 200 OK message, the IP address IP-D and the port number S4 of the relay terminal D that is the communication destination of the subsequent voice communication are set. Receiving the 200 OK message, call control section 11 transmits an ACK message addressed to IP telephone terminal B to SIP server 2 (ST508).

次に、呼制御部11は、先に2013で端末Bからの200OKメッセージの受信を契機として中継端末が端末Cから端末Dに変更されたことを認識し、中継端末Cに対して中継終了許可を含むNOTIFYメッセージを送信し(ST509)し、中継端末Cからの200 OKメッセージを受信する(ST510)。   Next, the call control unit 11 recognizes that the relay terminal has been changed from the terminal C to the terminal D in response to the reception of the 200 OK message from the terminal B in 2013, and permits the relay terminal C to end the relay. (ST509) and 200 OK message from relay terminal C is received (ST510).

音声通信開始後のST511〜ST515の処理は、中継端末Cの代わりに中継端末Dが音声パケットの中継を行うことを除いて、それぞれ図5のST108〜ST112の処理と概ね同様であり、ここでは説明を省略する。   The processing of ST511 to ST515 after the start of voice communication is substantially the same as the processing of ST108 to ST112 of FIG. 5 except that the relay terminal D relays the voice packet instead of the relay terminal C, and here, Description is omitted.

図11は着信側であるIP電話端末Bの処理手順を示すフロー図である。IP電話端末Bは、図6のST201〜ST203と同様のST601〜ST603を実行後、図5のST204〜ST209と同様の処理を実行してIP電話端末Aと中継端末Cを介して通話中となる(ST604)。   FIG. 11 is a flowchart showing the processing procedure of the IP telephone terminal B on the receiving side. IP telephone terminal B performs the same processing as ST204 to ST209 in FIG. 5 after executing ST601 to ST603 similar to ST201 to ST203 in FIG. 6, and performs a call through IP telephone terminal A and relay terminal C. (ST604).

通話中に呼制御部11が、中継端末D経由でIP電話端末AからのRE-INVITEメッセージを受信する(ST605)。このとき、RE-INVITEメッセージ上のSDPには、後の音声通信の通信先となる中継端末DのIPアドレスIP−D及びポート番号S4が設定されている。、呼制御部11は、SIPサーバ2に対して中継端末DのIPアドレスIP−D及びポート番号S4をSDPに設定した200 OKメッセージをIP電話端末A宛に送信する(ST606)。さらに、呼制御部11は、中継端末D経由でIP電話端末AからACK メッセージを受信する(ST607)。   During a call, call control unit 11 receives a RE-INVITE message from IP telephone terminal A via relay terminal D (ST605). At this time, in the SDP on the RE-INVITE message, the IP address IP-D and the port number S4 of the relay terminal D that is the communication destination of the subsequent voice communication are set. The call control unit 11 transmits a 200 OK message in which the IP address IP-D of the relay terminal D and the port number S4 are set to SDP to the SIP server 2 to the IP telephone terminal A (ST606). Furthermore, call control section 11 receives an ACK message from IP telephone terminal A via relay terminal D (ST607).

その後、音声パケット送受信部13は、図6のST207,ST208と同様に、音声パケットの送受信を実行する(ST608,ST609)。そして、最終的に終話となると(ST610:YES)、呼制御部11は、中継端末D経由でIP電話端末AからのBYEメッセージを受信し(ST611)、IP電話端末A宛の200 OKメッセージをSIPサーバ2に対して送信する(ST612)。その後は、ST603に戻り、IP電話端末Bは上述と同様の処理を繰り返し実行する。   Thereafter, the voice packet transmitting / receiving unit 13 performs voice packet transmission / reception in the same manner as ST207 and ST208 in FIG. 6 (ST608, ST609). When the call is finally finished (ST610: YES), the call control unit 11 receives a BYE message from the IP telephone terminal A via the relay terminal D (ST611), and receives a 200 OK message addressed to the IP telephone terminal A. Is transmitted to the SIP server 2 (ST612). After that, returning to ST603, IP telephone terminal B repeatedly executes the same processing as described above.

図12は中継端末Cの処理手順を示すフロー図である。中継端末Cは、図7のST301〜ST304と同様のST701〜ST704を実行後、図7のST405〜ST413と同様の処理を実行してIP電話端末AとIP電話端末Bとの間の中継処理の実行中となる(ST705)。   FIG. 12 is a flowchart showing the processing procedure of the relay terminal C. Relay terminal C executes ST701 to ST704 similar to ST301 to ST304 in FIG. 7 and then executes the same processing as ST405 to ST413 in FIG. 7 to perform relay processing between IP telephone terminal A and IP telephone terminal B (ST705).

次に、呼制御部11はIP電話端末EからのINVITEメッセージを受信し(ST706)、これにより、SIPメッセージ中継部17は、IP電話装置間で送受信されるSIPメッセージを他の中継端末へ転送することをSIPサーバ2に指示するために、SIPサーバ2に対してIP電話端末A宛のREFERメッセージを送信する(ST707)。続いて、SIPメッセージ中継部17は、IP電話端末AからのNOTIFYメッセージを受信し(ST708)、IP電話端末Aに対して200 OKメッセージを送信する(ST709)。このNOTIFYメッセージの受信により、SIPメッセージ中継部17は、他の中継端末への中継処理の引き継ぎが成功したと判断して中継処理を終了する(ST710)。これと同時に、中継端末登録部15は、SIPサーバ2に対するパケットの送信を停止する。   Next, the call control unit 11 receives the INVITE message from the IP telephone terminal E (ST706), whereby the SIP message relay unit 17 transfers the SIP message transmitted / received between the IP telephone apparatuses to another relay terminal. In order to instruct the SIP server 2 to do this, a REFER message addressed to the IP telephone terminal A is transmitted to the SIP server 2 (ST707). Subsequently, SIP message relay unit 17 receives the NOTIFY message from IP telephone terminal A (ST708), and transmits a 200 OK message to IP telephone terminal A (ST709). Upon reception of this NOTIFY message, the SIP message relay unit 17 determines that the relay process has been successfully taken over by another relay terminal, and ends the relay process (ST710). At the same time, the relay terminal registration unit 15 stops sending packets to the SIP server 2.

その後、呼制御部11は、図6のST204〜ST208におけるIP電話端末Bと同様の処理を実行し、IP電話端末Eとの間で音声通信を実行する(ST711)。そして、最終的に終話となると(ST712:YES)、呼制御部11は再び中継モードを実行可能であると判断し、これにより、中継端末登録部15がSIPサーバ2に対する中継端末登録のリクエストを含むパケットの送信を再び開始する(ST713)。その後は、ST704に戻り、中継端末Cは、上述と同様の処理を繰り返し実行する。   Thereafter, call control unit 11 executes the same processing as IP telephone terminal B in ST204 to ST208 of FIG. 6, and performs voice communication with IP telephone terminal E (ST711). When the talk is finally ended (ST712: YES), the call control unit 11 determines that the relay mode can be executed again, and the relay terminal registration unit 15 thereby requests the SIP server 2 to register the relay terminal. The transmission of the packet including is started again (ST713). After that, returning to ST704, relay terminal C repeatedly executes the same processing as described above.

図13はIP電話端末AとIP電話端末Bの間の中継処理を中継端末Cから引き継ぐ中継端末Dの処理手順を示すフロー図である。中継端末Dは、図7の中継端末CによるST301〜ST303と同様のST801〜ST803を実行後、SIPメッセージ中継部17が、SIPサーバ2から転送されたIP電話端末B宛のRE-INVITEメッセージを受信する(ST804)。これにより、中継端末Dは自装置が中継端末として選択されたことを認識する。続いて、SIPメッセージ中継部17は、そのRE-INVITEメッセージ上のSDPに含まれる音声通信の通信先となるIPアドレスIP−A及びポート番号S1を自装置のIPアドレスIP−D及びポート番号S4にそれぞれ書き換え、その書き換え後のRE-INVITEメッセージをSIPサーバ2に返送する(ST805)。   FIG. 13 is a flowchart showing the processing procedure of the relay terminal D that takes over the relay processing between the IP telephone terminal A and the IP telephone terminal B from the relay terminal C. After the relay terminal D executes ST801 to ST803 similar to ST301 to ST303 by the relay terminal C in FIG. 7, the SIP message relay unit 17 transmits the RE-INVITE message addressed to the IP telephone terminal B transferred from the SIP server 2. Receive (ST804). Thereby, the relay terminal D recognizes that its own device is selected as the relay terminal. Subsequently, the SIP message relay unit 17 uses the IP address IP-A and the port number S1 as the communication destination of the voice communication included in the SDP on the RE-INVITE message as the IP address IP-D and the port number S4 of its own device. And the RE-INVITE message after the rewriting is returned to the SIP server 2 (ST805).

次に、SIPメッセージ中継部17は、SIPサーバ2から転送されたIP電話端末A宛の200 OKメッセージを受信すると、その200 OKメッセージ上のSDPに含まれる音声通信の通信先となるIPアドレスIP−B及びポート番号S2を自装置のIPアドレスIP−D及びポート番号S4にそれぞれ書き換え、その書き換え後の200 OKメッセージをSIPサーバ2に返送する(ST806)。   Next, when the SIP message relay unit 17 receives the 200 OK message addressed to the IP telephone terminal A transferred from the SIP server 2, the IP address IP serving as the voice communication destination included in the SDP on the 200 OK message. -B and port number S2 are rewritten to IP address IP-D and port number S4 of the own device, respectively, and the 200 OK message after the rewriting is returned to SIP server 2 (ST806).

その後のST807〜ST814の処理は、図7の中継端末CによるST308〜ST315とそれぞれ同様の処理であり、ここでは説明を省略する。   The subsequent processing of ST807 to ST814 is the same processing as ST308 to ST315 by the relay terminal C in FIG.

なお、IP電話端末E及び中継端末Cは、従来のIP電話と同様に、中継端末を介さずに呼接続を確立して音声通信を実行することができる。或いは、IP電話端末E及び中継端末Cは、図示しない別の中継端末を介して図5のIP電話端末A及びIP電話端末Bの場合と同様の処理を実行することもできる。   Note that the IP telephone terminal E and the relay terminal C can perform voice communication by establishing a call connection without using a relay terminal, as in the case of a conventional IP telephone. Alternatively, the IP telephone terminal E and the relay terminal C can execute the same processing as in the case of the IP telephone terminal A and the IP telephone terminal B of FIG. 5 via another relay terminal (not shown).

図14はSIPサーバの処理手順を示すフロー図である。SIPサーバ2は、図8のST401〜ST404と同様のST901〜ST904を実行後、図8のST405〜ST416に相当するIP電話端末AとIP電話端末Bとの間の呼接続処理を実行する(ST905)。   FIG. 14 is a flowchart showing the processing procedure of the SIP server. After executing ST901 to ST904 similar to ST401 to ST404 in FIG. 8, the SIP server 2 executes call connection processing between IP telephone terminal A and IP telephone terminal B corresponding to ST405 to ST416 in FIG. ST905).

続いて、中継端末登録部34は、ST903の場合と同様に、中継端末Dから中継端末登録のリクエストを含むパケットの受信し、中継端末Dを中継端末Cに加えて中継端末テーブルに登録する(ST906)。   Subsequently, as in ST903, the relay terminal registration unit 34 receives a packet including a relay terminal registration request from the relay terminal D, and registers the relay terminal D in the relay terminal table in addition to the relay terminal C ( ST906).

次に、SIPメッセージ中継部33は、IP電話端末EからのIP電話端末C宛のINVITEメッセージを受信し、そのメッセージを中継端末Cに転送する(ST907)。続いて、SIPメッセージ中継部33は、中継端末CからのREFERメッセージを受信し、このメッセージをIP電話端末Aに転送する(ST908)。ここで、SIPメッセージ中継部33は、IP電話端末C宛のINVITEメッセージの受信後に中継端末Cから受信するREFERメッセージを、IP電話装置間で送受信されるSIPメッセージを他の中継端末へ転送することを指示する中継変更指示として認識する。   Next, SIP message relay section 33 receives the INVITE message addressed to IP telephone terminal C from IP telephone terminal E, and forwards the message to relay terminal C (ST907). Subsequently, the SIP message relay unit 33 receives the REFER message from the relay terminal C, and transfers this message to the IP telephone terminal A (ST908). Here, the SIP message relay unit 33 transfers the REFER message received from the relay terminal C after receiving the INVITE message addressed to the IP telephone terminal C to the SIP message transmitted / received between the IP telephone apparatuses to another relay terminal. Is recognized as a relay change instruction.

次に、SIPメッセージ中継部33は、IP電話端末AからのIP電話端末B宛のRE-INVITEメッセージを受信し(ST909)、中継端末テーブル35を参照して中継端末DのIPアドレス及びポート番号を取得し、中継端末Dに対してそのRE-INVITEメッセージを転送する(ST910)。   Next, the SIP message relay unit 33 receives the RE-INVITE message addressed to the IP telephone terminal B from the IP telephone terminal A (ST909), refers to the relay terminal table 35, and the IP address and port number of the relay terminal D And transfers the RE-INVITE message to relay terminal D (ST910).

その後、SIPメッセージ中継部33は、図8のST409〜ST412とそれぞれ同様にST911〜ST914を実行する。続いて、SIPメッセージ中継部33は、IP電話端末Aからの中継端末C宛のNOTIFYメッセージを受信し、このメッセージを中継端末Cに転送する(ST915)。さらに、SIPメッセージ中継部33は、中継端末Cからの200 OKメッセージをIP電話端末Aに転送する(ST916)。   Thereafter, the SIP message relay unit 33 executes ST911 to ST914 in the same manner as ST409 to ST412 of FIG. Subsequently, the SIP message relay unit 33 receives the NOTIFY message addressed to the relay terminal C from the IP telephone terminal A, and transfers this message to the relay terminal C (ST915). Further, SIP message relay section 33 transfers the 200 OK message from relay terminal C to IP telephone terminal A (ST916).

次に、中継端末登録部34は、中継端末Cから中継端末登録のリクエストを含むパケットを受信する(ST917)。これにより、中継端末登録部34は、中継端末Cを再び中継端末登録する。その後は、ST904に戻り、SIPサーバ2は上述と同様の処理を繰り返し実行する。   Next, relay terminal registration unit 34 receives a packet including a relay terminal registration request from relay terminal C (ST917). As a result, the relay terminal registration unit 34 registers the relay terminal C again as a relay terminal. After that, returning to ST904, the SIP server 2 repeatedly executes the same processing as described above.

本発明を特定の実施形態に基づいて詳細に説明したが、これらの実施形態はあくまでも例示であって本発明はこれらの実施形態によって限定されるものではない。例えば、上記IP電話システムにおいては、IP電話端末間の音声通信が従来のNAT越え方法により実現できない場合にのみ中継端末による中継処理を実行する構成とすることができる。この場合、例えば、音声通信を行うIP電話端末が接続される中継装置のNAT種別に基づき、中継端末による中継処理の実行の要否を判断することができる。   Although the present invention has been described in detail based on specific embodiments, these embodiments are merely examples, and the present invention is not limited to these embodiments. For example, the IP telephone system can be configured to execute the relay processing by the relay terminal only when voice communication between IP telephone terminals cannot be realized by the conventional NAT traversal method. In this case, for example, based on the NAT type of the relay device to which the IP telephone terminal that performs voice communication is connected, it is possible to determine whether or not the relay processing by the relay terminal is necessary.

本発明に係る中継機能付きIP電話装置及びこれを備えたIP電話システム並びに通信中継方法は、IP電話装置が接続される中継装置のNATの種別によらず、簡易かつ安価な構成によりそれらIP電話装置間の音声通信を実現可能とし、SIPサーバ等の呼制御サーバを備えた広域ネットワークにおいて通信を行うIP電話装置及びこれを備えたIP電話システム並びに通信中継方法として有用である。   The IP telephone apparatus with a relay function according to the present invention, the IP telephone system including the IP telephone system, and the communication relay method are not limited to the NAT type of the relay apparatus to which the IP telephone apparatus is connected. It is possible to realize voice communication between apparatuses, and is useful as an IP telephone apparatus that performs communication in a wide area network including a call control server such as an SIP server, an IP telephone system including the IP telephone apparatus, and a communication relay method.

本願発明に係るIP電話システムのシステム構成図System configuration diagram of IP telephone system according to the present invention IP電話端末の機能ブロック図Functional block diagram of IP phone terminal SIPサーバの機能ブロック図Functional block diagram of SIP server IP電話システムの基本動作を示すシーケンス図Sequence diagram showing basic operation of IP telephone system 図4におけるIP電話端末Aの処理手順を示すフロー図FIG. 4 is a flowchart showing the processing procedure of IP telephone terminal A 図4におけるIP電話端末Bの処理手順を示すフロー図FIG. 4 is a flowchart showing the processing procedure of IP telephone terminal B 図4における中継端末Cの処理手順を示すフロー図FIG. 4 is a flowchart showing the processing procedure of the relay terminal C in FIG. 図4におけるSIPサーバの処理を示すフロー図The flowchart which shows the process of the SIP server in FIG. IP電話システムの中継変更動作を示すシーケンス図Sequence diagram showing relay change operation of IP telephone system 図9におけるIP電話端末Aの処理手順を示すフロー図FIG. 9 is a flowchart showing the processing procedure of IP telephone terminal A 図9におけるIP電話端末Bの処理手順を示すフロー図FIG. 9 is a flowchart showing the processing procedure of IP telephone terminal B 図9における中継端末Cの処理手順を示すフロー図FIG. 9 is a flowchart showing a processing procedure of the relay terminal C in FIG. 図9における中継端末Dの処理手順を示すフロー図FIG. 9 is a flowchart showing the processing procedure of the relay terminal D in FIG. 図9におけるSIPサーバの処理手順を示すフロー図FIG. 9 is a flowchart showing the processing procedure of the SIP server.

符号の説明Explanation of symbols

1 IP電話システム
2 SIPサーバ(呼制御サーバ)
3 インターネット(広域ネットワーク)
4〜8 LAN
11 呼制御部
13 音声パケット送受信部
15 中継端末登録部(転送指示手段)
17 SIPメッセージ中継部(メッセージ中継手段、中継変更指示手段)
19 音声パケット中継部(音声中継手段)
31 端末登録部
33 SIPメッセージ中継部
34 中継端末登録部
1 IP telephone system 2 SIP server (call control server)
3 Internet (wide area network)
4-8 LAN
11 Call control unit 13 Voice packet transmission / reception unit 15 Relay terminal registration unit (transfer instruction means)
17 SIP message relay unit (message relay means, relay change instruction means)
19 Voice packet relay unit (voice relay means)
31 terminal registration unit 33 SIP message relay unit 34 relay terminal registration unit

Claims (7)

NAT機能を有する中継装置を介して広域ネットワークに接続される複数のIP電話装置とこれらIP電話装置の呼を制御する呼制御サーバとを有するIP電話システムで用いられる中継機能付きIP電話装置であって、
前記中継機能付きIP電話装置は、
完全コーン型のNAT機能を有する中継装置を介して前記広域ネットワークに接続され、
前記IP電話装置と音声通信を行う通常モードと、他のIP電話装置間で実行される音声通信を中継する中継モードとの2つの動作モードを有し、
前記中継モードにある場合、前記呼制御サーバに対し、当該呼制御サーバを介して他のIP電話装置間で送受信される呼制御メッセージの転送を指示する転送指示手段と、
前記転送指示に基づき前記呼制御サーバから転送された呼制御メッセージを受信し、当該呼制御メッセージに含まれる発信先および発信元のIPアドレスおよびポート番号を認識するとともに、当該呼制御メッセージのSDPに含まれる発信元のIPアドレスおよびポート番号を自装置のIPアドレスおよびポート番号にそれぞれ書き換え、当該書き換え後の呼制御メッセージを前記呼制御サーバに返送するメッセージ中継手段と、
前記呼制御メッセージの送受信により前記他のIP電話装置間で音声通信を実行するための接続が確立された後、当該IP電話装置の一方から前記自装置のIPアドレスおよびポート番号宛に送信される通信データを、前記認識に基づいて本来の発信先である他方に転送することにより前記音声通信を中継する音声中継手段と
を備えたことを特徴とする中継機能付きIP電話装置。
An IP telephone apparatus with a relay function used in an IP telephone system having a plurality of IP telephone apparatuses connected to a wide area network via a relay apparatus having a NAT function and a call control server for controlling calls of these IP telephone apparatuses. And
The IP telephone device with a relay function is:
Connected to the wide area network via a relay device having a complete cone type NAT function,
There are two operation modes: a normal mode for performing voice communication with the IP telephone device, and a relay mode for relaying voice communication performed between other IP telephone devices,
When in the relay mode, transfer instruction means for instructing the call control server to transfer a call control message transmitted / received between other IP telephone devices via the call control server;
The call control message transferred from the call control server based on the transfer instruction is received, the destination and the source IP address and port number included in the call control message are recognized, and the SDP of the call control message is Message relay means for rewriting the IP address and port number of the source included in the IP address and port number of the own device, and returning the rewritten call control message to the call control server;
After connection to execute voice communication between the other IP telephone devices is established by transmission / reception of the call control message, it is transmitted from one of the IP telephone devices to the IP address and port number of the own device An IP telephone apparatus with a relay function, comprising: voice relay means for relaying the voice communication by transferring communication data to the other, which is an original transmission destination, based on the recognition .
前記転送指示手段は、前記呼制御サーバに対して転送指示要求パケットを継続的に繰り返し送信することで前記呼制御メッセージの転送を指示する一方、前記パケットの送信を停止することで前記転送の指示を解除することを特徴とする請求項1に記載の中継機能付きIP電話装置。 The transfer instruction means instructs the transfer of the call control message by continuously and repeatedly transmitting a transfer instruction request packet to the call control server, while stopping the transmission of the packet. The IP telephone apparatus with a relay function according to claim 1, wherein 前記転送指示要求パケットは自装置において音声中継に使用するポートから送信することを特徴とする請求項2に記載の中継機能付きIP電話装置。   The IP telephone apparatus with a relay function according to claim 2, wherein the transfer instruction request packet is transmitted from a port used for voice relay in the own apparatus. 前記中継モードを実行中に前記通常モードへ移行する場合、前記音声通信を実行するIP電話装置の一方に対して前記IP電話装置間の接続を再度確立するための呼制御メッセージの送出を指示するとともに、前記呼制御サーバに対して前記IP電話装置間で送受信される呼制御メッセージを他の中継機能付きIP電話装置へ転送するように指示する中継変更指示手段を更に備えたことを特徴とする請求項1または請求項2に記載の中継機能付きIP電話装置。   When shifting to the normal mode while the relay mode is being executed, one of the IP telephone apparatuses that perform the voice communication is instructed to send a call control message for re-establishing a connection between the IP telephone apparatuses. And a relay change instruction means for instructing the call control server to transfer a call control message transmitted / received between the IP telephone apparatuses to another IP telephone apparatus with a relay function. The IP telephone apparatus with a relay function according to claim 1 or 2. 請求項1乃至請求項4のいずれかに記載の中継機能付きIP電話装置を備えたIP電話システム。   An IP telephone system comprising the IP telephone device with a relay function according to any one of claims 1 to 4. 前記呼制御サーバは、前記IP電話装置からの登録要求を受信して当該IP電話装置を呼制御メッセージまたは通信データを中継する中継端末として中継端末登録テーブルに登録する中継端末登録手段と、他のIP電話装置間で送受信される呼制御メッセージを前記中継端末登録テーブルに登録された中継端末に転送する転送手段とを備えたことを特徴とする請求項5に記載のIP電話システム。   The call control server receives a registration request from the IP telephone apparatus and registers the IP telephone apparatus in a relay terminal registration table as a relay terminal that relays the call control message or communication data; 6. The IP telephone system according to claim 5, further comprising transfer means for transferring a call control message transmitted / received between the IP telephone apparatuses to the relay terminal registered in the relay terminal registration table. NAT機能を有する中継装置を介して広域ネットワークに接続される複数のIP電話装置とこれらIP電話装置の呼を制御する呼制御サーバとを有するIP電話システムで用いられる通信中継方法であって、
前記IP電話装置の少なくとも一つは、完全コーン型のNAT機能を有する中継装置を介して前記広域ネットワークに接続され、前記IP電話装置と音声通信を行う通常モードと、他のIP電話装置間で実行される音声通信を中継する中継モードとの2つの動作モードを有し、
前記中継モードにある場合、前記呼制御サーバに対し、当該呼制御サーバを介して他のIP電話装置間で送受信される呼制御メッセージの転送を指示し、
前記転送指示に基づき前記呼制御サーバから転送された呼制御メッセージを受信し、当該呼制御メッセージに含まれる発信先および発信元のIPアドレスおよびポート番号を認識するとともに、当該呼制御メッセージのSDPに含まれる発呼元のIPアドレスおよびポート番号を自装置のIPアドレスおよびポート番号にそれぞれ書き換え、当該書き換え後の呼制御メッセージを前記呼制御サーバに返送し、
前記呼制御メッセージの送受信により前記他のIP電話装置間で音声通信を実行するための接続が確立された後、当該IP電話装置の一方から前記自装置のIPアドレスおよびポート番号宛に送信される通信データを、前記認識に基づいて本来の発信先である他方に転送することにより前記音声通信を中継する通信中継方法。
A communication relay method used in an IP telephone system having a plurality of IP telephone apparatuses connected to a wide area network via a relay apparatus having a NAT function and a call control server for controlling calls of these IP telephone apparatuses,
At least one of the IP telephone devices is connected to the wide area network via a relay device having a complete cone-type NAT function, and between a normal mode for performing voice communication with the IP telephone device, and between other IP telephone devices. It has two operation modes, the relay mode that relays voice communication to be executed,
When in the relay mode, the call control server is instructed to transfer a call control message transmitted / received between other IP telephone devices via the call control server,
The call control message transferred from the call control server based on the transfer instruction is received, the destination and the source IP address and port number included in the call control message are recognized, and the SDP of the call control message is Rewriting the IP address and port number of the caller included in the IP address and port number of the own device, respectively, and returning the call control message after the rewriting to the call control server,
After connection to execute voice communication between the other IP telephone devices is established by transmission / reception of the call control message, it is transmitted from one of the IP telephone devices to the IP address and port number of the own device A communication relay method for relaying the voice communication by transferring communication data to the other, which is an original transmission destination, based on the recognition .
JP2007218004A 2007-08-24 2007-08-24 IP telephone apparatus with relay function, IP telephone system including the same, and communication relay method Expired - Fee Related JP5096074B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2007218004A JP5096074B2 (en) 2007-08-24 2007-08-24 IP telephone apparatus with relay function, IP telephone system including the same, and communication relay method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2007218004A JP5096074B2 (en) 2007-08-24 2007-08-24 IP telephone apparatus with relay function, IP telephone system including the same, and communication relay method

Publications (2)

Publication Number Publication Date
JP2009055165A JP2009055165A (en) 2009-03-12
JP5096074B2 true JP5096074B2 (en) 2012-12-12

Family

ID=40505856

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2007218004A Expired - Fee Related JP5096074B2 (en) 2007-08-24 2007-08-24 IP telephone apparatus with relay function, IP telephone system including the same, and communication relay method

Country Status (1)

Country Link
JP (1) JP5096074B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5511553B2 (en) * 2010-07-02 2014-06-04 キヤノン株式会社 COMMUNICATION DEVICE, ITS CONTROL METHOD, AND PROGRAM
KR101214555B1 (en) * 2011-11-21 2012-12-24 김민겸 Method and appratus for voice communication control

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002190827A (en) * 2000-12-22 2002-07-05 Intec Web & Genome Informatics Corp Connection system for internet telephone between different networks
JP2004056610A (en) * 2002-07-23 2004-02-19 Nippon Telegr & Teleph Corp <Ntt> Network repeater, relaying method, relay program and recording medium recorded with the program
JP4630275B2 (en) * 2004-03-17 2011-02-09 アイピートーク株式会社 Wireless communication terminal and wireless communication method
JP4599196B2 (en) * 2005-03-11 2010-12-15 株式会社アドイン研究所 Relay device, communication system, control method and control program thereof

Also Published As

Publication number Publication date
JP2009055165A (en) 2009-03-12

Similar Documents

Publication Publication Date Title
JP4411332B2 (en) IP communication apparatus, IP communication system, and these IP communication methods
US8340089B2 (en) Apparatus and method for managing data transfer in VoIP gateway
JP5049646B2 (en) IP communication apparatus and data transmission method thereof
EP2226987A1 (en) Terminal device, system, connection management server, and computer program for establishing direct communication between terminals
US8713313B2 (en) Terminal device, system and computer readable medium
JP4469209B2 (en) IP telephone system, IP telephone apparatus and calling method
JP4722623B2 (en) IP communication apparatus and control method thereof
JP4886612B2 (en) IP communication apparatus, IP communication method, and call control server
JP5096074B2 (en) IP telephone apparatus with relay function, IP telephone system including the same, and communication relay method
JP4268656B2 (en) Signaling method in IP telephone system, IP telephone system, and IP telephone apparatus
JP2007511123A (en) Call setting system and call setting method
JP4627760B2 (en) Communication relay method, communication relay program, and communication relay device
JP4847403B2 (en) IP communication apparatus and determination method of NAT type by IP communication apparatus
JP5010989B2 (en) IP communication apparatus, IP communication system, and data communication method
JP2006109316A (en) Gateway device and communication connection method
JP5070139B2 (en) Communication relay device, communication system, communication method, and program
JP5769909B2 (en) Wireless communication apparatus and server apparatus
JP2005318404A (en) Ip telephone system and apparatus, and calling method
JP5158588B2 (en) SIP telephone, VoIP system, same-network communication method used therefor, and program thereof
JP5659826B2 (en) COMMUNICATION DEVICE, COMMUNICATION METHOD, AND COMMUNICATION PROGRAM
JP4522842B2 (en) IP telephone system, IP telephone apparatus, and file transfer method
JP2008148019A (en) Pbx device and call control method therefor
JP4555005B2 (en) Protocol conversion server
JP2005294938A (en) CALL HOLDING METHOD IN VoIP NETWORK
JP5046007B2 (en) IP telephone equipment

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20100203

RD02 Notification of acceptance of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7422

Effective date: 20110819

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20111205

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20111213

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20120127

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20120904

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20120920

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20150928

Year of fee payment: 3

LAPS Cancellation because of no payment of annual fees