[go: up one dir, main page]

CN1997048A - Communication method and redirection device of the terminal in the IP network - Google Patents

Communication method and redirection device of the terminal in the IP network Download PDF

Info

Publication number
CN1997048A
CN1997048A CN 200610165380 CN200610165380A CN1997048A CN 1997048 A CN1997048 A CN 1997048A CN 200610165380 CN200610165380 CN 200610165380 CN 200610165380 A CN200610165380 A CN 200610165380A CN 1997048 A CN1997048 A CN 1997048A
Authority
CN
China
Prior art keywords
terminal
internet
media gateway
address
network
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.)
Pending
Application number
CN 200610165380
Other languages
Chinese (zh)
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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN 200610165380 priority Critical patent/CN1997048A/en
Publication of CN1997048A publication Critical patent/CN1997048A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

本发明公开了一种终端在IP网络中通信的方法,包括:当终端发起经由互联网电话交换机进行通信的请求时,判断终端是否能够与所述互联网电话交换机进行通信,如果不能则所述终端通过预设的媒体网关连接到备选网络进行通信。本发明还公开了一种重定向装置,包括:判断模块,与互联网专用电话交换机连接,用于当终端发起经由互联网电话交换机进行通信的请求时判断终端是否能够与所述互联网电话交换机进行通信;重定向模块,与所述判断模块及所述终端连接。本发明能够使终端在与互联网专用电话交换机的通信发生故障时通过备选网络进行通信而不需布电话线,从而能够极大地简化组网方式、减少成本及合理利用资源。

The invention discloses a method for a terminal to communicate in an IP network. The default media gateway connects to the alternate network for communication. The present invention also discloses a redirection device, comprising: a judging module, connected to an Internet dedicated telephone exchange, for judging whether the terminal can communicate with the Internet telephone exchange when the terminal initiates a communication request via the Internet telephone exchange; The redirection module is connected with the judging module and the terminal. The invention can enable the terminal to communicate through the alternative network without laying telephone lines when the communication with the Internet special telephone exchange fails, thereby greatly simplifying the networking mode, reducing costs and rationally utilizing resources.

Description

终端在IP网络中通信的方法及重定向装置Method and redirection device for terminal to communicate in IP network

技术领域technical field

本发明涉及终端通信的方法及装置,特别涉及终端在IP网络中通信的方法及重定向装置,属于通信领域。The invention relates to a terminal communication method and device, in particular to a terminal communication method and a redirection device in an IP network, belonging to the field of communication.

背景技术Background technique

随着传输数据、语音和视频的网络融合逐渐实现,人们对于通信融合的概念的理解也逐渐的深入,而“融合IP通信系统”带给企业的意义和价值不言而喻。网络融合并不仅仅意味着削减电话费用和改进视频会议,实际上,许多企业组织都在考察如何使用融合网络来改善团队协作和提高生产力、与客户、合作伙伴和供应商进行更好的沟通、对日益复杂的网络进行规范管理、以及提高网络的安全性。With the gradual realization of the network convergence of transmission data, voice and video, people's understanding of the concept of communication convergence has gradually deepened, and the significance and value of "converged IP communication system" to enterprises is self-evident. Network convergence doesn't just mean cutting phone bills and improving video conferencing. In fact, many organizations are examining how converged networks can be used to improve teamwork and productivity, communicate better with customers, partners and suppliers, Standardize the management of increasingly complex networks and improve network security.

互联网专用电话交换机(IP Private Branch Exchange,简称IP-PBX)是一种基于IP网络的企业电话系统,这个系统可以完全将话音通信集成到企业的数据网络中,从而建立能够连接分布在全球各地办公地点和员工的统一话音和数据网络。与公共交换电话网(Public Switched Telephone Network,简称PSTN)网络相比,IP-PBX为企业提供了更加廉价、功能更为强大的通信方案。IP Private Branch Exchange (IP-PBX for short) is an enterprise telephone system based on IP network. Unified voice and data network for sites and employees. Compared with the Public Switched Telephone Network (PSTN) network, IP-PBX provides enterprises with a cheaper and more powerful communication solution.

但是,当IP-PBX设备发生故障或IP网络中断时,基于IP网络的基本通话功能将无法实现。现有技术中,为解决此类问题提出了断电逃生、网络中断逃生等技术方案,这里统称逃生功能。逃生功能是为了实现当IP-PBX设备发生故障或IP网络中断时,终端依然可以通过PSTN网络进行呼叫。However, when the IP-PBX equipment fails or the IP network is interrupted, the basic call function based on the IP network will not be realized. In the prior art, in order to solve such problems, technical solutions such as power failure escape and network interruption escape are proposed, which are collectively referred to as the escape function here. The escape function is to realize that when the IP-PBX equipment fails or the IP network is interrupted, the terminal can still make calls through the PSTN network.

现有技术中,实现上述逃生功能的方法是由终端自带逃生口。如图1所示,具有逃生功能的终端带有FXO口,可以通过电话线连接到传统的PSTN网络,这样的终端可以通过IP网络拨打电话,也可以通过PSTN网络拨打电话。当IP网络连接发生中断的时候(即终端无法与IP-PBX通讯),终端依然可以通过PSTN网络拨打电话,从而实现了逃生功能。In the prior art, the method for realizing the above-mentioned escape function is that the terminal comes with an escape port. As shown in Figure 1, the terminal with escape function has an FXO port, which can be connected to the traditional PSTN network through a telephone line. Such a terminal can make calls through the IP network or through the PSTN network. When the IP network connection is interrupted (that is, the terminal cannot communicate with the IP-PBX), the terminal can still make calls through the PSTN network, thereby realizing the escape function.

该方法的不足之处在于,在终端数量较多时,组网不方便,每个终端需要同时布电话线及网线,在企业端也同时需要设置PSTN设备及VOIP设备,从而不仅增加了组网复杂度,也增加了成本,资源也极大浪费。The disadvantage of this method is that it is inconvenient to form a network when there are a large number of terminals. Each terminal needs to be equipped with telephone lines and network cables at the same time. At the enterprise end, it is also necessary to set up PSTN equipment and VOIP equipment, which not only increases the complexity of the network. The cost is also increased, and resources are also greatly wasted.

发明内容Contents of the invention

本发明的目的是针对现有技术中在用户数量较大时组网复杂度大,成本高,资源浪费的缺陷,提供一种终端在IP网络中通信的方法及重定向装置,使终端在与互联网专用电话交换机(简称IP-PBX)的通信发生故障时能够通过备选网络(如PSTN网络、GSM网络、CDMA网络等)进行通信而不需布电话线,从而能够极大地简化组网方式、减少成本及合理利用资源。The purpose of the present invention is to provide a method and a redirection device for a terminal to communicate in an IP network, so that the terminal can communicate with When the communication of the Internet private telephone exchange (IP-PBX for short) fails, it can communicate through the alternative network (such as PSTN network, GSM network, CDMA network, etc.) Reduce costs and rationally utilize resources.

为实现上述发明目的,本发明提供了一种终端在IP网络中通信的方法,包括:当终端发起经由互联网电话交换机进行通信的请求时,判断终端是否能够与所述互联网电话交换机进行通信,如果不能则所述终端通过预设的媒体网关连接到备选网络进行通信。In order to achieve the purpose of the above invention, the present invention provides a method for a terminal to communicate in an IP network, including: when the terminal initiates a communication request via an Internet telephone exchange, judging whether the terminal can communicate with the Internet telephone exchange, if If not, the terminal is connected to the alternative network through the preset media gateway for communication.

