TWI565290B - Apparatus for communicating with network phone and the method thereby - Google Patents

Apparatus for communicating with network phone and the method thereby Download PDF

Info

Publication number
TWI565290B
TWI565290B TW103111831A TW103111831A TWI565290B TW I565290 B TWI565290 B TW I565290B TW 103111831 A TW103111831 A TW 103111831A TW 103111831 A TW103111831 A TW 103111831A TW I565290 B TWI565290 B TW I565290B
Authority
TW
Taiwan
Prior art keywords
network
peer
connection information
telephone
called end
Prior art date
Application number
TW103111831A
Other languages
Chinese (zh)
Other versions
TW201537941A (en
Inventor
張耀文
許世欣
Original Assignee
鴻海精密工業股份有限公司
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 鴻海精密工業股份有限公司 filed Critical 鴻海精密工業股份有限公司
Priority to TW103111831A priority Critical patent/TWI565290B/en
Publication of TW201537941A publication Critical patent/TW201537941A/en
Application granted granted Critical
Publication of TWI565290B publication Critical patent/TWI565290B/en

Links

Description

網路電話的通信方法及裝置 Network telephone communication method and device

本發明涉及通信領域,特別涉及一種網路電話的通信方法及裝置。 The present invention relates to the field of communications, and in particular, to a communication method and apparatus for a network telephone.

在主從式網路電話通信中,是藉由伺服器建立主叫端和被叫端的網路電話通信連接的,在伺服器出現故障時主叫端和被叫端會失去連接,從而使網路電話通信服務停止。而且,現在越來越多的伺服器設置在遠離主叫端和被叫端的雲端,以控制眾多的主叫端和被叫端的網路電話通信,因此此時在伺服器出現故障的時候,造成損失的更大。 In the master-slave network telephone communication, the server establishes a network telephone communication connection between the calling end and the called end by the server, and the calling end and the called end lose connection when the server fails, thereby making the network The road telephone communication service is stopped. Moreover, more and more servers are now set in the cloud away from the calling end and the called end to control the network telephone communication of many calling and called terminals, so when the server fails, it causes The loss is even greater.

在點對點網路中,包括一群對等的網路節點,不需要藉由伺服器中繼,如果主叫端獲得了被叫端的連接資訊,則可以藉由該網路節點建立與被叫端的直接通信。 In a peer-to-peer network, including a group of peer-to-peer network nodes, there is no need to be relayed by the server. If the calling end obtains the connection information of the called end, the network node can establish a direct connection with the called end. Communication.

為解決上述問題,本發明提供一種網路電話的通信方法及裝置,旨在恢復主從式網路出現故障時的網路電話通信。 In order to solve the above problems, the present invention provides a communication method and apparatus for a network telephone, which aims to restore network telephone communication when a master-slave network fails.

本發明一具體實施方式中提供的一種網路電話的通信裝置,應用於主從式網路與點對點網路中,包括主從式通信模組以及點對點通信模組,主從式通信模組用於藉由該主從式網路的伺服器建立 該網路電話的第一電話通信連接,並在每次該第一電話通信連接建立成功時,將該網路電話的連接資訊存儲於該網路電話的緩存中,點對點通信模組,用於當該第一電話通信連接建立失敗時,在該網路電話的緩存中查詢該網路電話的連接資訊,並根據該連接資訊藉由該點對點網路建立該網路電話的第二電話通信連接。 A communication device for a network telephone provided in an embodiment of the present invention is applied to a master-slave network and a point-to-point network, including a master-slave communication module and a point-to-point communication module, and a master-slave communication module. Established by the server of the master-slave network The first telephone communication connection of the network telephone, and each time the first telephone communication connection is successfully established, the connection information of the network telephone is stored in the cache of the network telephone, and the point-to-point communication module is used for When the first telephone communication connection fails to be established, the connection information of the network telephone is queried in the cache of the network telephone, and the second telephone communication connection of the network telephone is established by the peer-to-peer network according to the connection information. .

優選的,該點對點通信模組包括查詢單元以及連接單元,查詢單元用於在該網路電話的主叫端發送呼叫請求後根據該呼叫請求在該主叫端的緩存中查詢該網路電話的被叫端的連接資訊,連接單元用於根據該連接資訊藉由該點對點網路建立該網路電話的第二電話通信連接。 Preferably, the peer-to-peer communication module includes a query unit and a connection unit, and the query unit is configured to query the cache of the caller in the cache of the caller according to the call request after the call request is sent by the calling end of the network phone. The connection information of the calling end, the connecting unit is configured to establish a second telephone communication connection of the network telephone by the peer-to-peer network according to the connection information.

優選的,該查詢單元還用於當在該主叫端的緩存中查詢該網路電話的被叫端的連接資訊失敗時,向該點對點網路的其中一個網路節點發送檢索請求,並根據該檢索請求在該網路節點中查詢該被叫端的連接資訊。 Preferably, the query unit is further configured to: when the connection information of the called end of the network phone fails in the cache of the calling end, send a retrieval request to one of the network nodes of the peer-to-peer network, and according to the search Requesting to query the connection information of the called end in the network node.

優選的,該點對點通信模組還包括轉發單元,轉發單元用於當該查詢單元在該網路節點中查詢該被叫端的連接資訊失敗時,將該檢索請求依次轉發至該點對點網路的其他網路節點中,該查詢單元還用於根據該檢索請求在該點對點網路的其他網路節點中查詢該被叫端的連接資訊。 Preferably, the point-to-point communication module further includes a forwarding unit, where the forwarding unit is configured to forward the search request to the peer-to-peer network in turn when the query unit fails to query the connection information of the called end in the network node. In the network node, the query unit is further configured to query the connection information of the called end among other network nodes of the peer-to-peer network according to the retrieval request.

優選的,該轉發單元還用於將該檢索請求依次轉發至該點對點網路的其他網路節點中之前存儲唯一ID於該網路節點中;該查詢單元還用於在根據該檢索請求在該點對點網路的其他網路節點中查詢該被叫端的連接資訊之前,在包含該唯一ID的該點對點網路的網路節點接收到該檢索請求時丟棄該檢索請求,並在根據該檢索 請求在該點對點網路的其他網路節點中查詢該被叫端的連接資訊之後,將該唯一ID存儲於該點對點網路中沒有該被叫端連接資訊的網路節點中,並根據該檢索請求在該點對點網路的其他網路節點中查詢該被叫端的連接資訊。 Preferably, the forwarding unit is further configured to forward the retrieval request to the other network nodes of the peer-to-peer network before storing the unique ID in the network node; the query unit is further configured to: Before querying the connection information of the called end among other network nodes of the peer-to-peer network, discarding the retrieval request when the network node of the peer-to-peer network including the unique ID receives the retrieval request, and according to the retrieval After requesting querying the connection information of the called end in other network nodes of the peer-to-peer network, storing the unique ID in the network node in the peer-to-peer network without the connected end connection information, and according to the retrieval request Query the connection information of the called end in other network nodes of the point-to-point network.

優選的,該裝置還包括重定單元,用於該查詢單元在該點對點網路的其他網路節點中查詢該被叫端的連接資訊成功後向該點對點網路發送重定請求,並根據該重定請求刪除該點對點網路的網路節點中的該唯一ID。 Preferably, the device further includes a re-determining unit, configured to send, by the query unit, the reconnection request to the peer-to-peer network after querying the connection information of the called end in the other network nodes of the peer-to-peer network, and deleting the request according to the re-determination request The unique ID in the network node of the peer-to-peer network.

優選的,該點對點模組還包括啟用單元,該啟用單元用於該查詢單元在該點對點網路中查詢該被叫端的連接資訊失敗時,啟用一連接該點對點網路和該網路電話的被叫端的備援網路。 Preferably, the point-to-point module further includes an enabling unit, wherein the enabling unit is configured to enable a connection between the peer-to-peer network and the network phone when the query unit fails to query the connected information of the called end in the peer-to-peer network. Called the backup network.

本發明一具體實施方式中提供的一種網路電話的通信方法,應用於主從式網路與點對點網路中,包括:藉由該主從式網路的伺服器建立該網路電話的第一電話通信連接;每次該第一電話通信連接建立成功時,將該網路電話的連接資訊存儲於該網路電話的緩存中;其中,當該第一電話通信連接建立失敗時,執行以下步驟:在該網路電話的緩存中查詢該網路電話的連接資訊;以及根據該連接資訊藉由該點對點網路建立該網路電話的第二電話通信連接。 A communication method for a network telephone according to an embodiment of the present invention is applied to a master-slave network and a peer-to-peer network, including: establishing a network telephone by a server of the master-slave network a telephone communication connection; each time the first telephone communication connection is successfully established, storing connection information of the network telephone in a cache of the network telephone; wherein, when the first telephone communication connection establishment fails, performing the following Step: querying the connection information of the network phone in the cache of the network phone; and establishing a second phone communication connection of the network phone by the peer-to-peer network according to the connection information.

優選的,該在該網路電話的緩存中查詢該網路電話的連接資訊具體包括:在該網路電話的主叫端發送呼叫請求後根據該呼叫請求在該主叫端的緩存中查詢該網路電話的被叫端的連接資訊。 Preferably, the querying the connection information of the network phone in the cache of the network phone comprises: querying the network in the cache of the calling terminal according to the call request after the calling end of the network phone sends the call request The connection information of the called end of the road phone.

優選的,該在該網路電話的主叫端發送呼叫請求後根據該呼叫請 求在該主叫端的緩存中查詢該網路電話的被叫端的連接資訊之後還包括:當在該主叫端的緩存中查詢該網路電話的被叫端的連接資訊失敗時,向該點對點網路的其中一個網路節點發送檢索請求;以及根據該檢索請求在該網路節點中查詢該被叫端的連接資訊。 Preferably, after the call request is sent by the calling end of the network phone, according to the call, please After querying the connection information of the called end of the network phone in the cache of the calling end, the method further includes: when querying the connection information of the called end of the network phone in the cache of the calling end, failing to the peer-to-peer network One of the network nodes sends a retrieval request; and queries the network node for the connection information of the called terminal according to the retrieval request.

優選的,該根據該檢索請求在該網路節點中查詢該被叫端的連接資訊之後還包括:當在該網路節點中查詢該被叫端的連接資訊失敗時,執行以下步驟:將該檢索請求依次轉發至該點對點網路的其他網路節點中;以及根據該檢索請求在該點對點網路的其他網路節點中查詢該被叫端的連接資訊。 Preferably, after querying the connection information of the called end in the network node according to the retrieval request, the method further comprises: when querying the connection information of the called end in the network node, performing the following steps: the retrieval request And forwarding to the other network nodes of the peer-to-peer network in turn; and querying the connection information of the called end among other network nodes of the peer-to-peer network according to the retrieval request.

優選的,該將該檢索請求依次轉發至該點對點網路的其他網路節點中之前還包括:存儲唯一ID於該網路節點中;該根據該檢索請求在該點對點網路的其他網路節點中查詢該被叫端的連接資訊之前還包括:在包含該唯一ID的該點對點網路的網路節點接收到該檢索請求時丟棄該檢索請求;該根據該檢索請求在該點對點網路的其他網路節點中查詢該被叫端的連接資訊之後還包括:將該唯一ID存儲於該點對點網路中沒有該被叫端連接資訊的網路節點中。 Preferably, before the forwarding the request to the other network nodes of the peer-to-peer network, the method further includes: storing a unique ID in the network node; and other network nodes in the peer-to-peer network according to the retrieval request Before querying the connection information of the called end, the method further includes: discarding the retrieval request when the network node of the peer-to-peer network including the unique ID receives the retrieval request; and the other network of the peer-to-peer network according to the retrieval request After querying the connection information of the called end, the path node further includes: storing the unique ID in the network node in the peer-to-peer network without the connected information of the called end.

優選的,該根據該檢索請求在該點對點網路的其他網路節點中查詢該被叫端的連接資訊,並將該唯一ID存儲於該點對點網路的其他網路節點中之後還包括:在該點對點網路的其他網路節點中查詢該被叫端的連接資訊成功後向該點對點網路發送重定請求;以及根據該重定請求刪除該點對點網路的網路節點中的該唯一ID。 Preferably, the querying the connection information of the called end in the other network nodes of the peer-to-peer network according to the retrieval request, and storing the unique ID in other network nodes of the peer-to-peer network further includes: The other network nodes of the peer-to-peer network send the re-determination request to the peer-to-peer network after querying the connection information of the called end, and delete the unique ID in the network node of the peer-to-peer network according to the re-determination request.

優選的,該方法還包括:在該點對點網路中查詢該被叫端的連接 資訊失敗時啟用一連接該點對點網路和該被叫端的備援網路。 Preferably, the method further includes: querying the connection of the called end in the peer-to-peer network When the information fails, a connection to the peer-to-peer network and the backup network of the called end is enabled.

本發明提供一種網路電話的通信方法及裝置,在藉由主從式網路的伺服器進行網路電話的電話通信時,將該網路電話的連接資訊存儲於該網路電話的緩存中,當出現網路故障時,在該網路電話的緩存中查詢該網路電話的連接資訊以根據該連接資訊藉由該點對點網路建立網路電話通信,恢復了主從式網路出現故障時的網路電話通信。 The invention provides a communication method and device for a network telephone, wherein when the telephone communication of the network telephone is performed by the server of the master-slave network, the connection information of the network telephone is stored in the cache of the network telephone. In the event of a network failure, querying the connection information of the network phone in the cache of the network phone to establish a network telephone communication by the peer-to-peer network according to the connection information, and recovering the failure of the master-slave network Internet telephony communication.

10‧‧‧伺服器 10‧‧‧Server

20‧‧‧路由器 20‧‧‧ router

30‧‧‧網路電話 30‧‧‧Internet phone

40‧‧‧主從式通信模組 40‧‧‧Master-slave communication module

50‧‧‧點對點通信模組 50‧‧‧ peer-to-peer communication module

51‧‧‧查詢單元 51‧‧‧Query unit

52‧‧‧連接單元 52‧‧‧ Connection unit

53‧‧‧轉發單元 53‧‧‧Forwarding unit

54‧‧‧重定單元 54‧‧‧Re-unit

55‧‧‧啟用單元 55‧‧‧Enable unit

圖1為本發明一實施方式中網路電話的通信方法及裝置的系統架構圖。 FIG. 1 is a system architecture diagram of a communication method and apparatus for a network telephone according to an embodiment of the present invention.

圖2為本發明一實施方式中網路電話通信裝置的系統結構圖。 2 is a system configuration diagram of a network telephone communication device according to an embodiment of the present invention.

圖3為圖2中點對點通信模組的裝置示意圖一。 FIG. 3 is a first schematic diagram of the device of the point-to-point communication module of FIG. 2. FIG.

圖4為圖2中點對點通信模組的裝置示意圖二。 4 is a second schematic diagram of the device of the point-to-point communication module of FIG. 2.

圖5為圖2中點對點通信模組的裝置示意圖三。 FIG. 5 is a third schematic diagram of the device of the point-to-point communication module of FIG. 2.

圖6為圖2中點對點通信模組的裝置示意圖四。 6 is a schematic diagram 4 of the apparatus of the point-to-point communication module of FIG. 2.

圖7為本發明一實施方式中網路電話的通信方法的方法流程圖。 FIG. 7 is a flowchart of a method for communicating a network telephone according to an embodiment of the present invention.

圖8為圖7中網路電話的通信方法的系統示意圖一。 FIG. 8 is a first schematic diagram of the system of the communication method of the network telephone of FIG. 7.

圖9為圖7中網路電話的通信方法的系統示意圖二。 FIG. 9 is a second schematic diagram of the system of the communication method of the network telephone in FIG. 7.

圖10為圖7中在主叫端的緩存中查詢網路電話的被叫端的連接資訊的方法流程圖。 FIG. 10 is a flowchart of a method for querying connection information of a called end of a network phone in a cache of a calling end in FIG. 7.

圖11為圖10中網路電話的通信方法的系統示意圖。 11 is a system diagram of a communication method of the network telephone of FIG.

圖12為圖7中在網路節點中查詢被叫端的連接資訊失敗後的方法流程圖一。 FIG. 12 is a flowchart 1 of the method after querying the connection information of the called end in the network node in FIG. 7 .

圖13為圖12中網路電話的通信方法的系統示意圖。 FIG. 13 is a system diagram of a communication method of the network telephone of FIG.

圖14為圖7中在網路節點中查詢被叫端的連接資訊失敗後的方法流程圖二。 FIG. 14 is a second flowchart of the method for querying the connection information of the called end in the network node in FIG. 7 .

圖15為圖14中網路電話的通信方法的時序圖。 Figure 15 is a timing diagram of the communication method of the network telephone of Figure 14.

圖16為圖14中在點對點網路中查詢被叫端的連接資訊成功後的方法流程圖。 FIG. 16 is a flowchart of a method for querying the connection information of the called end in the peer-to-peer network in FIG. 14 .

圖17為圖14中在點對點網路中查詢被叫端的連接資訊失敗時系統示意圖。 FIG. 17 is a schematic diagram of the system in FIG. 14 when the connection information of the called end fails in the peer-to-peer network.

下面結合附圖,對本發明中的網路電話的通信方法及系統作進一步的詳細描述。 The communication method and system of the network telephone in the present invention will be further described in detail below with reference to the accompanying drawings.

請參考圖1,是本發明實施例一中網路電話通信方法和裝置的系統架構圖,本實施例的一種網路電話的通信方法和裝置,應用於主從式網路與點對點網路中,主從式網路包括路由器20和設置於網路雲端並藉由互聯網與路由器20進行主從式資訊交換的伺服器10,點對點網路包括一組點對點連接的網路電話30,其中,一部網路電話30為點對點網路的一個網路節點,每一部網路電話30能同時扮演用戶端和服務端的角色,從而使得點對點網路中的每一部網路電話30可以藉由其他網路電話30的轉接建立連線,單個網路節點的加入和下線不會影響整個點對點網路的運行。點點對點網路中的網路電話30藉由路由器20連接主從式網路,從而使得本 發明一實施例中網路電話30通信方法的系統架構同時具有主從式網路和點對點網路的特性。 1 is a system architecture diagram of a network telephone communication method and apparatus according to Embodiment 1 of the present invention. A communication method and apparatus for a network telephone according to this embodiment are applied to a master-slave network and a point-to-point network. The master-slave network includes a router 20 and a server 10 disposed in the network cloud and performing master-slave information exchange with the router 20 via the Internet. The peer-to-peer network includes a set of point-to-point connected network telephones 30, one of which The VoIP 30 is a network node of the peer-to-peer network, and each VoIP 30 can simultaneously play the role of the client and the server, so that each VoIP 30 in the peer-to-peer network can be used by other The transfer of the VoIP 30 establishes a connection, and the joining and offline of a single network node does not affect the operation of the entire peer-to-peer network. The VoIP 30 in the peer-to-peer network is connected to the master-slave network through the router 20, thereby making this The system architecture of the communication method of the network telephone 30 in an embodiment of the invention has the characteristics of a master-slave network and a point-to-point network.

請參考圖2,本發明一實施例的一種網路電話的通信裝置,包括主從式通信模組40和點對點通信模組50,主從式通信模組40設置於主從式網路中,點對點通信模組50設置於點對點網路中,其中,主從式通信模組40連接路由器20和點對點網路,點對點通信模組50與網路電話30點對點連接。 Referring to FIG. 2, a communication device for a network telephone according to an embodiment of the present invention includes a master-slave communication module 40 and a point-to-point communication module 50. The master-slave communication module 40 is disposed in a master-slave network. The point-to-point communication module 50 is disposed in a peer-to-peer network, wherein the master-slave communication module 40 is connected to the router 20 and the peer-to-peer network, and the point-to-point communication module 50 is connected to the network telephone 30 point-to-point.

主從式通信模組40用於藉由該主從式網路的伺服器10建立該網路電話30的第一電話通信連接,並在每次該第一電話通信連接建立成功時,將該網路電話30的連接資訊存儲於該網路電話30的緩存中。 The master-slave communication module 40 is configured to establish a first telephone communication connection of the network telephone 30 by the server 10 of the master-slave network, and each time the first telephone communication connection is successfully established, The connection information of the network telephone 30 is stored in the cache of the network telephone 30.

每次第一電話通信連接建立成功時,主從式通信模組40將該網路電話30的連接資訊存儲於該網路電話30的緩存中。 The master-slave communication module 40 stores the connection information of the network telephone 30 in the cache of the network telephone 30 each time the first telephone communication connection is successfully established.

此時主從式網路的伺服器10正常工作,主從式網路的伺服器10和網路電話30正常連接,網路電話30藉由主從式網路進行網路電話30通信。 At this time, the server 10 of the master-slave network works normally, the server 10 of the master-slave network and the network phone 30 are normally connected, and the network phone 30 communicates with the network telephone 30 through the master-slave network.

點對點通信模組50用於當該第一電話通信連接建立失敗時,在該網路電話30的緩存中查詢該網路電話30的連接資訊,並根據該連接資訊藉由該點對點網路建立該網路電話30的第二電話通信連接。 The peer-to-peer communication module 50 is configured to query the connection information of the network phone 30 in the cache of the network phone 30 when the first telephone communication connection fails to be established, and establish the connection information according to the connection information according to the connection information. A second telephone communication connection of the network telephone 30.

請參考圖3,其中,點對點通信模組50包括查詢單元51以及連接單元52,查詢單元51用於在該網路電話30的主叫端發送呼叫請求後根據該呼叫請求在該主叫端的緩存中查詢該網路電話30的被叫 端的連接資訊,連接單元52用於根據該連接資訊藉由該點對點網路建立該網路電話30的第二電話通信連接。 Referring to FIG. 3, the peer-to-peer communication module 50 includes a query unit 51 and a connection unit 52. The query unit 51 is configured to cache the caller according to the call request after the call request is sent by the calling end of the network phone 30. Query the called party of the VoIP 30 The connection information of the terminal is used by the connection unit 52 to establish a second telephone communication connection of the network telephone 30 by the peer-to-peer network according to the connection information.

網路故障有時是在正在通話的時候出現的,此時在檢測到第一電話通信連接斷開,主叫端和呼叫端失去連接時,先等待主叫端重新發起呼叫請求,在主叫端重新發起呼叫請求後,主叫端在本地的緩存中查詢被叫端的連接資訊,由於此時主叫端和被叫端是在通信中出現故障,因此此時主叫端的緩存中存儲有被叫端的連接資訊,藉由該連接資訊便可重新恢復主叫端和被叫端的網路電話30通信。在其他實施例中,也可以在偵測到故障時,自動啟動點對點通信方案即時恢復通信,無需等待主叫端重新呼叫。 The network failure sometimes occurs when the call is in progress. At this time, when it is detected that the first telephone communication connection is disconnected, and the calling party and the calling terminal lose the connection, the calling party is first re-initiated the call request, at the calling party. After the terminal re-initiates the call request, the calling end queries the local cache for the connection information of the called end. At this time, the calling end and the called end are in communication, so the calling end cache is stored in the cache. The connection information of the calling terminal can restore the communication between the calling party and the called party's network telephone 30 by using the connection information. In other embodiments, the point-to-point communication scheme can be automatically initiated to resume communication immediately when a fault is detected, without waiting for the calling party to re-call.

在本實施例中,該查詢單元51還用於當在該主叫端的緩存中查詢該網路電話30的被叫端的連接資訊失敗時,向該點對點網路的其中一個網路節點發送檢索請求,並根據該檢索請求在該網路節點中查詢該被叫端的連接資訊。 In this embodiment, the query unit 51 is further configured to send a retrieval request to one of the network nodes of the peer-to-peer network when the connection information of the called end of the network phone 30 fails in the cache of the calling end. And querying the connection information of the called end in the network node according to the retrieval request.

在本實施例的網路電話30裝置中,網路故障的出現還存在以下情況: In the network telephone 30 device of this embodiment, the occurrence of a network failure still exists as follows:

故障是在網路待機的時候出現的,此時沒有進行中的網路通話,或者上一個通話已經結束,或者本次網路通話正在呼叫時出現故障,此時可能是新的主叫端呼叫新的被叫端,新的主叫端中還沒有存儲新的被叫端的連接資訊,或者待機時間過長,存儲有某個被叫端連接資訊的網路電話30的緩存已經被自動清理。 The fault occurs when the network is in standby. At this time, there is no ongoing network call, or the previous call has ended, or the network call is in progress when the call is in progress. This may be a new caller's call. The new called party, the new calling party has not stored the connection information of the new called party, or the standby time is too long, and the cache of the network phone 30 storing the connected information of the called party has been automatically cleared.

故障在通話中出現,但由於在某些電話會議的時候網路通話時間過長導致主叫端的緩存已被清理,連接資訊已經被刪除。或者在 故障出現後藉由在緩存中查詢連接資訊恢復通話後,此時又需要將新的被叫端加入通話中。 The fault occurred during the call, but the connection information has been deleted because the caller's cache has been cleaned up due to excessive network call time during some conference calls. Or at After the fault occurs, the callback is resumed by querying the connection information in the cache, and then the new called party needs to be added to the call.

因此此時需要向點對點網路的網路節點發送檢索請求以在除了主叫端的其他節點位置查找該連接資訊。 Therefore, it is necessary to send a retrieval request to the network node of the peer-to-peer network to find the connection information at other node locations other than the calling end.

在一些點對點網路的系統架構中,每個網路節點都可以和大部分的其他網路節點進行點對點通信,在點對點網路的其他節點存儲有被叫端的連接資訊時,此時只需要在點對點網路中的網路節點查詢一次便可以獲得該連接資訊以建立第二電話通信連接。 In some point-to-point network system architectures, each network node can communicate peer-to-peer with most other network nodes. When other nodes of the peer-to-peer network store the connection information of the called end, only The connection information can be obtained by querying the network node in the peer-to-peer network once to establish a second telephone communication connection.

請參考圖4,在本實施例中,該點對點通信模組50還包括轉發單元53,轉發單元53用於當該查詢單元51在該網路節點中查詢該被叫端的連接資訊失敗時,將該檢索請求依次轉發至該點對點網路的其他網路節點中。查詢單元51還用於根據該檢索請求在該點對點網路的其他網路節點中查詢該被叫端的連接資訊。 Referring to FIG. 4, in the embodiment, the peer-to-peer communication module 50 further includes a forwarding unit 53. When the query unit 51 fails to query the network node for the connection information of the called terminal, the forwarding unit 53 The retrieval request is in turn forwarded to other network nodes of the peer-to-peer network. The querying unit 51 is further configured to query the connection information of the called end among other network nodes of the peer-to-peer network according to the retrieval request.

在另外一些點對點網路的系統架構中,點對點網路的網路節點存在樹狀分佈,某些網路節點只能和部分其他網路節點進行通信,在向點對點網路的一個網路節點查詢之後存在查詢沒有被叫端連接資訊的情況,此時需要網路節點轉發該檢索請求至其他網路節點繼續查收以獲得被叫端的連接資訊。 In other system architectures of peer-to-peer networks, the network nodes of the peer-to-peer network have a tree-like distribution. Some network nodes can only communicate with some other network nodes and query a network node of the peer-to-peer network. Then there is a case where the query does not have the connection information of the called end. At this time, the network node needs to forward the retrieval request to other network nodes to continue to check to obtain the connection information of the called end.

其中,該轉發單元53還用於將該檢索請求依次轉發至該點對點網路的其他網路節點中之前存儲唯一ID於該網路節點中,並根據該檢索請求在該點對點網路的其他網路節點中查詢該被叫端的連接資訊之前,在包含該唯一ID的該點對點網路的網路節點接收到該檢索請求時丟棄該檢索請求,並在根據該檢索請求在該點對點網 路的其他網路節點中查詢該被叫端的連接資訊之後,將該唯一ID存儲於該點對點網路中沒有該被叫端連接資訊的網路節點中。 The forwarding unit 53 is further configured to forward the retrieval request to the other network nodes of the peer-to-peer network before storing the unique ID in the network node, and according to the retrieval request, the other network in the peer-to-peer network. Before querying the connection information of the called end in the road node, discarding the retrieval request when the network node of the peer-to-peer network including the unique ID receives the retrieval request, and in the point-to-point network according to the retrieval request After querying the connection information of the called end in the other network nodes of the road, the unique ID is stored in the network node in the peer-to-peer network without the connected information of the called end.

在點對點網路的網路節點轉發檢索請求時,存在點對點之間的請求回傳,以及有可能同一個網路節點收到多次檢索請求的情況。請參考圖10和圖11,網路節點B將檢索請求回傳至主叫端A,網路節點C和網路節點D回傳至網路節點B,網路節點E將檢索請求回傳網路節點D。 When a network node of a peer-to-peer network forwards a retrieval request, there is a point-to-point request backhaul, and it is possible that the same network node receives multiple retrieval requests. Referring to FIG. 10 and FIG. 11, the network node B returns the retrieval request to the calling terminal A, and the network node C and the network node D are transmitted back to the network node B, and the network node E retrieves the request backhaul network. Road node D.

此時藉由生成唯一ID存儲於已經執行過查詢動作的網路節點中作為標記,存儲之後再轉發該檢索請求,如果在收到檢索請求後發現存在唯一ID證明是第二次收到檢索請求,則丟棄該檢索請求不執行查詢動作,防止造成迴圈查詢並節省系統資源。 At this time, by generating a unique ID stored in the network node that has performed the query action as a mark, the search request is forwarded after the storage, and if the unique ID is found to be the second time the search request is received after receiving the search request , discarding the retrieval request does not perform the query action, preventing the loop query and saving system resources.

請參考圖5,在本實施例中,該裝置還包括重定單元54,重定單元54用於查詢單元51在該點對點網路的其他網路節點中查詢該被叫端的連接資訊成功後向該點對點網路發送重定請求,並根據該重定請求刪除該點對點網路的網路節點中的該唯一ID。 Referring to FIG. 5, in the embodiment, the device further includes a re-determining unit 54 for querying the unit 51 to query the connected information of the called end in the other network nodes of the peer-to-peer network, and then to the point-to-point The network sends a re-request and deletes the unique ID in the network node of the peer-to-peer network according to the re-request.

唯一ID只針對本次故障發生時的檢索請求,在查詢得到被叫端的連接資訊後需要重定點對點網路以刪除唯一ID,以防止干擾下次新的故障出現後的恢復連線過程。 The unique ID is only for the retrieval request when the fault occurs. After the query obtains the connection information of the called end, the peer-to-peer network needs to be reset to delete the unique ID to prevent interference with the recovery connection process after the next new fault occurs.

請參考圖6,在本實施例中,該點對點模組還包括啟用單元55,啟用單元55用於查詢單元51在該點對點網路中查詢該被叫端的連接資訊失敗時,啟用一連接該點對點網路和該網路電話的被叫端的備援網路。 Referring to FIG. 6, in the embodiment, the peer-to-peer module further includes an enabling unit 55, and the enabling unit 55 is configured to enable the connection unit 51 to query the peer-to-peer network when the connection information of the called terminal fails. The network and the backup network of the called end of the VoIP phone.

在該點對點網路中查詢該被叫端的連接資訊失敗後,說明此時點 對點網路的網路節點中還沒有被叫端的通話記錄或者存儲有被叫端連接資訊的網路節點沒有上線,也有可能是被叫端沒有加入該點對點網路中而存在PSTN(Public Switched Telephone Network,公共交換電話網)端,此時架構一備援網路,藉由該備援網路向該被叫端發送該連接請求,該備援網路可藉由電信運營商互聯,藉由電信運營商網路連接主叫端和被叫端以建立跨系統的電話通信。 After the connection information of the called end fails in the peer-to-peer network, the current point is indicated. The network node of the peer network does not have the call record of the called end or the network node storing the connection information of the called end is not online, or the called end does not join the peer-to-peer network and there is a PSTN (Public Switched) The Telephone Network, the public switched telephone network, is configured to provide a backup network to the called end by using the backup network, and the backup network can be interconnected by the telecommunications carrier. The telecommunications carrier network connects the calling and called terminals to establish cross-system telephone communications.

請同時參考圖7、圖8和圖9,本發明一實施例中網路電話30通信方法,包括以下步驟。 Referring to FIG. 7, FIG. 8, and FIG. 9, a method for communicating the network telephone 30 according to an embodiment of the present invention includes the following steps.

S100:主從式通信模組40藉由該主從式網路的伺服器10建立該網路電話30的第一電話通信連接。 S100: The master-slave communication module 40 establishes a first telephone communication connection of the network telephone 30 by the server 10 of the master-slave network.

該主從式網路的伺服器10藉由互聯網提供網路電話30之間的主從式網路電話通信服務,網路電話30可藉由路由器20和伺服器10建立與其他網路電話30的第一電話通信連接。 The server 10 of the master-slave network provides a master-slave network telephone communication service between the network telephones 30 via the Internet, and the network telephone 30 can establish and communicate with other network telephones 30 through the router 20 and the server 10. The first telephone communication connection.

在每一次的第一電話通信連接建立的過程中,具體包括以下步驟:網路電話30作為主叫端接收用戶指令發出呼叫請求;主叫端藉由路由器20和互聯網連接至伺服器10;伺服器10藉由互聯網和路由器20連接至被叫端;被叫端回應呼叫請求;主叫端和被叫端之間交換資訊以完成第一電話通信連接的建立,從而使用戶進行通話。 In the process of establishing the first telephone communication connection, the method includes the following steps: the network phone 30 receives the user command as the calling terminal to issue a call request; the calling terminal connects to the server 10 through the router 20 and the Internet; The device 10 is connected to the called end by the Internet and the router 20; the called end responds to the call request; and the information is exchanged between the calling end and the called end to complete the establishment of the first telephone communication connection, thereby enabling the user to make a call.

S200:點對點通信模組50判斷該第一電話通信是否連接建立成功。成功執行步驟S300,失敗進入步驟S400。 S200: The peer-to-peer communication module 50 determines whether the first telephone communication is successfully established. Step S300 is successfully executed, and the process proceeds to step S400.

S300:成功則點對點通信模組50將該網路電話30的連接資訊存儲於該網路電話30的緩存中,並回到步驟S100中進行通話。 S300: Upon successful, the peer-to-peer communication module 50 stores the connection information of the network telephone 30 in the cache of the network telephone 30, and returns to step S100 to make a call.

每次第一電話通信連接建立成功時,點對點通信模組50將該網路電話30的連接資訊存儲於該網路電話30的緩存中。 Each time the first telephone communication connection is successfully established, the peer-to-peer communication module 50 stores the connection information of the network telephone 30 in the cache of the network telephone 30.

此時主從式網路的伺服器10正常工作,主從式網路的伺服器10和客戶端正常連接,網路電話30藉由主從式網路進行網路電話30通信。 At this time, the server 10 of the master-slave network works normally, the server 10 of the master-slave network and the client are normally connected, and the network phone 30 communicates with the network telephone 30 through the master-slave network.

為了防止設置於網路雲端的伺服器10或主從式網路出現故障導致通信中斷,在每次該第一電話通信連接建立成功的時候,在主叫端和被叫端的緩存中分別存儲此次連接的對方的連接資訊,從而得到有過連線記錄的歷史資料。其中連接資訊為主叫端和被叫端雙方的網路位置資訊,該網路位置資訊可以是IP位址,也可以是其他的網路位置資訊。 In order to prevent communication interruption caused by the failure of the server 10 or the master-slave network installed in the network cloud, each time the first telephone communication connection is successfully established, the storage is stored in the caches of the calling end and the called end respectively. The connection information of the other party connected to the second time, thereby obtaining the historical data of the connection record. The connection information is the network location information of both the calling end and the called end. The network location information may be an IP address or other network location information.

當該第一電話通信連接建立失敗時,執行以下步驟。 When the first telephone communication connection establishment fails, the following steps are performed.

S400:點對點通信模組50的查詢單元51在該網路電話30的緩存中查詢該網路電話30的連接資訊。 S400: The query unit 51 of the peer-to-peer communication module 50 queries the connection information of the network phone 30 in the cache of the network phone 30.

S500:點對點通信模組50的連接單元52根據該連接資訊藉由該點對點網路建立該網路電話30的第二電話通信連接。 S500: The connection unit 52 of the peer-to-peer communication module 50 establishes a second telephone communication connection of the network telephone 30 by the peer-to-peer network according to the connection information.

此時說明主從式網路電話30通信出現故障,則啟用點對點通信方案,藉由點對點網路進行網路電話30通信。 At this point, the master-slave network telephone 30 communication failure occurs, and the point-to-point communication scheme is enabled, and the network telephone 30 communicates through the point-to-point network.

由於在故障前的主從式網路電話30通信時,存儲過有過網路電話30通信記錄的網路電話30的連接資訊,說明此時全部或者部分網路電話30緩存中可能存在本次連線需要的連接資訊,藉由在網路電話30中查詢該連接資訊,根據該連接資訊藉由該點對點網路便可以建立新的電話通信連接以取代因故障斷開的第一電話通信連接。 Since the connection information of the network phone 30 having the communication record of the network phone 30 is stored when the master-slave network phone 30 communicates before the failure, it may be that all or part of the network phone 30 cache may exist at this time. The connection information required for the connection is obtained by querying the connection information in the network phone 30, and the new telephone communication connection can be established by the peer-to-peer network according to the connection information to replace the first telephone communication connection disconnected due to the failure. .

在本實施例中,主叫端和被叫端只分別存儲對方的連接資訊,在其他的實施例中,主叫端和被叫端可以將存儲的連接資訊廣播至點對點網路的其他節點中。 In this embodiment, the calling end and the called end only store the connection information of the other party respectively. In other embodiments, the calling end and the called end can broadcast the stored connection information to other nodes of the peer-to-peer network. .

請參考圖10,在本實施例中,步驟S400:查詢單元51在該網路電話30的緩存中查詢該網路電話30的連接資訊具體包括以下步驟。 Referring to FIG. 10, in the embodiment, step S400: querying the connection information of the network phone 30 in the cache of the network phone 30 by the query unit 51 specifically includes the following steps.

S401:查詢單元51在該網路電話30的主叫端A發送呼叫請求後根據該呼叫請求在該主叫端A的緩存中查詢該網路電話30的被叫端F的連接資訊。 S401: After the calling terminal A of the network phone 30 sends a call request, the query unit 51 queries the connection information of the called terminal F of the network phone 30 in the cache of the calling terminal A according to the call request.

網路故障有時是在正在通話的時候出現的,此時在檢測到第一電話通信連接斷開,主叫端A和被叫端F失去連接時,先等待主叫端A重新發起呼叫請求,在主叫端A重新發起呼叫請求後,主叫端A在本地的緩存中查詢被叫端F的連接資訊,由於此時主叫端A和被叫端F是在通信中出現故障,因此此時主叫端A的緩存中存儲有被叫端的連接資訊,即被叫端F的IP位址,藉由該連接資訊便可重新恢復主叫端A和被叫端F的網路電話30通信。在其他實施例中,也可以在偵測到故障時,自動啟動點對點通信方案即時恢復通信,無需等待主叫端A重新呼叫。 The network failure sometimes occurs when the call is in progress. At this time, when it is detected that the first telephone communication connection is disconnected, and the calling terminal A and the called terminal F lose the connection, the calling party A is first re-initiated the call request. After the calling party A re-initiates the call request, the calling terminal A queries the local terminal's cache for the connection information of the called terminal F. Since the calling terminal A and the called terminal F are in communication, the fault occurs. At this time, the connection end A's cache stores the connection information of the called end, that is, the IP address of the called end F, and the connection information can restore the network telephone 30 of the calling end A and the called end F. Communication. In other embodiments, the point-to-point communication scheme can be automatically started to resume communication immediately when a fault is detected, without waiting for the calling party A to re-call.

請同時參考圖11,在本實施例中,在步驟S401:查詢單元51在該網路電話30的主叫端發送呼叫請求後根據該呼叫請求在該主叫端的緩存中查詢該網路電話30的被叫端的連接資訊之後還包括以下步驟。 Please refer to FIG. 11 . In this embodiment, in step S401 , the query unit 51 queries the network phone 30 in the cache of the calling terminal according to the call request after the call request is sent by the calling end of the network phone 30. The connection information of the called end further includes the following steps.

S402:查詢單元51判斷在該主叫端的緩存中查詢該網路電話30的被叫端的連接資訊是否成功,成功則進入步驟S500,失敗進入步驟S403。 S402: The query unit 51 determines whether the connection information of the called end of the network phone 30 is successful in the cache of the calling terminal, and if yes, the process proceeds to step S500, and the process proceeds to step S403.

S403:當查詢單元51在該主叫端的緩存中查詢該網路電話30的被叫端的連接資訊失敗時,向該點對點網路的其中一個網路節點發送檢索請求。 S403: When the query unit 51 fails to query the connection information of the called end of the network phone 30 in the cache of the calling end, the query unit 51 sends a retrieval request to one of the network nodes of the peer-to-peer network.

S404:查詢單元51根據該檢索請求在該網路節點中查詢該被叫端的連接資訊。 S404: The query unit 51 queries the network node for the connection information of the called end according to the retrieval request.

在本實施例的網路電話30通信中,網路故障的出現還存在以下情況: In the communication of the network telephone 30 of this embodiment, the occurrence of a network failure still exists as follows:

故障是在網路待機的時候出現的,此時沒有進行中的網路通話,或者上一個通話已經結束,或者本次網路通話正在呼叫時出現故障,此時可能是新的主叫端呼叫新的被叫端,新的主叫端中還沒有存儲新的被叫端的連接資訊,或者待機時間過長,存儲有某個被叫端連接資訊的網路電話30的緩存已經被自動清理。 The fault occurs when the network is in standby. At this time, there is no ongoing network call, or the previous call has ended, or the network call is in progress when the call is in progress. This may be a new caller's call. The new called party, the new calling party has not stored the connection information of the new called party, or the standby time is too long, and the cache of the network phone 30 storing the connected information of the called party has been automatically cleared.

故障在通話中出現,但由於在某些電話會議的時候網路通話時間過長導致主叫端的緩存已被清理,連接資訊已經被刪除。或者在故障出現後藉由在緩存中查詢連接資訊恢復通話後,此時又需要將新的被叫端加入通話中。 The fault occurred during the call, but the connection information has been deleted because the caller's cache has been cleaned up due to excessive network call time during some conference calls. Or, after the fault occurs, the call is resumed by querying the connection information in the cache, and then the new called party needs to be added to the call.

請參考圖12和圖13,此時需要向點對點網路的網路節點B發送檢索請求以在除了主叫端A的其他節點位置查找該連接資訊。 Referring to FIG. 12 and FIG. 13, it is necessary to send a retrieval request to the network node B of the peer-to-peer network to find the connection information at other node locations other than the calling terminal A.

在一些點對點網路的系統架構中,每個網路節點都可以和大部分的其他網路節點進行點對點通信,在點對點網路的其他節點存儲有被叫端的連接資訊時,此時只需要在點對點網路中的網路節點查詢一次便可以獲得該連接資訊以建立第二電話通信連接。 In some point-to-point network system architectures, each network node can communicate peer-to-peer with most other network nodes. When other nodes of the peer-to-peer network store the connection information of the called end, only The connection information can be obtained by querying the network node in the peer-to-peer network once to establish a second telephone communication connection.

在本實施例中,步驟S404:根據該檢索請求在該網路節點中查詢該被叫端的連接資訊還包括以下步驟。 In this embodiment, step S404: querying the connection information of the called end in the network node according to the retrieval request further includes the following steps.

S405:查詢單元51判斷在該網路節點中查詢該被叫端的連接資訊是否成功;成功則進入步驟S500,失敗進入步驟S407。 S405: The query unit 51 determines whether the connection information of the called end is successful in the network node; if successful, the process proceeds to step S500, and the process proceeds to step S407.

S407:當查詢單元51在該網路節點中查詢該被叫端的連接資訊失敗時,轉發單元53將該檢索請求依次轉發至該點對點網路的其他網路節點中。 S407: When the query unit 51 fails to query the connection information of the called end in the network node, the forwarding unit 53 sequentially forwards the search request to other network nodes of the peer-to-peer network.

S410:查詢單元51根據該檢索請求在該點對點網路的其他網路節點中查詢該被叫端的連接資訊。 S410: The query unit 51 queries the other network nodes of the peer-to-peer network for the connection information of the called end according to the retrieval request.

在另外一些點對點網路的系統架構中,點對點網路的網路節點存在樹狀分佈,某些網路節點只能和部分其他網路節點進行通信,在向點對點網路的一個網路節點查詢之後存在查詢沒有被叫端連接資訊的情況,此時需要網路節點轉發該檢索請求至其他網路節點繼續查收以獲得被叫端的連接資訊。 In other system architectures of peer-to-peer networks, the network nodes of the peer-to-peer network have a tree-like distribution. Some network nodes can only communicate with some other network nodes and query a network node of the peer-to-peer network. Then there is a case where the query does not have the connection information of the called end. At this time, the network node needs to forward the retrieval request to other network nodes to continue to check to obtain the connection information of the called end.

主叫端A中存儲有網路節點B的IP位址,主叫端A向網路節點B查詢被叫端F的連接資訊,此時網路節點B中沒有被叫端F的連接資訊,主叫端A在網路節點B中查找被叫端F的連接資訊失敗 。 The calling terminal A stores the IP address of the network node B, and the calling terminal A queries the network node B for the connection information of the called terminal F. At this time, the network node B does not have the connection information of the called terminal F. The calling party A fails to find the connection information of the called terminal F in the network node B. .

網路節點B將檢索請求依次進行轉發,網路節點B中存儲有主叫端A,網路節點C和網路節點D的IP位址,網路節點B依次將檢索請求轉發至網路節點C和網路節點D以及回傳至主叫端A中,網路節點D中包含網路節點E的IP位址,網路節點D將檢索請求轉發至網路節點E,網路節點E中存儲有被叫端F的連接資訊,根據在網路節點E中查詢得到的被叫端F的連接資訊建立主叫端A和被叫端F的第二電話通信連接。 The network node B forwards the retrieval request in turn, and the network node B stores the IP addresses of the calling terminal A, the network node C and the network node D, and the network node B sequentially forwards the retrieval request to the network node. C and the network node D and back to the calling terminal A, the network node D contains the IP address of the network node E, and the network node D forwards the retrieval request to the network node E, the network node E The connection information of the called terminal F is stored, and the second telephone communication connection between the calling terminal A and the called terminal F is established according to the connection information of the called terminal F obtained by querying in the network node E.

請參考圖14和圖15,在實施例三中,步驟S407:將該檢索請求依次轉發至該點對點網路的其他網路節點中之前還包括以下步驟。 Referring to FIG. 14 and FIG. 15, in the third embodiment, step S407: before the forwarding request is sequentially forwarded to other network nodes of the peer-to-peer network, the following steps are further included.

S406:查詢單元51存儲唯一ID於該網路節點中。 S406: The query unit 51 stores the unique ID in the network node.

步驟S410:查詢單元51根據該檢索請求在該點對點網路的其他網路節點中查詢該被叫端的連接資訊之前還包括。 Step S410: The query unit 51 further includes, before querying the connection information of the called end, among other network nodes of the peer-to-peer network according to the retrieval request.

S408:查詢單元51在判斷該點對點網路中當前查詢的網路節點中是否有唯一ID,有則進入步驟S409,沒有則進入步驟S410。 S408: The query unit 51 determines whether there is a unique ID in the network node currently queried in the peer-to-peer network, if yes, the process proceeds to step S409, and if not, the process proceeds to step S410.

S409:查詢單元51丟棄該檢索請求。 S409: The query unit 51 discards the retrieval request.

查詢單元51將該唯一ID存儲於該點對點網路的其他網路節點中,並在包含該唯一ID的該點對點網路的網路節點接收到該檢索請求時丟棄該檢索請求。 The query unit 51 stores the unique ID in other network nodes of the peer-to-peer network, and discards the retrieval request when the network node of the peer-to-peer network including the unique ID receives the retrieval request.

步驟S410:查詢單元51根據該檢索請求在該點對點網路的其他網路節點中查詢該被叫端的連接資訊之後還包括以下步驟。 Step S410: The query unit 51 further includes the following steps after querying the connection information of the called end in the other network nodes of the peer-to-peer network according to the retrieval request.

S411:查詢單元51判斷在該點對點網路的其他網路節點中查詢該 被叫端的連接資訊是否成功,成功則進入步驟S500,失敗則回到步驟S406。 S411: The query unit 51 determines to query the other network nodes of the peer-to-peer network. If the connection information of the called end is successful, the process proceeds to step S500, and if it fails, the process returns to step S406.

在查詢單元51每次查詢之前判斷該點對點網路中當前查詢的網路節點中是否有唯一ID,有則丟棄該檢索請求不進行查詢,沒有則繼續查詢,並在查詢失敗的時候轉發單元53繼續轉發該檢索請求。 Before the query unit 51 determines whether there is a unique ID in the network node currently queried in the peer-to-peer network, if the search request is discarded, the query is not performed, and if not, the query is continued, and when the query fails, the forwarding unit 53 is forwarded. Continue to forward the search request.

在點對點網路的網路節點轉發檢索請求時,存在點對點之間的請求回傳,以及有可能同一個網路節點收到多次檢索請求的情況。請參考圖11,網路節點B將檢索請求回傳至主叫端A,網路節點C和網路節點D回傳至網路節點B,網路節點E將檢索請求回傳網路節點D。 When a network node of a peer-to-peer network forwards a retrieval request, there is a point-to-point request backhaul, and it is possible that the same network node receives multiple retrieval requests. Referring to FIG. 11, the network node B returns the retrieval request to the calling terminal A, and the network node C and the network node D are transmitted back to the network node B, and the network node E retrieves the request and returns the network node D. .

此時藉由生成唯一ID存儲於已經執行過查詢動作的網路節點中作為標記,存儲之後再轉發該檢索請求,如果在收到檢索請求後發現存在唯一ID證明是第二次收到檢索請求,則丟棄該檢索請求不執行查詢動作,防止造成迴圈查詢並節省系統資源。 At this time, by generating a unique ID stored in the network node that has performed the query action as a mark, the search request is forwarded after the storage, and if the unique ID is found to be the second time the search request is received after receiving the search request , discarding the retrieval request does not perform the query action, preventing the loop query and saving system resources.

請參考圖16,本實施例的網路電話30通信方法還包括以下步驟。 Referring to FIG. 16, the network telephone 30 communication method of this embodiment further includes the following steps.

S412:查詢單元51在該點對點網路的其他網路節點中查詢該被叫端的連接資訊成功後重定單元54向該點對點網路發送重定請求。 S412: After the query unit 51 queries the other network nodes of the peer-to-peer network for the connection information of the called end, the re-determination unit 54 sends a re-request to the peer-to-peer network.

S413:重定單元54根據該重定請求刪除該點對點網路的網路節點中的該唯一ID。 S413: The re-determining unit 54 deletes the unique ID in the network node of the peer-to-peer network according to the re-determination request.

唯一ID只針對本次故障發生時的檢索請求,在查詢得到被叫端的連接資訊後需要重定點對點網路以刪除唯一ID,以防止干擾下次新的故障出現後的恢復連線過程。 The unique ID is only for the retrieval request when the fault occurs. After the query obtains the connection information of the called end, the peer-to-peer network needs to be reset to delete the unique ID to prevent interference with the recovery connection process after the next new fault occurs.

請參考圖17,本實施例的網路電話30通信方法還包括以下步驟。 Referring to FIG. 17, the network telephone 30 communication method of this embodiment further includes the following steps.

查詢單元51在該點對點網路中查詢該被叫端的連接資訊失敗時啟用單元55啟用一連接該點對點網路和該被叫端的備援網路。 When the query unit 51 fails to query the connection information of the called end in the peer-to-peer network, the enabling unit 55 enables a backup network connecting the peer-to-peer network and the called end.

在該點對點網路中查詢該被叫端的連接資訊失敗後,說明此時點對點網路的網路節點中還沒有被叫端的通話記錄或者存儲有被叫端連接資訊的網路節點沒有上線,也有可能是被叫端沒有加入該點對點網路中而存在PSTN端。請參考圖12,此時架構一備援網路,藉由該備援網路向該被叫端G發送該連接請求,該備援網路可藉由電信運營商互聯,藉由電信運營商網路連接主叫端A和被叫端G以建立跨系統的電話通信。 After the connection information of the called end fails in the peer-to-peer network, it indicates that the network node of the peer-to-peer network has no call record of the called end or the network node storing the connection information of the called end is not online, and It may be that the called end does not join the peer-to-peer network and there is a PSTN end. Referring to FIG. 12, at this time, a backup network is configured, and the connection request is sent to the called end G by using the backup network, and the backup network can be interconnected by the telecommunication carrier, through the telecommunication carrier network. The road connects the calling end A and the called end G to establish a cross-system telephone communication.

綜上,本創作符合發明專利要件,依法提出專利申請。惟,以上該僅為本創作之較佳例,舉凡熟悉本案技藝之人士,在依本創作精神所作之等效修飾或變化,皆應涵蓋於以下之申請專利範圍內。 In summary, this creation meets the requirements of the invention patent and submits a patent application according to law. However, the above is only a preferred example of the present invention. Any equivalent modifications or variations made by those skilled in the art of the present invention should be included in the scope of the following patent application.

10‧‧‧伺服器 10‧‧‧Server

20‧‧‧路由器 20‧‧‧ router

30‧‧‧網路電話 30‧‧‧Internet phone

40‧‧‧主從式通信模組 40‧‧‧Master-slave communication module

50‧‧‧點對點通信模組 50‧‧‧ peer-to-peer communication module

Claims (6)

一種網路電話的通信裝置,應用於主從式網路與點對點網路中,包括:主從式通信模組,用於藉由該主從式網路的伺服器建立該網路電話的第一電話通信連接,並在每次該第一電話通信連接建立成功時,將該網路電話的連接資訊存儲於該網路電話的緩存中;以及點對點通信模組,用於當該第一電話通信連接建立失敗時,在該網路電話的緩存中查詢該網路電話的連接資訊,並根據該連接資訊藉由該點對點網路建立該網路電話的第二電話通信連接;其中,該點對點通信模組包括:查詢單元,用於在該網路電話的主叫端發送呼叫請求後根據該呼叫請求在該主叫端的緩存中查詢該網路電話的被叫端的連接資訊;以及連接單元,用於根據該連接資訊藉由該點對點網路建立該網路電話的第二電話通信連接;其中,該查詢單元還用於當在該主叫端的緩存中查詢該網路電話的被叫端的連接資訊失敗時,向該點對點網路的其中一個網路節點發送檢索請求,並根據該檢索請求在該網路節點中查詢該被叫端的連接資訊;其中,該點對點通信模組還包括轉發單元,用於當該查詢單元在該網路節點中查詢該被叫端的連接資訊失敗時,將該檢索請求依次轉發至該點對點網路的其他網路節點中,該查詢單元還用於根據該檢索請求在該點對點網路的其他網路節點中查詢該被叫端的連接資訊;以及,該轉發單元還用於將該檢索請求依次轉發至該點對點網路的其他網路節點中之前存儲唯一ID於該網路節點中;該查詢單元還用於在根據該檢索請求在該點對點網路的其他網路節點中查詢該被叫端的連接資訊 之前,在包含該唯一ID的該點對點網路的網路節點接收到該檢索請求時丟棄該檢索請求,並在根據該檢索請求在該點對點網路的其他網路節點中查詢該被叫端的連接資訊之後,將該唯一ID存儲於該點對點網路中沒有該被叫端連接資訊的網路節點中,並根據該檢索請求在該點對點網路的其他網路節點中查詢該被叫端的連接資訊。 A communication device for a network telephone, which is applied to a master-slave network and a point-to-point network, and includes: a master-slave communication module, configured to establish the network telephone by the server of the master-slave network a telephone communication connection, and storing connection information of the network telephone in a cache of the network telephone every time the first telephone communication connection is successfully established; and a point-to-point communication module for using the first telephone When the communication connection fails to be established, the connection information of the network telephone is queried in the cache of the network telephone, and the second telephone communication connection of the network telephone is established by the peer-to-peer network according to the connection information; wherein the point-to-point connection The communication module includes: a query unit, configured to query, in the cache of the calling terminal, the connection information of the called end of the network phone according to the call request after the call request is sent by the calling end of the network phone; and the connection unit, a second telephone communication connection for establishing the network telephone by the peer-to-peer network according to the connection information; wherein the query unit is further configured to query the cache in the calling end When the connection information of the called end of the road phone fails, a retrieval request is sent to one of the network nodes of the peer-to-peer network, and the connection information of the called end is queried in the network node according to the retrieval request; wherein the point-to-point communication The module further includes a forwarding unit, configured to forward the retrieval request to other network nodes of the peer-to-peer network in turn when the query unit fails to query the connection information of the called end in the network node, the query unit And is further configured to query connection information of the called end among other network nodes of the peer-to-peer network according to the retrieval request; and the forwarding unit is further configured to sequentially forward the retrieval request to other network nodes of the peer-to-peer network. Before storing the unique ID in the network node; the query unit is further configured to query the connection information of the called end in other network nodes of the peer-to-peer network according to the retrieval request Previously, when the network node of the peer-to-peer network including the unique ID receives the retrieval request, the retrieval request is discarded, and the connection of the called terminal is queried in other network nodes of the peer-to-peer network according to the retrieval request. After the information, the unique ID is stored in the network node of the peer-to-peer network without the connected information of the called end, and the connection information of the called end is queried in other network nodes of the peer-to-peer network according to the retrieval request. . 如申請專利範圍第1項所述的網路電話的通信裝置,還包括重定單元,用於該查詢單元在該點對點網路的其他網路節點中查詢該被叫端的連接資訊成功後向該點對點網路發送重定請求,並根據該重定請求刪除該點對點網路的網路節點中的該唯一ID。 The communication device of the network telephone according to the first aspect of the invention, further comprising: a re-determining unit, wherein the query unit searches the other network nodes of the peer-to-peer network for the connection information of the called terminal to be successful The network sends a re-request and deletes the unique ID in the network node of the peer-to-peer network according to the re-request. 如申請專利範圍第2項所述的網路電話的通信裝置,其中,該點對點模組還包括啟用單元,該啟用單元用於該查詢單元在該點對點網路中查詢該被叫端的連接資訊失敗時,啟用連接該點對點網路和該網路電話的被叫端的備援網路。 The communication device of the network telephone according to the second aspect of the invention, wherein the point-to-point module further comprises an enabling unit, wherein the enabling unit is configured to: the query unit fails to query the connected information of the called end in the peer-to-peer network When enabled, the backup network connecting the peer-to-peer network and the called end of the VoIP phone is enabled. 一種網路電話的通信方法,應用於主從式網路與點對點網路中,包括:藉由該主從式網路的伺服器建立該網路電話的第一電話通信連接;每次該第一電話通信連接建立成功時,將該網路電話的連接資訊存儲於該網路電話的緩存中;其中,當該第一電話通信連接建立失敗時,執行以下步驟:在該網路電話的緩存中查詢該網路電話的連接資訊;以及根據該連接資訊藉由該點對點網路建立該網路電話的第二電話通信連接;其中,該在該網路電話的緩存中查詢該網路電話的連接資訊具體包括:在該網路電話的主叫端發送呼叫請求後根據該呼叫請求在該主叫端的緩存中查詢該網路電話的被叫端的連接資訊;其中,該在該網路電話的主叫端發送呼叫請求後根據該呼叫請求在該主 叫端的緩存中查詢該網路電話的被叫端的連接資訊之後還包括:當在該主叫端的緩存中查詢該網路電話的被叫端的連接資訊失敗時,向該點對點網路的其中一個網路節點發送檢索請求;以及根據該檢索請求在該網路節點中查詢該被叫端的連接資訊;其中,該根據該檢索請求在該網路節點中查詢該被叫端的連接資訊之後還包括:當在該網路節點中查詢該被叫端的連接資訊失敗時,執行以下步驟:將該檢索請求依次轉發至該點對點網路的其他網路節點中;以及根據該檢索請求在該點對點網路的其他網路節點中查詢該被叫端的連接資訊;以及,該將該檢索請求依次轉發至該點對點網路的其他網路節點中之前還包括:存儲唯一ID於該網路節點中;該根據該檢索請求在該點對點網路的其他網路節點中查詢該被叫端的連接資訊之前還包括:在包含該唯一ID的該點對點網路的網路節點接收到該檢索請求時丟棄該檢索請求;該根據該檢索請求在該點對點網路的其他網路節點中查詢該被叫端的連接資訊之後還包括:將該唯一ID存儲於該點對點網路中沒有該被叫端連接資訊的網路節點中。 A communication method for a network telephone, applied to a master-slave network and a peer-to-peer network, comprising: establishing a first telephone communication connection of the network telephone by a server of the master-slave network; When a telephone communication connection is successfully established, the connection information of the network telephone is stored in the cache of the network telephone; wherein, when the first telephone communication connection establishment fails, the following steps are performed: in the cache of the network telephone Querying the connection information of the network phone; and establishing a second telephone communication connection of the network phone by using the peer-to-peer network according to the connection information; wherein the querying the network phone in the cache of the network phone The connection information specifically includes: after the call request is sent by the calling end of the network phone, querying, according to the call request, the connection information of the called end of the network phone in the cache of the calling end; wherein, the connection information of the called phone After the calling party sends a call request, the call is requested according to the call. After querying the connection information of the called end of the network phone in the cache of the calling end, the method further includes: when querying the connection information of the called end of the network phone in the cache of the calling end, failing to one of the networks of the peer-to-peer network The path node sends a search request; and the connection information of the called end is queried in the network node according to the search request; wherein the querying the connection information of the called end in the network node according to the search request further includes: When the network node fails to query the connection information of the called end, the following steps are performed: forwarding the retrieval request to other network nodes of the peer-to-peer network in turn; and other other points in the peer-to-peer network according to the retrieval request Querying the connection information of the called end in the network node; and before forwarding the search request to the other network nodes of the peer-to-peer network, the method further includes: storing the unique ID in the network node; Before requesting to query the connection information of the called end in other network nodes of the peer-to-peer network, the method further includes: at the point including the unique ID The network node of the peer network discards the retrieval request when receiving the retrieval request; the querying the connection information of the called terminal in the other network nodes of the peer-to-peer network according to the retrieval request further includes: the unique ID Stored in a network node in the peer-to-peer network that does not have the called end connection information. 如申請專利範圍第4項所述的網路電話的通信方法,其中,該根據該檢索請求在該點對點網路的其他網路節點中查詢該被叫端的連接資訊,並將該唯一ID存儲於該點對點網路的其他網路節點中之後還包括:在該點對點網路的其他網路節點中查詢該被叫端的連接資訊成功後向該 點對點網路發送重定請求;以及根據該重定請求刪除該點對點網路的網路節點中的該唯一ID。 The communication method of the network telephone according to claim 4, wherein the other network node of the peer-to-peer network queries the connection information of the called end according to the retrieval request, and stores the unique ID in the The other network nodes of the peer-to-peer network further include: after querying the connection information of the called end in the other network nodes of the peer-to-peer network, The peer-to-peer network sends a re-request; and the unique ID in the network node of the peer-to-peer network is deleted according to the re-request. 如申請專利範圍第4項所述的網路電話的通信方法,還包括:在該點對點網路中查詢該被叫端的連接資訊失敗時啟用連接該點對點網路和該被叫端的備援網路。 The method for communicating the Internet telephony according to claim 4, further comprising: enabling the connection of the peer-to-peer network and the backup network of the called end when the connection information of the called end fails in the peer-to-peer network .
TW103111831A 2014-03-28 2014-03-28 Apparatus for communicating with network phone and the method thereby TWI565290B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW103111831A TWI565290B (en) 2014-03-28 2014-03-28 Apparatus for communicating with network phone and the method thereby

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW103111831A TWI565290B (en) 2014-03-28 2014-03-28 Apparatus for communicating with network phone and the method thereby

Publications (2)

Publication Number Publication Date
TW201537941A TW201537941A (en) 2015-10-01
TWI565290B true TWI565290B (en) 2017-01-01

Family

ID=54851047

Family Applications (1)

Application Number Title Priority Date Filing Date
TW103111831A TWI565290B (en) 2014-03-28 2014-03-28 Apparatus for communicating with network phone and the method thereby

Country Status (1)

Country Link
TW (1) TWI565290B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW200931942A (en) * 2008-01-07 2009-07-16 Univ Nat Sun Yat Sen Network telephone system and communication method
US20100223463A1 (en) * 2005-08-05 2010-09-02 Yasuhiko Sakaguchi Communication system, key managing/distributing server, terminal apparatus, and data communication method used therefor, and program
US20110196973A1 (en) * 2010-02-05 2011-08-11 Interdigital Patent Holdings, Inc. Method and apparatus for inter-device session continuity (idsc) of multi media streams
CN102438018A (en) * 2011-12-16 2012-05-02 北京邮电大学 Peer-to-peer (P2P)-voice over Internet protocol (VoIP) network relay node selection method based on autonomous system
CN102595645A (en) * 2011-01-07 2012-07-18 米特尔网络公司 Call processing telecommunication system and methods thereof in a wifi network
CN103079171A (en) * 2012-12-28 2013-05-01 侯荣涛 Acentric command and dispatch communication system and call processing method thereof

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100223463A1 (en) * 2005-08-05 2010-09-02 Yasuhiko Sakaguchi Communication system, key managing/distributing server, terminal apparatus, and data communication method used therefor, and program
TW200931942A (en) * 2008-01-07 2009-07-16 Univ Nat Sun Yat Sen Network telephone system and communication method
US20110196973A1 (en) * 2010-02-05 2011-08-11 Interdigital Patent Holdings, Inc. Method and apparatus for inter-device session continuity (idsc) of multi media streams
CN102595645A (en) * 2011-01-07 2012-07-18 米特尔网络公司 Call processing telecommunication system and methods thereof in a wifi network
CN102438018A (en) * 2011-12-16 2012-05-02 北京邮电大学 Peer-to-peer (P2P)-voice over Internet protocol (VoIP) network relay node selection method based on autonomous system
CN103079171A (en) * 2012-12-28 2013-05-01 侯荣涛 Acentric command and dispatch communication system and call processing method thereof

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
"Peer-to-Peer Internet Telephony using SIP",Kundan Singh, Henning Schulzrinne,2004/10/31,[ http://www.cs.columbia.edu/techreports/cucs-044-04.pdf] J. Shi et al., "A Hierarchical Peer-to-Peer SIP System for Heterogeneous Overlays Interworking," IEEE GLOBECOM 2007 - IEEE Global Telecommunications Conference, Washington, DC, 2007, pp. 93-97.,2007/11/26~30 *

Also Published As

Publication number Publication date
TW201537941A (en) 2015-10-01

Similar Documents

Publication Publication Date Title
JP6047229B2 (en) Name-based neighbor discovery and multi-hop service discovery in information-centric networks
WO2016177056A1 (en) Data transmission method, device and system for video conference
JP2007013970A (en) Efficient load balancing and heartbeat mechanism for telecommunication endpoint
WO2006131037A1 (en) A system and method for achieving the data communication
WO2018090386A1 (en) Method, device and system for processing abnormities of nf modules
EP2858413A1 (en) Service node switching method and system
WO2011144080A2 (en) Communication method, system and apparatus
US8233400B2 (en) Methods, systems, and computer readable media for verifying the availability of an internet protocol (IP) media router during a call setup
WO2014114088A1 (en) Method and service platform for implementing broadband service function in next generation network (ngn)
JP2008167359A (en) Site dividing method and file updating method in ip telephone system, and ip telephone system
JP2001168918A (en) Method for connecting first user terminal to second user terminal, related device and software module
EP2197169A1 (en) VoIP registration with multiple call servers
US8493892B1 (en) Resolving conflicts in distributed systems
TWI565290B (en) Apparatus for communicating with network phone and the method thereby
JP2019518382A5 (en)
CN101340457B (en) Peer-to-peer network starting method and system independent of central server
WO2022242426A1 (en) Session binding relationship processing method and apparatus, electronic device, and readable medium
WO2012167710A1 (en) Service backup method and system in network with heterogeneous nodes
WO2009086763A1 (en) Method, system and device for switching source
JP4037432B2 (en) Telephone exchange system, telephone exchange method, and telephone exchange program
JP6807952B2 (en) Methods and devices for determining the communication network that provides communication services to terminal communication devices
CN104954592B (en) The communication means and device of the networking telephone
WO2019161721A1 (en) Correspondence processing method and device based on interworking rcs system
JP2009033453A (en) Telephone exchange apparatus and control method used in the telephone exchange apparatus
JP2008527775A (en) General-purpose port user agents that can cache routing information between sessions and related methods

Legal Events

Date Code Title Description
MM4A Annulment or lapse of patent due to non-payment of fees