在上述技术方案中,终端在无法与互联网专用电话交换机进行通信时,通过媒体网关连接到备选网络进行通信,从而实现了终端的逃生功能;由于媒体网关设备能够完成备选网络(如PSTN网络、GSM网络、CDMA网络等)侧与IP分组网络侧媒体流的转换,实现备选网络与IP网络的互通,在备选网络及IP网络间提供无缝互联,因此通过上述技术方案,终端只需经由网线和IP网络与互联网专用电话交换机及媒体网关连接,而不需设置电话线,企业端也只需设置VOIP设备而无需设置PSTN设备,从而能够极大地简化组网方式、减少成本及合理利用资源。In the above technical solution, when the terminal cannot communicate with the Internet private telephone exchange, it communicates with the alternative network through the media gateway, thereby realizing the escape function of the terminal; since the media gateway device can complete the alternative network (such as the PSTN network) , GSM network, CDMA network, etc.) side and IP packet network side media flow conversion, realize the intercommunication between the alternative network and the IP network, and provide seamless interconnection between the alternative network and the IP network. Therefore, through the above technical solution, the terminal only needs to It needs to be connected to the Internet dedicated telephone exchange and media gateway through the network cable and IP network, without the need to set up telephone lines, and the enterprise side only needs to set up VOIP equipment instead of PSTN equipment, which can greatly simplify the networking mode, reduce costs and be reasonable utilize resource.

上述技术方案可具体包括:终端预先保存互联网电话交换机的IP地址和媒体网关的IP地址;所述终端利用所述互联网电话交换机的IP地址向所述互联网电话交换机发送呼叫请求,如果终端接收到所述互联网电话交换机返回的故障消息或接受不到所述互联网电话机的响应消息,确定本终端与所述互联网电话机不能进行通信,则利用所述媒体网关的IP地址通过所述媒体网关连接到备选网络进行通信。The above technical solution may specifically include: the terminal pre-saves the IP address of the Internet telephone exchange and the IP address of the media gateway; the terminal uses the IP address of the Internet telephone exchange to send a call request to the Internet telephone exchange, if the terminal receives the If the failure message returned by the Internet telephone exchange or the response message of the Internet telephone cannot be received, it is determined that the terminal cannot communicate with the Internet telephone, and the IP address of the media gateway is used to connect to the Internet through the media gateway. Alternative network for communication.

上述技术方案也可具体包括:终端预先保存媒体网关的IP地址;所述终端利用所述媒体网关的IP地址向所述媒体网关发送呼叫经由互联网电话交换机进行通信的请求;所述媒体网关接收到所述请求后,判断所述终端与所述互联网电话交换机之间的通信链路是否中断,如果中断则将所述终端连接到备选网络进行通信。The above technical solution may also specifically include: the terminal pre-saves the IP address of the media gateway; the terminal uses the IP address of the media gateway to send a request to the media gateway to communicate via an Internet telephone switch; the media gateway receives After the request, it is judged whether the communication link between the terminal and the Internet telephone exchange is interrupted, and if interrupted, the terminal is connected to an alternative network for communication.

上述技术方案也可具体包括:终端预先保存重定向装置的IP地址;所述终端利用所述重定向装置的IP地址向所述重定向装置发送呼叫经由互联网电话交换机进行通信的请求;所述重定向装置接收到所述请求后,判断所述终端与所述互联网电话交换机之间的通信链路是否中断,如果中断则向所述终端返回预先保存的媒体网关的IP地址;所述终端利用所述媒体网关的IP地址通过所述媒体网关连接到备用网络。The above technical solution may also specifically include: the terminal pre-saves the IP address of the redirecting device; the terminal uses the IP address of the redirecting device to send a call to the redirecting device to communicate via an Internet telephone switch; After the orientation device receives the request, it judges whether the communication link between the terminal and the Internet telephone exchange is interrupted, and if interrupted, returns the IP address of the pre-saved media gateway to the terminal; The IP address of the media gateway is connected to the standby network through the media gateway.

为实现上述发明目的,本发明还提供了一种重定向装置,包括:判断模块,与互联网专用电话交换机连接,用于当终端发起经由互联网电话交换机进行通信的请求时,判断终端是否能够与所述互联网电话交换机进行通信;重定向模块,与所述判断模块及所述终端连接,用于根据判断模块的判断结果指示终端的操作,在终端不能与互联网专用电话交换机进行通信时指示终端通过预设的媒体网关连接到备选网络进行通信。In order to achieve the purpose of the above invention, the present invention also provides a redirection device, including: a judging module, connected to the Internet private telephone exchange, used for judging whether the terminal can communicate with the Internet telephone exchange when the terminal initiates a communication request via the Internet telephone exchange. The Internet telephone exchange for communication; the redirection module is connected with the judgment module and the terminal, and is used to instruct the operation of the terminal according to the judgment result of the judgment module, and instruct the terminal to pass the pre-set when the terminal cannot communicate with the Internet dedicated telephone exchange. The device's media gateway is connected to the alternate network for communication.

在上述技术方案中,通过在重定向装置中设置判断模块来检测互联网专用电话交换机是否发生故障,并通过重定向模块来根据检测结果指示终端在需要进行通信时向互联网专用电话交换机或媒体网关进行通信,从而使得终端在无法与互联网专用电话交换机进行通信时,能够通过媒体网关连接到备选网络进行通信,实现了终端的逃生功能;并且由于媒体网关能够在备选网络(如PSTN网络、GSM网络、CDMA网络等)及IP网络间提供无缝互联,因此终端只需设置网线而无需布电话线,企业端也只需设置VOIP设备而无需设置PSTN设备,从而能够极大地简化组网方式、减少成本及合理利用资源。In the above-mentioned technical scheme, by setting the judging module in the redirection device to detect whether the Internet private telephone exchange breaks down, and according to the detection result, the redirection module instructs the terminal to conduct communication to the Internet private telephone exchange or the media gateway when it needs to communicate. Communication, so that when the terminal cannot communicate with the Internet private telephone exchange, it can communicate with the alternative network through the media gateway, realizing the escape function of the terminal; and because the media gateway can communicate with the alternative network (such as PSTN network, GSM network, CDMA network, etc.) and IP network to provide seamless interconnection, so the terminal only needs to set up a network cable instead of a telephone line, and the enterprise side only needs to set up a VOIP device instead of a PSTN device, which can greatly simplify the networking method. Reduce costs and rationally utilize resources.

所述重定向装置可设置于所述终端中。所述重定向装置还可包括第一地址保存模块,与所述重定向模块连接,用于预先保存所述互联网专用电话交换机的IP地址以及所述媒体网关的IP地址。The redirection device can be set in the terminal. The redirecting device may further include a first address storage module connected to the redirection module and configured to pre-save the IP address of the IPBX and the IP address of the media gateway.

所述重定向装置也可设置于所述媒体网关中。所述重定向模块用于在接收到终端发送的呼叫经由互联网电话交换机进行通信的请求后,判断所述终端与所述互联网电话交换机之间的通信链路是否中断,如果中断则将所述终端连接到备选网络进行通信。The redirection device can also be set in the media gateway. The redirection module is configured to determine whether the communication link between the terminal and the Internet telephone exchange is interrupted after receiving a call sent by the terminal to communicate via the Internet telephone exchange, and if interrupted, send the terminal to the Internet telephone exchange. Connect to an alternate network for communication.

所述重定向装置也可独立地设置于IP网络中;所述重定向模块用于在接收到终端发送的呼叫经由互联网电话交换机进行通信的请求后,判断所述终端与所述互联网电话交换机之间的通信链路是否中断,如果中断则向所述终端返回预先保存的媒体网关的IP地址;所述终端利用所述媒体网关的IP地址通过所述媒体网关连接到备用网络。The redirection device can also be independently set in the IP network; the redirection module is used to judge the connection between the terminal and the Internet telephone exchange after receiving a request from the terminal to communicate via the Internet telephone exchange. Whether the communication link between them is interrupted, if interrupted, return the IP address of the media gateway saved in advance to the terminal; the terminal uses the IP address of the media gateway to connect to the standby network through the media gateway.

所述判断模块可包括检测模块,与所述互联网专用电话交换机连接,用于定时地向所述互联网专用电话交换机发送数据包,以检测所述互联网专用电话交换机是否发生故障。The judging module may include a detection module, which is connected to the IPBX, and is used to regularly send data packets to the IPBX, so as to detect whether the IPBX fails.

综上所述,本发明通过在终端与互联网专用电话交换机无法进行通信时,使终端经由媒体网关连接到备选网络进行通信,从而利用媒体网关能够实现备选网络(如PSTN网络、GSM网络、CDMA网络等)与IP网络的无缝连接的功能,使得在实现终端的逃生功能的同时,只需为终端设置网线而无需布电话线,极大地简化了组网方式、减少了成本,并合理地利用了资源。In summary, the present invention enables the terminal to connect to the alternative network via the media gateway for communication when the terminal cannot communicate with the Internet private telephone exchange, so that the alternative network (such as PSTN network, GSM network, The function of seamless connection between CDMA network, etc.) and IP network makes it possible to realize the escape function of the terminal, and at the same time, it only needs to set up a network cable for the terminal instead of a telephone line, which greatly simplifies the networking mode, reduces the cost, and is reasonable efficient use of resources.

附图说明Description of drawings

图1为现有技术中终端在IP网络中通信的方法的组网示意图;FIG. 1 is a schematic diagram of a network in which a terminal communicates in an IP network in the prior art;

图2为本发明终端在IP网络中通信的方法实施例一的流程示意图;FIG. 2 is a schematic flow diagram of Embodiment 1 of a method for a terminal to communicate in an IP network according to the present invention;

图3为本发明终端在IP网络中通信的方法实施例二的流程示意图;FIG. 3 is a schematic flow diagram of Embodiment 2 of a method for a terminal communicating in an IP network according to the present invention;

图4为本发明终端在IP网络中通信的方法实施例三的流程示意图;FIG. 4 is a schematic flowchart of Embodiment 3 of a method for a terminal communicating in an IP network according to the present invention;

图5为本发明终端在IP网络中通信的方法实施例四的流程示意图;FIG. 5 is a schematic flowchart of Embodiment 4 of a method for a terminal communicating in an IP network according to the present invention;

图6为本发明重定向装置的实施例一的结构示意图;FIG. 6 is a schematic structural diagram of Embodiment 1 of the redirection device of the present invention;

图7为本发明重定向装置的实施例二的结构示意图;FIG. 7 is a schematic structural diagram of Embodiment 2 of the redirection device of the present invention;

图8为本发明重定向装置的实施例三的组网示意图;FIG. 8 is a schematic diagram of a network of Embodiment 3 of a redirection device according to the present invention;

图9为本发明重定向装置的实施例四的组网示意图;FIG. 9 is a schematic diagram of a network of Embodiment 4 of a redirection device according to the present invention;

图10为本发明重定向装置的实施例五的组网示意图。FIG. 10 is a schematic diagram of a network of Embodiment 5 of a redirection device according to the present invention.

具体实施方式Detailed ways

下面结合附图和实施例,对本发明的技术方案做进一步的详细描述。The technical solutions of the present invention will be described in further detail below in conjunction with the accompanying drawings and embodiments.

本发明的基本构思为:针对现有技术中在实现终端的逃生功能时,终端需要同时布电话线及网线,在企业端也同时需要设置PSTN设备及VOIP设备,从而增加了组网复杂度及成本,也极大浪费资源的缺陷,提供一种终端在IP网络中通信的方法及相应的重定向装置,在终端无法与互联网专用电话交换机进行通信时,将终端的呼叫重定向到预设的媒体网关,由媒体网关将终端连接到备选网络进行通信。由于媒体网关能够实现IP网络与备选网络(如PSTN网络、GSM网络、CDMA网络等)的无缝连接,因此终端无需设置电话线只需布网线,企业端也无需PSTN设备而只需设置VOIP设备,从而在终端在IP网络中通信功能的同时,极大地简化了组网方式、减少了成本及合理地利用了资源。The basic idea of the present invention is: in the prior art, when realizing the escape function of the terminal, the terminal needs to arrange telephone lines and network cables at the same time, and PSTN equipment and VOIP equipment also need to be installed at the enterprise end, thereby increasing the complexity of networking and The cost is also a great waste of resources. A method for terminal communication in an IP network and a corresponding redirection device are provided. When the terminal cannot communicate with the Internet dedicated telephone exchange, the call of the terminal is redirected to the preset The media gateway connects the terminal to an alternative network for communication by the media gateway. Since the media gateway can realize the seamless connection between IP network and alternative network (such as PSTN network, GSM network, CDMA network, etc.), the terminal does not need to set up telephone lines but only needs to deploy network cables, and the enterprise side does not need PSTN equipment but only needs to set up VOIP equipment, so that while the terminal communicates in the IP network, it greatly simplifies the networking mode, reduces the cost and rationally utilizes the resources.

基于上述发明构思,本发明提供了一种终端在IP网络中通信的方法,参见图2所示的实施例一的流程示意图,首先在步骤101中,当终端发起经由互联网电话交换机进行通信的请求时,判断终端是否能够与预设的互联网专用电话交换机进行通信,是则执行步骤102即终端通过所述互联网专用电话交换机进行通信后结束,否则执行步骤103即终端通过预设的媒体网关连接到备选网络进行通信后结束。Based on the above inventive concept, the present invention provides a method for a terminal to communicate in an IP network. Referring to the flow chart of Embodiment 1 shown in FIG. 2 , first in step 101, when the terminal initiates a , judge whether the terminal can communicate with the preset Internet private telephone exchange, if so, execute step 102, that is, the terminal communicates through the Internet private telephone exchange, and then end; otherwise, execute step 103, that is, the terminal connects to the Internet through the preset media gateway End after the alternate network has communicated.

本实施例一中,终端在无法与互联网专用电话交换机进行通信时,通过媒体网关连接到备选网络进行通信,从而实现了终端的逃生功能;由于媒体网关设备能够完成备选网络侧与IP分组网络侧媒体流的转换,实现备选网络与IP网络的互通,在备选网络及IP网络间提供无缝互联,因此通过上述技术方案,终端只需经由网线和IP网络与互联网专用电话交换机及媒体网关连接,而不需设置电话线,企业端也只需设置VOIP设备而无需设置PSTN设备,从而能够极大地简化组网方式、减少成本及合理利用资源。In the first embodiment, when the terminal cannot communicate with the Internet private telephone exchange, the terminal is connected to the alternative network through the media gateway to communicate, thereby realizing the escape function of the terminal; since the media gateway device can complete the alternative network side and the IP packet The conversion of the media stream on the network side realizes the intercommunication between the alternative network and the IP network, and provides seamless interconnection between the alternative network and the IP network. Therefore, through the above technical solution, the terminal only needs to connect to the Internet private telephone exchange and the Internet through the network cable and the IP network. The media gateway connection does not need to set up telephone lines, and the enterprise side only needs to set up VOIP equipment instead of PSTN equipment, which can greatly simplify the networking mode, reduce costs and rationally utilize resources.

上述实施例一中,在步骤101之前还可包括:终端定时地向互联网专用电话交换机发送数据包,用于检测终端是否能够与互联网专用电话交换机进行通信。通过定时地向互联网专用电话交换机发送数据包,终端能够及时获知与互联网专用电话交换机的通信是否畅通;所述步骤101可具体包括:根据所述检测互联网电话交换机是否发生故障的结果获知终端是否能够与预设的互联网专用电话交换机进行通信,而无需再发送数据包进行检测,从而能够减少进行通信的时延。In the first embodiment above, before step 101, the method may further include: the terminal periodically sends data packets to the IPBX to detect whether the terminal can communicate with the IPBX. By regularly sending data packets to the Internet private telephone exchange, the terminal can know in time whether the communication with the Internet private telephone exchange is unimpeded; the step 101 may specifically include: knowing whether the terminal can Communicate with the preset Internet private telephone exchange without sending data packets for detection, so that the delay in communication can be reduced.

参见图3所示的本发明终端在IP网络中通信的方法的实施例二的流程示意图,与上述实施例一的区别在于,在步骤101之前还包括步骤100a即所述终端预先保存所述预设的互联网专用电话交换机的IP地址以及所述媒体网关的IP地址。通过预先保存互联网专用电话交换机的IP地址及媒体网关的IP地址,终端可利用所述互联网电话交换机的IP地址向所述互联网电话交换机发送呼叫请求,如果终端接收到所述互联网电话交换机返回的故障消息或接受不到所述互联网电话机的响应消息,确定本终端与所述互联网电话机不能进行通信,则利用所述媒体网关的IP地址通过所述媒体网关连接到备选网络进行通信。Referring to the schematic flowchart of Embodiment 2 of the method for terminal communication in the IP network of the present invention shown in FIG. The IP address of the Internet private telephone exchange set up and the IP address of the media gateway. By saving the IP address of the Internet private telephone exchange and the IP address of the media gateway in advance, the terminal can use the IP address of the Internet telephone exchange to send a call request to the Internet telephone exchange, if the terminal receives the fault returned by the Internet telephone exchange message or the response message from the Internet phone is not received, and it is determined that the terminal cannot communicate with the Internet phone, then use the IP address of the media gateway to connect to an alternative network through the media gateway for communication.

上述实施例二提供了终端本身对是否能够与互联网专用电话交换机进行通信进行判断并选择相应的呼叫对象的实施方式,这种实施方式的优点在于,能够准确地对终端与互联网专用电话交换机之间的通信状况作出判断,并且终端之间互不影响。下面在本发明终端在IP网络中通信的实施例三中,进一步提供由媒体网关来执行所述判断及选择的操作的实施方式。The above-mentioned second embodiment provides an implementation mode in which the terminal itself judges whether it can communicate with the Internet private telephone exchange and selects the corresponding call object. Judgments are made based on the communication status of the terminal, and the terminals do not affect each other. In the third embodiment of the present invention in which the terminal communicates in the IP network, an implementation manner in which the media gateway performs the judgment and selection is further provided below.

图4为本发明终端在IP网络中通信的方法的实施例三的流程示意图,包括以下步骤:首先在步骤201中,终端利用预先保存的媒体网关的IP地址向所述媒体网关发送呼叫经由互联网电话交换机进行通信的请求;然后在步骤202中,媒体网关接收到所述请求后,判断所述终端与所述互联网专用电话交换机之间的通信链路是否中断,是则执行步骤203即将该终端连接到备选网络进行通信后结束;否则执行步骤204即媒体网关向所述终端发送包括该互联网专用电话交换机的IP地址的消息,然后执行步骤205即终端通过所述互联网专用电话交换机进行通信。本实施例中,终端在需要进行通信时向预设的媒体网关发送呼叫消息,由媒体网关来判断终端与互联网专用电话交换机之间是否能够通信,如果能通信则指示终端向互联网专用电话交换机进行通信,如果不能通信则直接将终端连接到备选网络进行通信。Fig. 4 is a schematic flowchart of Embodiment 3 of the method for terminal communication in an IP network according to the present invention, which includes the following steps: first, in step 201, the terminal uses the IP address of the media gateway saved in advance to send a call to the media gateway via the Internet A request for communication by the telephone exchange; then in step 202, after the media gateway receives the request, it is judged whether the communication link between the terminal and the Internet private telephone exchange is interrupted, and if so, step 203 is executed to make the terminal End after connecting to the alternative network for communication; otherwise, execute step 204, that is, the media gateway sends a message including the IP address of the IPBX to the terminal, and then execute step 205, that is, the terminal communicates through the IPBX. In this embodiment, the terminal sends a call message to the preset media gateway when it needs to communicate, and the media gateway judges whether the terminal can communicate with the Internet private telephone exchange. Communication, if communication is not possible, directly connect the terminal to an alternative network for communication.

上述实施例三中,在步骤201之前还可包括:预设的媒体网关定时地向互联网专用电话交换机发送数据包,用于检测互联网专用电话交换机是否发生故障。通过定时地向互联网专用电话交换机发送数据包,媒体网关能够及时获知互联网专用电话交换机是否发生故障;所述步骤201可具体包括:据所述检测互联网电话交换机是否发生故障的结果获知终端是否能够与预设的互联网专用电话交换机进行通信,而无需再发送数据包进行检测,从而能够减少进行通信的时延。In the third embodiment above, before step 201, it may further include: the preset media gateway periodically sends data packets to the IPBX to detect whether the IPBX fails. By regularly sending data packets to the Internet private telephone exchange, the media gateway can know in time whether the Internet private telephone exchange breaks down; the step 201 may specifically include: according to the result of detecting whether the Internet telephone exchange breaks down, it is known whether the terminal can communicate with the Internet private telephone exchange The preset Internet private telephone exchange communicates without sending data packets for detection, so that the delay in communication can be reduced.

上述实施例三中还可包括:所述预设的媒体网关预先保存所述预设的互联网专用电话交换机的IP地址。如果所述终端与互联网电话交换机能进行通信,所述媒体网关向所述终端返回预先保存的互联网电话交换机的IP地址。所述终端可利用媒体网关返回的互联网电话交换机的IP地址向互联网电话交换机发起呼叫。此外,所述终端也可以预先保存互联网电话交换机的IP地址,则媒体网关在终端与互联网电话交换机能进行通信时不需向终端发送该IP地址。The third embodiment above may further include: the preset media gateway pre-saves the IP address of the preset Internet-based telephone exchange. If the terminal can communicate with the Internet telephone exchange, the media gateway returns the pre-saved IP address of the Internet telephone exchange to the terminal. The terminal can use the IP address of the Internet telephone exchange returned by the media gateway to initiate a call to the Internet telephone exchange. In addition, the terminal may also store the IP address of the Internet telephone exchange in advance, so the media gateway does not need to send the IP address to the terminal when the terminal and the Internet telephone exchange can communicate.

上述实施例三提供了在终端进行通信时由媒体网关来判断互联网专用电话交换机的状态并选择呼叫对象的实施方式,这种实施方式的优点在于不需要对终端的功能进行改造,并且一个媒体网关可以支持多个终端,从而方便实施;但相对于上述实施例二中由终端本身来执行判断和选择操作的实施方式来说,上述实施例三提供的实施方式只能判断互联网专用电话交换机是否发生故障而不能判断互联网专用电话交换机与终端间的通信链路是否发生故障,并且在媒体网关发生故障时会对多个终端的逃生功能产生影响。下面进一步提供由在IP网络中独立设置的重定向装置来执行所述判断和选择操作的实施方式。The third embodiment above provides an implementation mode in which the media gateway judges the state of the Internet private telephone exchange and selects the call object when the terminal communicates. The advantage of this implementation mode is that it does not need to modify the functions of the terminal, and a media gateway Multiple terminals can be supported, thereby facilitating implementation; but compared to the implementation mode in which the terminal itself performs the judgment and selection operation in the above-mentioned embodiment 2, the implementation mode provided in the above-mentioned embodiment 3 can only judge whether an Internet private telephone exchange has occurred If there is a failure, it cannot be judged whether the communication link between the Internet private telephone exchange and the terminal fails, and when the media gateway fails, it will affect the escape function of multiple terminals. The following further provides an implementation manner in which the judging and selecting operations are performed by a redirecting device independently installed in the IP network.

图5为本发明终端在IP网络中通信的方法实施例四的流程示意图,包括以下步骤,首先在步骤301中,终端利用预先保存的重定向装置的IP地址向所述重定向装置发送呼叫经由互联网电话交换机进行通信的请求;然后在步骤302中,所述重定向装置接收到所述请求后,判断所述终端与所述互联网专用电话交换机之间的通信链路是否中断,是则执行步骤303即向该终端发送包括所述媒体网关的IP地址的消息,然后执行步骤304即终端通过预设的媒体网关连接到备选网络进行通信后结束;否则执行步骤305即向所述终端发送包括该互联网专用电话交换机的IP地址的消息,然后执行步骤306即终端通过所述互联网专用电话交换机进行通信。Fig. 5 is a schematic flowchart of Embodiment 4 of the method for terminal communication in an IP network according to the present invention, which includes the following steps. First, in step 301, the terminal sends a call to the redirection device by using the IP address of the redirection device saved in advance. Internet telephone exchange request for communication; then in step 302, after receiving the request, the redirecting device judges whether the communication link between the terminal and the Internet private telephone exchange is interrupted, and if so, executes the step Step 303 is to send a message including the IP address of the media gateway to the terminal, and then execute step 304, that is, the terminal is connected to an alternative network through the preset media gateway to complete the communication; otherwise, execute step 305 to send a message including The message of the IP address of the Internet private telephone exchange, and then execute step 306, that is, the terminal communicates through the Internet private telephone exchange.

上述实施例四中,在步骤301之前还可包括:重定向装置定时地向互联网专用电话交换机发送数据包,用于检测互联网专用电话交换机是否发生故障。通过定时地向互联网专用电话交换机发送数据包,重定向装置能够及时获知互联网专用电话交换机是否发生故障;所述步骤301可具体包括:根据所述检测互联网电话交换机是否发生故障的结果获知终端是否能够与预设的互联网专用电话交换机进行通信,而无需再发送数据包进行检测,从而能够减少进行通信的时延。In the fourth embodiment above, before step 301, it may further include: the redirection device periodically sends data packets to the Internet private telephone exchange for detecting whether the Internet private telephone exchange fails. By regularly sending data packets to the Internet private telephone exchange, the redirecting device can know in time whether the Internet private telephone exchange breaks down; the step 301 may specifically include: according to the result of detecting whether the Internet telephone exchange breaks down, it is known whether the terminal can Communicate with the preset Internet private telephone exchange without sending data packets for detection, so that the delay in communication can be reduced.

上述实施例四中还可包括:所述重定向装置预先保存所述预设的互联网专用电话交换机的IP地址以及所述媒体网关的IP地址。如果所述终端与互联网电话交换机能进行通信,所述重定向装置向所述终端返回预先保存的互联网电话交换机的IP地址。所述终端可利用重定向装置返回的互联网电话交换机的IP地址向互联网电话交换机发起呼叫。所述终端也可预先保存互联网电话交换机的IP地址,则重定向装置在终端与互联网电话交换机能进行通信时不需向终端发送该IP地址。The fourth embodiment above may further include: the redirecting device pre-saves the preset IP address of the IPBX and the IP address of the media gateway. If the terminal can communicate with the Internet telephone exchange, the redirection device returns the IP address of the Internet telephone exchange stored in advance to the terminal. The terminal can use the IP address of the Internet telephone exchange returned by the redirection device to initiate a call to the Internet telephone exchange. The terminal can also store the IP address of the Internet telephone exchange in advance, so the redirection device does not need to send the IP address to the terminal when the terminal and the Internet telephone exchange can communicate.

上述实施例四提供了在终端进行通信时由重定向装置来判断互联网专用电话交换机的状态并选择呼叫对象的实施方式,这种实施方式的优点在于不需要对终端或媒体网关的功能进行改造,并且一个重定向装置可以支持多个终端,从而方便实施。但相对于上述实施例二中由终端本身来执行判断和选择操作的实施方式来说,上述实施例四提供的实施方式只能判断互联网专用电话交换机是否发生故障而不能判断互联网专用电话交换机与终端间的通信链路是否发生故障,并且在重定向装置发生故障时会对多个终端的逃生功能产生影响。The fourth embodiment above provides an implementation in which the redirection device judges the state of the Internet private telephone exchange and selects the call object when the terminal communicates. The advantage of this implementation is that it does not need to modify the functions of the terminal or the media gateway. And one redirecting device can support multiple terminals, thus facilitating implementation. However, compared to the embodiment in which the terminal itself performs the judgment and selection operation in the second embodiment above, the embodiment provided in the fourth embodiment can only judge whether the IPBX is out of order and cannot judge whether the IPBX is connected to the terminal. Whether the communication link between them fails, and when the redirection device fails, it will affect the escape function of multiple terminals.

上述实施例一至四提供了本发明终端在IP网络中通信的方法的各种实施方式,并且对各种实施方式的优缺点分别进行了说明,本领域的普通技术人员可以根据实际应用场景灵活选用上述实施方式,或者对上述实施方式进行组合,其均应在本发明技术方案所要求保护的范围之内。The above-mentioned embodiments 1 to 4 provide various implementations of the method for the terminal to communicate in the IP network of the present invention, and respectively explain the advantages and disadvantages of the various implementations. Those skilled in the art can flexibly select the method according to the actual application scenario. The above-mentioned implementation modes, or a combination of the above-mentioned implementation modes, should all be within the scope of protection claimed by the technical solution of the present invention.

可选地,本发明所提供的终端在IP网络中通信的方法中,终端与媒体网关之间、以及终端与重定向装置之间可以通过SIP协议进行交互。下面对SIP协议作简要说明:Optionally, in the method for the terminal to communicate in the IP network provided by the present invention, the interaction between the terminal and the media gateway, and between the terminal and the redirection device can be performed through the SIP protocol. The following is a brief description of the SIP protocol:

SIP(会话初始协议)的开发目的是用来帮助提供跨越因特网的高级电话业务。作为多媒体通信的应用层控制(信令)协议,SIP协议能够建立、改变和终止多媒体会话。在SIP协议中有两个主要的组成部分:用户代理(UA)和网络服务器。用户代理(UA)又分为发起SIP请求的用户代理客户机(UAC)和响应这种请求的用户代理服务器(UAS)。网络服务器又分为:重定向服务器、代理服务器、注册服务器。SIP (Session Initiation Protocol) was developed to help provide advanced telephony services across the Internet. As an application layer control (signalling) protocol for multimedia communication, the SIP protocol can establish, change and terminate multimedia sessions. There are two main components in the SIP protocol: the user agent (UA) and the web server. The user agent (UA) is further divided into a user agent client (UAC) that initiates a SIP request and a user agent server (UAS) that responds to such a request. Web servers are further divided into: redirection servers, proxy servers, and registration servers.

通常的SIP操作涉及到一个SIP用户代理客户机(UAC)发起一个请求,一个SIP代理服务器作为终端用户的位置发现代理并且一个用户代理服务器(UAS)接受这个呼叫。一个成功的SIP邀请包括两个请求信息:INVITE信息和ACK信息。当一用户希望呼叫另一用户,呼叫者用INVITE请求初始呼叫,请求包含足够的信息用以被呼叫方参与会话。Typical SIP operation involves a SIP User Agent Client (UAC) making a request, a SIP Proxy Server acting as a location discovery agent for the end user and a User Agent Server (UAS) accepting the call. A successful SIP invitation includes two request messages: INVITE message and ACK message. When a user wishes to call another user, the caller uses INVITE to request an initial call, and the request contains sufficient information for the called party to participate in the session.

重定向服务器接收请求,但不是将这些请求传递给下一服务器而是向呼叫者发送响应以指示被呼叫用户的地址。这使得呼叫者可以直接联系在下一服务器上被呼叫方的地址。重定向服务器通过回送包含被叫者位置的SIP-URL(SIPUniform Resource Locations,SIP统一资源定位,如:sip:user@host.domain)来处理INVITE信息。代理服务器则完成SIP请求和响应的应用层路由。注册服务器用于记录用户的SIP-URL地址信息和其对应的IP地址信息。The redirect server receives requests, but instead of passing them on to the next server, it sends a response to the caller indicating the address of the called user. This allows the caller to directly contact the called party's address on the next server. The redirection server processes the INVITE message by sending back a SIP-URL (SIPUniform Resource Locations, SIP uniform resource location, such as: sip:user@host.domain) containing the location of the callee. The proxy server completes the application layer routing of SIP requests and responses. The registration server is used to record the user's SIP-URL address information and its corresponding IP address information.

有两种类型的SIP消息:从客户机发到服务器的请求消息以及从服务器发到客户机的响应消息。There are two types of SIP messages: request messages from the client to the server and response messages from the server to the client.

SIP定义了下述方法:SIP defines the following methods:

INVITE——邀请用户加入呼叫。INVITE - Invites the user to join a call.

BYE——终止一呼叫上的两个用户之间的呼叫。BYE - Terminates a call between two users on a call.

OPTIONS——请求关于服务器能力的信息。OPTIONS - Request information about server capabilities.

ACK——确认客户机已经接收到对INVITE的最终响应。ACK - Acknowledgment that the client has received the final response to the INVITE.

REGISTER——提供地址解析的映射,让服务器知道其它用户的位置。REGISTER - Provides a mapping of address resolution, allowing the server to know where other users are.

INFO——用于会话中信令。INFO - used for in-session signaling.

下面对终端与重定向装置之间通过SIP协议进行通信的流程作举例说明:The following is an example of the communication process between the terminal and the redirecting device through the SIP protocol:

终端向重定向装置发送INVITE消息,重定向装置收到终端发来的INVITE消息后首先判断IPPBX是否发生故障,如果互联网专用电话交换机未发生故障,则向终端回复重定向响应(3xx)消息,其中的Contact头域值为IPPBX的地址,这样终端收到该消息后就会向IPPBX发送INVITE消息发起正常呼叫;如果IPPBX发生故障,则重定向装置向终端回复的重定向响应(3XX)消息中的Contact头域值为媒体网关的地址,这样终端收到该响应消息后就会向媒体网关发送INVITE消息以进行通信。The terminal sends an INVITE message to the redirecting device. After receiving the INVITE message from the terminal, the redirecting device first judges whether the IPPBX fails. If the Internet private telephone exchange does not fail, it returns a redirection response (3xx) message to the terminal, wherein The Contact header field value is the address of IPPBX, so that the terminal will send an INVITE message to IPPBX to initiate a normal call after receiving the message; if the IPPBX fails, the redirection device will reply to the terminal in the redirection response (3XX) message The value of the Contact header field is the address of the media gateway, so that after receiving the response message, the terminal will send an INVITE message to the media gateway for communication.

基于上述发明构思,本发明还提供了一种重定向装置,参见图6所示的实施例一的结构示意图,重定向装置3包括:判断模块4,与互联网专用电话交换机连接,用于当终端发起经由互联网电话交换机进行通信的请求时,判断终端是否能够与所述互联网电话交换机进行通信;重定向模块5,与判断模块4及所述终端连接,用于:根据判断模块的判断结果指示终端的操作,在终端不能与互联网专用电话交换机进行通信时指示终端通过预设的媒体网关连接到备选网络进行通信。Based on the above inventive concept, the present invention also provides a redirection device. Referring to the schematic structural diagram of Embodiment 1 shown in FIG. When initiating a request for communication via the Internet telephone exchange, it is judged whether the terminal can communicate with the Internet telephone exchange; the redirection module 5 is connected with the judgment module 4 and the terminal, and is used to: instruct the terminal according to the judgment result of the judgment module The operation of instructing the terminal to connect to the alternative network through the preset media gateway for communication when the terminal cannot communicate with the Internet private telephone exchange.

本实施例一中,通过在重定向装置中设置判断模块4来检测互联网专用电话交换机是否发生故障,并通过重定向模块5来根据检测结果指示终端在需要进行通信时向互联网专用电话交换机或媒体网关进行通信,从而使得终端在无法与互联网专用电话交换机进行通信时,能够通过媒体网关连接到备选网络进行通信,实现了终端的逃生功能;并且由于媒体网关能够在备选网络及IP网络间提供无缝互联,因此终端只需设置网线而无需布电话线,企业端也只需设置VOIP设备而无需设置PSTN设备,从而能够极大地简化组网方式、减少成本及合理利用资源。In the present embodiment one, by setting judgment module 4 in the redirecting device, detect whether the Internet private telephone exchange breaks down, and instruct the terminal to send Internet special telephone exchange or media to the Internet private telephone exchange or the media according to the detection result by redirection module 5. The gateway communicates, so that when the terminal cannot communicate with the Internet private telephone exchange, it can communicate with the alternative network through the media gateway, realizing the escape function of the terminal; and because the media gateway can communicate between the alternative network and the IP network Provide seamless interconnection, so the terminal only needs to set up the network cable instead of the telephone line, and the enterprise side only needs to set up the VOIP device instead of the PSTN device, which can greatly simplify the networking method, reduce the cost and make reasonable use of resources.

参见图7所示的实施例二的结构示意图,与上述实施例一的区别在于:判断模块4包括检测模块41,与所述互联网专用电话交换机连接,用于定时地向所述互联网专用电话交换机发送数据包,以检测所述互联网专用电话交换机是否发生故障。通过定时地向互联网专用电话交换机发送数据包,媒体网关能够及时获知互联网专用电话交换机是否发生故障,并在需要进行通信时的判断操作中可以根据先前获知的信息来进行判断,而无需再发送数据包进行检测,从而能够减少进行通信的时延。Referring to the schematic structural diagram of the second embodiment shown in Figure 7, the difference from the first embodiment is that the judging module 4 includes a detection module 41, which is connected to the dedicated Internet telephone exchange, and is used to regularly report to the dedicated Internet telephone exchange. A data packet is sent to detect whether the Internet private telephone exchange fails. By regularly sending data packets to the Internet private telephone exchange, the media gateway can know in time whether the Internet private telephone exchange fails, and can make a judgment based on the previously known information in the judgment operation when communication is required, without sending data again Packet detection, which can reduce the communication delay.

本发明提供的重定向装置可根据实际应用场景的需求设置于终端或媒体网关中,或者独立地设置于IP网络中。The redirection device provided by the present invention can be set in a terminal or a media gateway according to requirements of actual application scenarios, or set independently in an IP network.

重定向装置可设置在终端中,使终端本身对是否能够与互联网专用电话交换机进行通信进行判断并选择相应的呼叫对象的实施方式。这种实施方式的优点在于,能够准确地对终端与互联网专用电话交换机之间的通信状况作出判断,并且终端之间互不影响。参见图8所示的本发明重定向装置的实施例三的组网示意图,与上述实施例一的区别在于,重定向装置3还可包括地址保存模块8,与重定向模块5连接,用于预先保存互联网专用电话交换机1的IP地址。上述实施例三提供了将重定向装置设置在终端中,由终端本身对是否能够与互联网专用电话交换机进行通信进行判断并选择相应的呼叫对象的实施方式。The redirecting device can be set in the terminal, so that the terminal itself can judge whether it can communicate with the Internet private telephone exchange and select the corresponding calling object. The advantage of this embodiment is that it can accurately judge the communication status between the terminal and the Internet private telephone exchange, and the terminals do not affect each other. Referring to the schematic diagram of the networking of the third embodiment of the redirection device of the present invention shown in FIG. The IP address of the Internet private telephone exchange 1 is stored in advance. The third embodiment above provides an embodiment in which the redirection device is set in the terminal, and the terminal itself judges whether it can communicate with the IPBX and selects the corresponding call object.

重定向装置也可设置在媒体网关中,从而在终端进行通信时由媒体网关来判断互联网专用电话交换机的状态并选择呼叫对象的实施方式,这种实施方式的优点在于不需要对终端的功能进行改造,并且一个媒体网关可以支持多个终端,从而方便实施。参见图9所示的本发明重定向装置的实施例四的组网示意图,重定向装置3设置于媒体网关6中,与上述实施例一的区别在于所述重定向模块用于在接收到终端发送的呼叫经由互联网电话交换机进行通信的请求后,判断所述终端与所述互联网电话交换机之间的通信链路是否中断,如果中断则将所述终端连接到备选网络进行通信;重定向装置3还可包括地址保存模块8,与重定向模块5连接,用于预先保存互联网专用电话交换机1的IP地址。相对于上述实施例三中由终端本身来执行判断和选择操作的实施方式来说,上述实施例四所提供的实施方式只能判断互联网专用电话交换机是否发生故障而不能判断互联网专用电话交换机与终端间的通信链路是否发生故障,并且在媒体网关发生故障时会对多个终端的逃生功能产生影响。The redirection device can also be set in the media gateway, so that when the terminal communicates, the media gateway can judge the state of the Internet private telephone exchange and select the implementation mode of the call object. Transformation, and a media gateway can support multiple terminals, which facilitates implementation. Referring to the schematic diagram of the network of the fourth embodiment of the redirection device of the present invention shown in FIG. 9, the redirection device 3 is set in the media gateway 6. After the sent call requests for communication via the Internet telephone exchange, it is judged whether the communication link between the terminal and the Internet telephone exchange is interrupted, and if interrupted, the terminal is connected to an alternative network for communication; redirection means 3 may also include an address saving module 8, which is connected to the redirection module 5, and is used to pre-save the IP address of the Internet private telephone exchange 1. Compared with the embodiment in which the terminal itself performs the judgment and selection operation in the third embodiment above, the embodiment provided in the fourth embodiment can only judge whether the IPBX is out of order and cannot judge whether the IPBX is connected to the terminal. Whether the communication link between them fails, and when the media gateway fails, it will affect the escape function of multiple terminals.

重定向装置也可独立设置在IP网络中以执行所述判断和选择操作的实施方式。图10为本发明重定向装置的实施例五的组网示意图,重定向装置3独立地设置于IP网络中;与上述实施例一的区别在于所述重定向模块用于在接收到终端发送的呼叫经由互联网电话交换机进行通信的请求后,判断所述终端与所述互联网电话交换机之间的通信链路是否中断,如果中断则向所述终端返回预先保存的媒体网关的IP地址;所述终端利用所述媒体网关的IP地址通过所述媒体网关连接到备用网络;重定向装置3还可包括地址保存模块8,与重定向模块5连接,用于预先保存互联网专用电话交换机1的IP地址。上述实施例五提供了将重定向装置独立地设置在IP网络中,从而在终端进行通信时由重定向装置来判断互联网专用电话交换机的状态并选择呼叫对象的实施方式,这种实施方式的优点在于不需要对终端或媒体网关的功能进行改造,并且一个重定向装置可以支持多个终端,从而方便实施;但相对于上述实施例三中由终端本身来执行判断和选择操作的实施方式来说,上述实施例五所提供的实施方式只能判断互联网专用电话交换机是否发生故障而不能判断互联网专用电话交换机与终端间的通信链路是否发生故障,并且在重定向装置发生故障时会对多个终端的逃生功能产生影响。The redirecting device can also be independently set in the IP network to perform the implementation of the judgment and selection operation. FIG. 10 is a schematic diagram of the networking of Embodiment 5 of the redirection device of the present invention. The redirection device 3 is independently set in the IP network; the difference from the first embodiment above is that the redirection module is used to receive the After calling a request for communication via the Internet telephone exchange, it is judged whether the communication link between the terminal and the Internet telephone exchange is interrupted, and if interrupted, the IP address of the media gateway saved in advance is returned to the terminal; the terminal Utilize the IP address of described media gateway to be connected to standby network through described media gateway; Redirection device 3 can also comprise address preservation module 8, be connected with redirection module 5, be used for preserving the IP address of Internet private telephone exchange 1. The fifth embodiment above provides an embodiment in which the redirection device is independently set in the IP network, so that the redirection device can judge the state of the Internet private telephone exchange and select the call object when the terminal communicates. The advantages of this embodiment The reason is that there is no need to modify the functions of terminals or media gateways, and one redirection device can support multiple terminals, which is convenient for implementation; but compared to the implementation mode in which the terminal itself performs the judgment and selection operations in the third embodiment , the implementation provided by the above-mentioned fifth embodiment can only judge whether the Internet private telephone exchange fails and cannot judge whether the communication link between the Internet private telephone exchange and the terminal fails, and when the redirection device fails, multiple terminals will be affect the escape function.

上述本发明重定向装置的实施例提供了本发明重定向装置的各种实施方式,并且对各种实施方式的优缺点分别进行了说明,本领域的普通技术人员可以根据实际应用场景灵活选用上述实施方式,或者对上述实施方式进行组合,其均应在本发明技术方案所要求保护的范围之内。The above-mentioned embodiments of the redirection device of the present invention provide various implementations of the redirection device of the present invention, and respectively explain the advantages and disadvantages of various implementations. Those skilled in the art can flexibly select the above-mentioned redirection device according to the actual application scenario. The implementation manner, or the combination of the above implementation manners, shall be within the scope of protection claimed by the technical solution of the present invention.

以上实施例仅用以说明本发明的技术方案,而非对本发明作限制性理解。尽管参照上述较佳实施例对本发明进行了详细说明,本领域的普通技术人员应当理解:其依然可以对本发明的技术方案进行修改或者等同替换,而这种修改或者等同替换并不脱离本发明技术方案的精神和范围。The above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit understanding of the present invention. Although the present invention has been described in detail with reference to the above-mentioned preferred embodiments, those skilled in the art should understand that: it can still modify or replace the technical solution of the present invention, and such modification or replacement does not depart from the technology of the present invention. The spirit and scope of the programme.

Claims (12)

1, a kind of terminal method for communicating in IP network, it is characterized in that, comprise: when request that terminal is initiated to communicate via the Internet Protocol telephone switch, judge whether terminal can communicate with described Internet Protocol telephone switch, if could not described terminal would be connected to alternative network by default media gateway communicates.
2, method according to claim 1 is characterized in that, described method specifically comprises:
Terminal is preserved the IP address of Internet Protocol telephone switch and the IP address of media gateway in advance; Described terminal utilizes the IP address of described Internet Protocol telephone switch to send call request to described Internet Protocol telephone switch, if terminal receives failure message that described Internet Protocol telephone switch returns or the response message that can't accept described Internet Telephone, determine that this terminal and described Internet Telephone can not communicate, then utilize the IP address of described media gateway to be connected to alternative network and communicate by described media gateway.
3, method according to claim 1 is characterized in that, described method specifically comprises:
Terminal is preserved the IP address of media gateway in advance; Described terminal utilizes the IP address of described media gateway to send the request that communicates via the Internet Protocol telephone switch of calling out to described media gateway; After described media gateway receives described request, judge whether the communication link between described terminal and the described Internet Protocol telephone switch interrupts, communicate if interrupt then described terminal is connected to alternative network.
4, method according to claim 1 is characterized in that, described method specifically comprises:
Terminal is preserved the IP address of redirection device in advance; Described terminal utilizes the IP address of described redirection device to send the request that communicates via the Internet Protocol telephone switch of calling out to described redirection device; After described redirection device receives described request, judge whether the communication link between described terminal and the described Internet Protocol telephone switch interrupts, if interrupt then return the IP address of the media gateway of preserving in advance to described terminal; Described terminal utilizes the IP address of described media gateway to be connected to backup network by described media gateway.
5, according to claim 1,3 or 4 each described methods, it is characterized in that:
Judge that described terminal also comprises periodically to described Internet Protocol telephone switch transmission packet before whether can communicating with default Internet Protocol telephone switch, is used to detect the Internet private telephone exchange and whether breaks down;
Describedly judge whether terminal can communicate specifically with default the Internet private telephone exchange and comprise: know according to the result whether described detection Internet Protocol telephone switch breaks down whether terminal can communicate with default the Internet private telephone exchange.
6, according to claim 3 or 4 described methods, it is characterized in that described method also comprises:
If described terminal and Internet Protocol telephone exchange function communicate, described media gateway or described redirection device return the IP address of the Internet Protocol telephone switch of preserving in advance to described terminal.
7, a kind of redirection device is characterized in that, comprising:
Judge module is connected with the Internet private telephone exchange, is used for judging whether terminal can communicate with described Internet Protocol telephone switch when request that terminal is initiated to communicate via the Internet Protocol telephone switch;
Redirection module, be connected with described judge module and described terminal, be used for the operation according to the judged result indicating terminal of judge module, indicating terminal is connected to alternative network by default media gateway and communicates when terminal can not communicate with the Internet private telephone exchange.
8, device according to claim 7 is characterized in that:
Described redirection device is arranged in the described terminal;
Described redirection device also can comprise first address preservation module, is connected with described redirection module, is used for preserving in advance the IP address of described the Internet private telephone exchange and the IP address of described media gateway.
9, device according to claim 7 is characterized in that:
Described redirection device is arranged in the described media gateway;
Described redirection module is used for after the request that the calling that receives the terminal transmission communicates via the Internet Protocol telephone switch, judge whether the communication link between described terminal and the described Internet Protocol telephone switch interrupts, communicate if interrupt then described terminal is connected to alternative network.
10, device according to claim 7 is characterized in that:
Described redirection device is arranged in the IP network independently;
Described redirection module is used for after the request that the calling that receives the terminal transmission communicates via the Internet Protocol telephone switch, judge whether the communication link between described terminal and the described Internet Protocol telephone switch interrupts, if interrupt then return the IP address of the media gateway of preserving in advance to described terminal; Described terminal utilizes the IP address of described media gateway to be connected to backup network by described media gateway.
11, according to claim 7,9 or 10 arbitrary described devices, it is characterized in that: described judge module comprises detection module, be connected with described the Internet private telephone exchange, be used for periodically sending packet, whether break down to detect described the Internet private telephone exchange to described the Internet private telephone exchange.
12, according to claim 9 or 10 described devices, it is characterized in that: described redirection device also comprises second address preservation module, is connected with described redirection module, is used for preserving in advance the IP address of described the Internet private telephone exchange.
CN 200610165380 2006-12-19 2006-12-19 Communication method and redirection device of the terminal in the IP network Pending CN1997048A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 200610165380 CN1997048A (en) 2006-12-19 2006-12-19 Communication method and redirection device of the terminal in the IP network

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 200610165380 CN1997048A (en) 2006-12-19 2006-12-19 Communication method and redirection device of the terminal in the IP network

Publications (1)

Publication Number Publication Date
CN1997048A true CN1997048A (en) 2007-07-11

Family

ID=38251964

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 200610165380 Pending CN1997048A (en) 2006-12-19 2006-12-19 Communication method and redirection device of the terminal in the IP network

Country Status (1)

Country Link
CN (1) CN1997048A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102171995A (en) * 2011-04-19 2011-08-31 华为技术有限公司 Method for processing packet when server fails and router thereof
CN102970665A (en) * 2011-07-22 2013-03-13 弗莱克斯特罗尼克斯美国国际公司 Home communication center
US8948367B2 (en) 2008-08-19 2015-02-03 Avaya Inc. Rerouting of trunks by a PBX to an alternate PBX

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8948367B2 (en) 2008-08-19 2015-02-03 Avaya Inc. Rerouting of trunks by a PBX to an alternate PBX
CN101656798B (en) * 2008-08-19 2015-11-25 阿瓦亚公司 By the trunk line heavy-route of PBX to PBX for subsequent use
CN102171995A (en) * 2011-04-19 2011-08-31 华为技术有限公司 Method for processing packet when server fails and router thereof
CN102171995B (en) * 2011-04-19 2013-09-11 华为技术有限公司 Method for processing packet when server fails and router thereof
US9391854B2 (en) 2011-04-19 2016-07-12 Huawei Technologies Co., Ltd. Method and router for packet processing during server failure
CN102970665A (en) * 2011-07-22 2013-03-13 弗莱克斯特罗尼克斯美国国际公司 Home communication center
US10063697B2 (en) 2011-07-22 2018-08-28 Flextronics Ap, Llc Home communication center

Similar Documents

Publication Publication Date Title
JP5636516B2 (en) Backup SIP server for enterprise network survivability using SIP
CA2672517C (en) Voip conferencing
US8125888B2 (en) Session initiation protocol survivable server
US6992974B1 (en) System and method for providing fault tolerance in a network telephony system
EP1483888B1 (en) Apparatus and method for computer telephone integration in packet switched telephone networks
CN101273614A (en) Method and system for providing network-based call processing for packetized voice calls
CN100563235C (en) Interworking system and method for interworking function network element, CSI terminal and IMS terminal
US8451714B2 (en) PSTN bypass for IP media
US20130007291A1 (en) MEDIA INTERWORKING IN IPv4 AND IPv6 SYSTEMS
US20120023172A1 (en) Adaptive media handling
US8233400B2 (en) Methods, systems, and computer readable media for verifying the availability of an internet protocol (IP) media router during a call setup
CN101873392B (en) VoIP-based calling method, system and device
CN1997048A (en) Communication method and redirection device of the terminal in the IP network
US20110044319A1 (en) Early media and forking in 3pcc
US8249238B2 (en) Dynamic key exchange for call forking scenarios
WO2007036124A1 (en) An addressing method in communication system
KR100741379B1 (en) Application switch controlling SPI communication using two or more subscriber lines and a method of operating the same
CN100556009C (en) A method for realizing tandem media gateway and tandem media gateway
EP2059001B1 (en) Multitype SIP processing element
Qian et al. Analysis and Research on Abnormal of Shore-Ship VoIP Call Forwarding
CN103475648A (en) Blind call forwarding method based on SIP (System In Package) protocol and blind call forwarding system
HK1070511B (en) Apparatus and method for computer telephone integration in packet switched telephone networks

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication

Open date: 20070711