[go: up one dir, main page]

TWI398156B - Modem and method of processing calling packet thereof - Google Patents

Modem and method of processing calling packet thereof Download PDF

Info

Publication number
TWI398156B
TWI398156B TW098120906A TW98120906A TWI398156B TW I398156 B TWI398156 B TW I398156B TW 098120906 A TW098120906 A TW 098120906A TW 98120906 A TW98120906 A TW 98120906A TW I398156 B TWI398156 B TW I398156B
Authority
TW
Taiwan
Prior art keywords
phone
address
call
request packet
call request
Prior art date
Application number
TW098120906A
Other languages
Chinese (zh)
Other versions
TW201101791A (en
Inventor
Pu-Cun Du
Bo Hong
Yao Shun Chuang
Original Assignee
Hon Hai Prec Ind 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 Hon Hai Prec Ind Co Ltd filed Critical Hon Hai Prec Ind Co Ltd
Priority to TW098120906A priority Critical patent/TWI398156B/en
Publication of TW201101791A publication Critical patent/TW201101791A/en
Application granted granted Critical
Publication of TWI398156B publication Critical patent/TWI398156B/en

Links

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/50Reducing energy consumption in communication networks in wire-line communication networks, e.g. low power modes or reduced link rate

Landscapes

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

Description

數據機及其處理通話封包的方法Data machine and method for processing same

本發明涉及網路通訊,尤其涉及一種數據機及其處理通話封包的方法。The present invention relates to network communications, and more particularly to a data machine and a method thereof for processing a call packet.

習知的數據機提供至少兩個埠,分別與IP電話機及個人電腦相連,以及藉由有線電視網及VoIP網路與伺服器相連,用來處理IP電話機的通話封包及個人電腦的通話封包。但現有的具有錄音、語音留言等多媒體功能的IP電話機價格昂貴,且功能有限,而個人電腦本身具有多媒體功能與軟體電話的功能。The conventional data machine provides at least two ports, which are respectively connected to the IP telephone and the personal computer, and connected to the server through the cable television network and the VoIP network, and are used for processing the call packets of the IP telephone and the call packets of the personal computer. However, the existing IP telephones with multimedia functions such as recording and voice messages are expensive and have limited functions, and the personal computers themselves have the functions of multimedia functions and software phones.

然而習知的數據機不能解決由個人電腦中的軟體電話利用IP電話的通訊線路來建立通話。However, conventional data machines cannot solve the problem of establishing a call by a software telephone in a personal computer using an IP telephone communication line.

有鑒於此,有必要提供一種數據機,用於實現通訊終端中安裝的軟體電話使用實體IP電話之通訊線路來建立通話。In view of this, it is necessary to provide a data machine for implementing a software telephone installed in a communication terminal to establish a call using a communication line of a physical IP telephone.

此外,還需提供一種處理通話封包的方法,用於實現通訊終端中安裝的軟體電話使用實體IP電話之通訊線路來建立通話。In addition, there is a need to provide a method for processing a call packet for implementing a softphone installed in a communication terminal to establish a call using a communication line of a physical IP phone.

另,還需提供另一種處理通話封包的方法,用於實現通訊終端中安裝的軟體電話使用實體IP電話之通訊線路來建立通話。In addition, another method for processing the call packet needs to be provided for realizing that the software phone installed in the communication terminal uses the communication line of the physical IP phone to establish a call.

本發明實施方式中的數據機用於實現通訊終端中安裝的軟體電話使用實體IP電話之通訊線路來建立通話,所述數據機包括通訊模組、判斷模組、記錄模組、修改模組及處理模組。通訊模組用於接收來自軟體電話的通話請求封包,其中,通話請求封包包括源IP位址與埠號。判斷模組用於判斷通話請求封包是否包含特殊標識,並在所通話請求封包包含特殊標識時判斷實體IP電話是否處於空閒狀態,其中特殊標識表示軟體電話需要使用實體IP電話的通訊線路來建立通話。記錄模組用於在實體IP電話處於空閒狀態時記錄通話請求封包的源IP位址與埠號。修改模組用於將通話請求封包的源IP位址修改為實體IP電話的IP位址,其中通訊模組還用於將修改後的通話請求封包轉發至伺服器以及接收來自伺服器的通話回應封包,通話回應封包包括目的IP位址,修改模組還用於將通話回應封包的目的IP位址修改為記錄模組中記錄的源IP位址,通訊模組還用於發送修改後的通話回應封包至軟體電話以建立通話。The data machine in the embodiment of the present invention is configured to implement a softphone installed in a communication terminal to establish a call by using a communication line of a physical IP phone, where the data machine includes a communication module, a judgment module, a record module, a modification module, and Processing module. The communication module is configured to receive a call request packet from the software phone, where the call request packet includes a source IP address and an nickname. The determining module is configured to determine whether the call request packet includes a special identifier, and determine whether the physical IP phone is in an idle state when the called request packet includes a special identifier, wherein the special identifier indicates that the software phone needs to use the communication line of the physical IP phone to establish a call. . The recording module is configured to record the source IP address and the nickname of the call request packet when the physical IP phone is in an idle state. The modification module is configured to modify the source IP address of the call request packet to an IP address of the physical IP phone, wherein the communication module is further configured to forward the modified call request packet to the server and receive the call response from the server. The packet response packet includes the destination IP address, and the modification module is further configured to modify the destination IP address of the call response packet to the source IP address recorded in the recording module, and the communication module is further configured to send the modified call. Respond to the softphone to establish a call.

本發明實施方式中的處理通話封包的方法用於數據機中來實現通訊終端中安裝的軟體電話使用實體IP電話之通訊線路來建立通話,所述處理通話封包的方法包括:接收來自軟體電話的通話請求封包,其中通話請求封包包括源IP位址及發送所述通話請求封包的埠號,源IP位址為通訊終端的IP位址;判斷通話請求封包是否包含一特殊標識,其中特殊標識表示所述電話需要使用實體IP電話的通訊線路來建立通話;若通話請求封包有一特殊標識,則判斷實體IP電話是否處於空閒中;若實體IP電話處於空閒中,則記錄通話請求封包的的源IP位址與埠號;修改通話請求封包的源IP位址為實體IP電話的IP位址並轉發通話請求封包至伺服器;接收來自伺服器的通話回應封包,其中通話回應封包包括目的IP位址;及修改通話回應封包的目的IP位址為所記錄的源IP位址,並根據所記錄的埠號將通話回應封包發送到軟體電話,以建立通話。The method for processing a call packet in the embodiment of the present invention is used in a data machine to implement a softphone installed in a communication terminal to establish a call by using a communication line of a physical IP phone, and the method for processing a call packet includes: receiving a call from a software phone a call request packet, where the call request packet includes a source IP address and an nickname for sending the call request packet, and the source IP address is an IP address of the communication terminal; determining whether the call request packet includes a special identifier, wherein the special identifier indicates The phone needs to use a communication line of the physical IP phone to establish a call; if the call request packet has a special identifier, it is determined whether the physical IP phone is idle; if the physical IP phone is idle, the source IP of the call request packet is recorded. The address and the nickname; modify the source IP address of the call request packet to be the IP address of the physical IP phone and forward the call request packet to the server; receive the call response packet from the server, wherein the call response packet includes the destination IP address And modify the destination IP address of the call response packet to the recorded source IP address, and The recorded nickname sends a call response packet to the softphone to establish a call.

本發明另一實施方式中處理通話封包的方法包括:接收來自伺服器的通話請求封包,其中通話請求封包包括目的IP位址;判斷實體IP電話是否處於空閒狀態;若實體IP電話處於空閒狀態,則判斷軟體電話是否處於空閒狀態;若軟體電話處於空閒狀態,則將通話請求封包的目的IP位址修改為通訊終端的IP位址;發送修改後的通話請求封包至軟體電話;接收來自軟體電話的通話回應封包,其中通話回應封包包括源IP位址;將通話回應封包的源IP位址修改為實體IP電話的IP位址;及發送修改後的通話回應封包至伺服器,以建立通話。A method for processing a call packet in another embodiment of the present invention includes: receiving a call request packet from a server, wherein the call request packet includes a destination IP address; determining whether the entity IP phone is in an idle state; and if the entity IP phone is in an idle state, Then, it is determined whether the software phone is in an idle state; if the software phone is in an idle state, the destination IP address of the call request packet is modified to the IP address of the communication terminal; the modified call request packet is sent to the soft phone; and the received call is from the soft phone. The call response packet, wherein the call response packet includes a source IP address; the source IP address of the call response packet is modified to an IP address of the physical IP phone; and the modified call response packet is sent to the server to establish a call.

藉由以下對具體實施方式詳細的描述並結合附圖,將可輕易的瞭解上述內容及此項發明之技術效果。The above and the technical effects of the invention can be easily understood from the following detailed description of the embodiments and the accompanying drawings.

請參閱圖1,所示為本發明數據機10一實施方式的應用環境圖。在本實施方式中,數據機10與通訊終端20’及實體IP電話30相連,另一端經網路40與伺服器50相連,用於處理通話封包。軟體電話20駐存於該通訊終端20’中,可以借助通訊終端20’來使用實體IP電話30的通訊線路以傳送通話封包從而建立通話。在本實施方式中,軟體電話20根據媒體閘道控制協定(Media gateway Control Protocol,MGCP)進行通訊,該通話封包包括通話請求封包與通話回應封包。在本實施方式中,軟體電話20所寄存的通訊終端20’可以是桌上型電腦或膝上型電腦等,其與實體IP電話30分別對應不同的IP地址。在本實施方式中,網路40可為有線電視網路或VoIP網路,伺服器50為VoIP運營商的伺服器。在本發明的其他實施方式中,數據機10可以接複數實體IP電話30,且該等實體IP電話30可共用一個IP地址,但有不同的電話號碼及通訊線路。Referring to FIG. 1, an application environment diagram of an embodiment of a data machine 10 of the present invention is shown. In the present embodiment, the data machine 10 is connected to the communication terminal 20' and the physical IP telephone 30, and the other end is connected to the server 50 via the network 40 for processing the call packet. The softphone 20 resides in the communication terminal 20', and the communication line of the physical IP telephone 30 can be used by the communication terminal 20' to transmit a call packet to establish a call. In the present embodiment, the softphone 20 performs communication according to a Media Gateway Control Protocol (MGCP), and the call packet includes a call request packet and a call response packet. In the present embodiment, the communication terminal 20' registered by the software telephone 20 may be a desktop computer or a laptop computer or the like, which respectively corresponds to a different IP address from the physical IP telephone 30. In this embodiment, the network 40 can be a cable television network or a VoIP network, and the server 50 is a server of a VoIP carrier. In other embodiments of the present invention, the data machine 10 can access a plurality of physical IP phones 30, and the physical IP phones 30 can share an IP address but have different telephone numbers and communication lines.

請參閱圖2,所示為圖1中的數據機10一實施方式中的模組圖。在本實施方式中,數據機10包括通訊模組110、判斷模組120、記錄模組130、修改模組140及處理模組150。處理模組150用於執行通訊模組110、判斷模組120、記錄模組130及修改模組140。Referring to FIG. 2, a block diagram of an embodiment of the data machine 10 of FIG. 1 is shown. In this embodiment, the data machine 10 includes a communication module 110, a determination module 120, a recording module 130, a modification module 140, and a processing module 150. The processing module 150 is configured to execute the communication module 110, the determination module 120, the recording module 130, and the modification module 140.

通訊模組110用於接收來自軟體電話20的通話請求封包,其中,通話請求封包包括源IP位址與埠號。在本實施方式中,通話請求封包即為用戶撥打IP電話時所發送的資料封包,用於請求建立VoIP通話,該通話請求封包的源IP位址為該軟體電話20所在通訊終端20’的IP位址,埠號為該通訊終端20’發送該通話請求封包的埠號。The communication module 110 is configured to receive a call request packet from the software phone 20, where the call request packet includes a source IP address and an nickname. In this embodiment, the call request packet is a data packet sent by the user when dialing the IP phone, and is used to request to establish a VoIP call, and the source IP address of the call request packet is the IP of the communication terminal 20' where the software phone 20 is located. The address, the nickname is the nickname for the communication terminal 20' to send the call request packet.

判斷模組120用於判斷該通話請求封包是否還包含該特殊標識,並在通話請求封包包含特殊標識時判斷實體IP電話30是否處於空閒狀態。在本實施方式中,該特殊標識表示軟體電話20需要使用實體IP電話30的通訊線路來建立通話,該特殊標識可為用戶根據自己的需要設定,如,當軟體電話20使用實體IP電話30的通訊線路撥打電話時,可在所撥打的電話號碼前加字串“#000#”,該字串“#000#”即為特殊標識。在本實施方式中,若該通話請求封包未包含該特殊標識,通訊模組110根據會話啟動協定(Session Initiation Protocol,SIP)處理該通話請求封包。The determining module 120 is configured to determine whether the call request packet further includes the special identifier, and determine whether the entity IP phone 30 is in an idle state when the call request packet includes a special identifier. In the present embodiment, the special identifier indicates that the software telephone 20 needs to establish a call using the communication line of the physical IP phone 30, and the special identifier can be set by the user according to his own needs, for example, when the software phone 20 uses the physical IP phone 30. When the communication line makes a call, the string "#000#" can be added before the dialed telephone number, and the string "#000#" is a special identifier. In this embodiment, if the call request packet does not include the special identifier, the communication module 110 processes the call request packet according to a Session Initiation Protocol (SIP).

記錄模組130用於在實體IP電話機30處於空閒狀態時記錄通話請求封包的源IP位址與埠號。在本實施方式中,記錄模組130記錄通話請求封包的源IP位址,以便在接收通話回應封包時修改模組130能對該通話回應封包的目的IP位址進行修改,以使通訊模組110能將修改後的通話回應封包發送到軟體電話20中的相應埠。The recording module 130 is configured to record the source IP address and the nickname of the call request packet when the physical IP phone 30 is in an idle state. In this embodiment, the recording module 130 records the source IP address of the call request packet, so that when the call response packet is received, the modification module 130 can modify the destination IP address of the call response packet to enable the communication module. 110 can send the modified call response packet to the corresponding port in the software phone 20.

修改模組140用於將通話請求封包的源IP位址修改為實體IP電話30的IP位址。通訊模組110則將修改模組140修改後的通話請求封包轉發至伺服器50。當通訊模組110接收到來自伺服器50的通話回應封包,其中通話回應封包包括目的IP位址,修改模組140將通話回應封包的目的IP位址修改為記錄模組130所記錄的源IP位址,即該軟體電話20所在通訊終端20’的IP位址,通訊模組110再將該通話回應封包根據修改後的目的IP位址發送給軟體電話20,從而建立起通話。由此,軟體電話20實現了使用實體IP電話30的通訊線路來建立通話。The modification module 140 is configured to modify the source IP address of the call request packet to the IP address of the physical IP phone 30. The communication module 110 forwards the modified call request packet of the modification module 140 to the server 50. When the communication module 110 receives the call response packet from the server 50, wherein the call response packet includes the destination IP address, the modification module 140 modifies the destination IP address of the call response packet to the source IP recorded by the recording module 130. The address, that is, the IP address of the communication terminal 20' where the software phone 20 is located, the communication module 110 sends the call response packet to the software phone 20 according to the modified destination IP address, thereby establishing a call. Thus, the software telephone 20 implements the communication line using the physical IP telephone 30 to establish a call.

在本實施方式中,通訊模組110不僅接收與轉發來自軟體電話20與實體IP電話30的通話封包,而且接收與轉發來自伺服器50的通話封包。在其他實施方式中,通訊模組110還可用於接收與轉發其他網路設備的通話封包。In the present embodiment, the communication module 110 not only receives and forwards the call packets from the softphone 20 and the physical IP phone 30, but also receives and forwards the call packets from the server 50. In other embodiments, the communication module 110 can also be used to receive and forward call packets of other network devices.

若通訊模組110接收到來自伺服器50的通話請求封包,該判斷模組120判斷該實體IP電話30是否處於空閒狀態,並在實體IP電話30處於空閒狀態時進一步判斷軟體電話20是否處於空閒狀態。If the communication module 110 receives the call request packet from the server 50, the determining module 120 determines whether the physical IP phone 30 is in an idle state, and further determines whether the software phone 20 is idle when the entity IP phone 30 is in an idle state. status.

修改模組140還用於在軟體電話20處於空閒狀態時修改通話請求封包的目的IP位址為軟體電話20所在通訊終端20’的IP位址。The modification module 140 is further configured to modify the destination IP address of the call request packet to be the IP address of the communication terminal 20' where the softphone 20 is located when the software phone 20 is in an idle state.

通訊模組110將修改後的通話請求封包發送至軟體電話20。在本實施方式中,軟體電話20在收到通話請求封包後,會返回通話回應封包。此時,通訊模組110接收來自軟體電話20的通話回應封包。The communication module 110 sends the modified call request packet to the software phone 20. In this embodiment, after receiving the call request packet, the software phone 20 returns a call response packet. At this time, the communication module 110 receives the call response packet from the software phone 20.

在本實施方式中,數據機10的通訊模組110同時將未修改的通話請求封包發送至實體IP電話30。這樣,軟體電話20與實體IP電話30可以同時接收到來自伺服器50的通話請求,用戶可以選擇軟體電話20與實體IP電話30來接聽電話。In the present embodiment, the communication module 110 of the data machine 10 simultaneously transmits the unmodified call request packet to the entity IP phone 30. Thus, the software phone 20 and the physical IP phone 30 can simultaneously receive a call request from the server 50, and the user can select the software phone 20 and the physical IP phone 30 to answer the call.

修改模組140還用於將通話回應封包的源IP位址修改為實體IP電話的IP位址。通訊模組110還用於將修改後的通話回應封包發送至伺服器50,以建立通話。The modification module 140 is further configured to modify the source IP address of the call response packet to the IP address of the physical IP phone. The communication module 110 is further configured to send the modified call response packet to the server 50 to establish a call.

因數據機10修改了包含特殊標識的通話請求封包及相應的通話回應封包的IP位址,使得軟體電話20可以借實體IP電話30的通訊線路來建立通話,這樣,用戶不需要購買帶有多媒體功能的實體IP電話30而是通過通訊終端20’中的軟體電話20便可以實現與其他實體IP電話機進行多媒體通話,如視頻電話、語音留言及電話錄音等。Since the data machine 10 modifies the IP address of the call request packet including the special identifier and the corresponding call response packet, the software phone 20 can establish a call by using the communication line of the physical IP phone 30, so that the user does not need to purchase the multimedia. The functional physical IP phone 30 can realize multimedia calls, such as video calls, voice messages, and telephone recordings, with other physical IP phones through the software phone 20 in the communication terminal 20'.

請參閱圖3,所示為數據機10處理通話封包的方法一實施方式的流程圖。該方法藉由圖1與圖2所示之裝置與模組來實現。在本實施方式中,數據機10經初始化後,若接收到來自軟體電話20的通話請求封包,則執行該處理通話封包的方法。Referring to FIG. 3, a flow chart of an embodiment of a method for the data processor 10 to process a call packet is shown. The method is implemented by the apparatus and module shown in FIGS. 1 and 2. In the present embodiment, after the data machine 10 is initialized, if a call request packet from the soft body phone 20 is received, the method of processing the call packet is executed.

在步驟S300,通訊模組110接收來自軟體電話20的通話請求封包。在本實施方式中,通話請求封包可以為軟體電話20利用自己的VoIP網路線路撥打IP電話,也可是軟體電話20通過實體IP電話30的通訊線路撥打電話。如果該通話請求封包為軟體電話20通過實體IP電話30的通訊線路撥打電話,則該通話請求封包包括特殊標識、源IP位址及發送該通話請求封包的埠號,源IP位址為通訊終端20’的IP位址;如果該通話請求封包為軟體電話20利用自己的VoIP網路線路撥打IP電話,則該通話請求封包不包括該特殊標識。特殊標識可為用戶根據自己的需要設定,如,軟體電話30使用實體IP電話機30的通訊線路撥打電話時,可在所撥打的電話號碼前加字串“#000#”,此時,字串“#000#”即為該特殊標識。In step S300, the communication module 110 receives the call request packet from the software phone 20. In the present embodiment, the call request packet may be that the software phone 20 makes an IP call using its own VoIP network line, or the software phone 20 makes a call through the communication line of the physical IP phone 30. If the call request packet is a call made by the software phone 20 through the communication line of the physical IP phone 30, the call request packet includes a special identifier, a source IP address, and an nickname for transmitting the call request packet, and the source IP address is a communication terminal. The IP address of 20'; if the call request packet is an IP phone made by the soft phone 20 using its own VoIP network line, the call request packet does not include the special identifier. The special identifier can be set by the user according to his own needs. For example, when the software telephone 30 makes a call using the communication line of the physical IP telephone 30, the string "#000#" can be added before the dialed telephone number. At this time, the string "#000#" is the special identifier.

在步驟S301,判斷模組120判斷通話請求封包是否包含特殊標識。In step S301, the determination module 120 determines whether the call request packet contains a special identifier.

若通話請求封包包含特殊標識,則在步驟S302,判斷模組120判斷實體IP電話30是否處於空閒中。If the call request packet includes a special identifier, then in step S302, the determination module 120 determines whether the physical IP phone 30 is idle.

若實體IP電話30處於空閒中,則在步驟S303,記錄模組130記錄通話請求封包的的源IP位址與發送該通話請求封包的埠號。在本實施方式中,記錄模組130所記錄的源IP位址為通訊終端20’的IP位址,且記錄模組130記錄通話請求封包的源IP位址與發送該通話請求封包的埠號是為了在接收通話回應封包時修改模組130能對該通話回應封包的目的IP位址進行修改,以及通訊模組110能將修改後的該通話回應封包發送到軟體電話20中的相應埠。If the physical IP phone 30 is idle, in step S303, the recording module 130 records the source IP address of the call request packet and the nickname for transmitting the call request packet. In this embodiment, the source IP address recorded by the recording module 130 is the IP address of the communication terminal 20', and the recording module 130 records the source IP address of the call request packet and the nickname for sending the call request packet. In order to modify the destination IP address of the call response packet when the call response packet is received, the communication module 110 can send the modified call response packet to the corresponding port in the software phone 20.

在步驟S304,修改模組140修改通話請求封包的源IP位址為實體IP電話30的IP位址。In step S304, the modification module 140 modifies the source IP address of the call request packet to the IP address of the entity IP phone 30.

在步驟S305,通訊模組110轉發修改後的通話請求封包至伺服器50。在本實施方式中,伺服器50為VoIP運營商所提供的伺服器。In step S305, the communication module 110 forwards the modified call request packet to the server 50. In the present embodiment, the server 50 is a server provided by a VoIP carrier.

在步驟S306,通訊模組110接收來自伺服器50的通話回應封包,其中該通話回應封包包括目的IP位址。In step S306, the communication module 110 receives the call response packet from the server 50, wherein the call response packet includes a destination IP address.

在本實施方式中,通話回應封包與通話請求封包是一一對應的,只要軟體電話20及實體IP電話30發送通話請求封包給伺服器50,則伺服器50會自動回應一個與該通話請求封包對應的通話回應封包。In this embodiment, the call response packet and the call request packet are in one-to-one correspondence. If the software phone 20 and the physical IP phone 30 send the call request packet to the server 50, the server 50 automatically responds with a call request packet. The corresponding call response packet.

在步驟S307,修改模組140將通話回應封包的目的IP位址修改為記錄模組130中所記錄的源IP位址。這樣,用戶可以通過通訊終端20’中安裝的軟體電話20經VoIP網路與伺服器50進行多媒體通話。In step S307, the modification module 140 modifies the destination IP address of the call response packet to the source IP address recorded in the recording module 130. Thus, the user can make a multimedia call with the server 50 via the VoIP network via the software phone 20 installed in the communication terminal 20'.

在步驟S308,通訊模組110根據記錄模組130所記錄的埠號將通話回應封包發送到軟體電話20,以建立通話。In step S308, the communication module 110 sends a call response packet to the software phone 20 according to the nickname recorded by the recording module 130 to establish a call.

若通話請求封包未包含特殊標識,則在步驟S309,數據機10按正常流程處理該通話請求封包。在本實施方式中,該正常流程為數據機10根據會話啟動協定處理通話請求封包。If the call request packet does not contain a special identifier, the data machine 10 processes the call request packet in a normal flow in step S309. In the present embodiment, the normal flow is that the data machine 10 processes the call request packet according to the session initiation protocol.

若實體IP電話機30未處於空閒狀態,則通訊模組110丟棄該通話請求封包。If the physical IP phone 30 is not in an idle state, the communication module 110 discards the call request packet.

請參閱圖4,所示為數據機10處理通話封包的方法另一實施方式的流程圖。該方法藉由圖1與圖2所示之裝置與模組來實現。在本實施方式中,數據機10經初始化後,若接收到來自伺服器50的通話請求封包,則執行該處理通話封包的方法。Referring to FIG. 4, a flow chart of another embodiment of a method for the data processor 10 to process a call packet is shown. The method is implemented by the apparatus and module shown in FIGS. 1 and 2. In the present embodiment, after the data machine 10 is initialized, if a call request packet from the server 50 is received, the method of processing the call packet is executed.

在步驟S400,通訊模組110接收來自伺服器50的通話請求封包,在本實施方式中,通話請求封包包括目的IP位址。In step S400, the communication module 110 receives the call request packet from the server 50. In the present embodiment, the call request packet includes a destination IP address.

在步驟S402,判斷模組120判斷實體IP電話30是否處於空閒中。In step S402, the determination module 120 determines whether the physical IP phone 30 is in an idle state.

若實體IP電話30處於空閒中,則在步驟S404,判斷模組120判斷軟體電話20是否處於空閒狀態。If the physical IP phone 30 is idle, then in step S404, the determination module 120 determines whether the software phone 20 is in an idle state.

若軟體電話20處於空閒狀態,則在步驟S406,修改模組130將該通話請求封包的目的IP位址修改為通訊終端20’的IP位址。在本實施方式中,修改該通話請求封包的IP位址的目的是為了讓實體IP電話30及安裝在通訊終端20’中的軟體電話20都能同時響鈴,用戶可以選擇其中一個用來建立通話。If the softphone 20 is in the idle state, then in step S406, the modification module 130 modifies the destination IP address of the call request packet to the IP address of the communication terminal 20'. In this embodiment, the purpose of modifying the IP address of the call request packet is to allow both the physical IP phone 30 and the software phone 20 installed in the communication terminal 20' to ring at the same time, and the user can select one of them to establish call.

在步驟S408,通訊模組110將該修改後的通話請求封包發送至軟體電話20,以及同時將未修改的通話請求封包發送至實體IP電話30。在本實施方式中,實體IP電話30與軟體電話20同時收到通話請求封包,用戶可以接聽其中的任何一個電話。在本實施方式中,用戶使用軟體電話20接聽電話。In step S408, the communication module 110 transmits the modified call request packet to the software phone 20, and simultaneously transmits the unmodified call request packet to the entity IP phone 30. In the present embodiment, the physical IP phone 30 and the software phone 20 simultaneously receive a call request packet, and the user can answer any of the phones. In the present embodiment, the user answers the call using the softphone 20.

在步驟S410,通訊模組110接收來自軟體電話20的通話回應封包,其中,該通話回應封包包括源IP地址。In step S410, the communication module 110 receives a call response packet from the software phone 20, wherein the call response packet includes a source IP address.

在步驟S412,修改模組140修改通話回應封包的源IP位址為實體IP電話30的IP位址。In step S412, the modification module 140 modifies the source IP address of the call response packet to the IP address of the physical IP phone 30.

在步驟S414,通訊模組110發送修改後的通話回應封包至伺服器50。這樣軟體電話20與伺服器50之間的通話就建立了。In step S414, the communication module 110 sends the modified call response packet to the server 50. Thus, a call between the software telephone 20 and the server 50 is established.

若實體IP電話30未處於空閒狀態,則在步驟S416,通訊模組110丟棄該通話請求封包。If the physical IP phone 30 is not in the idle state, the communication module 110 discards the call request packet in step S416.

若軟體電話20未處於空閒狀態,則在步驟S418,數據機10利用實體IP電話30來建立通話。If the software telephone 20 is not in the idle state, the data machine 10 uses the physical IP telephone 30 to establish a call in step S418.

在本發明的數據機10及其處理通話封包的方法通過通訊模組110、判斷模組120、記錄模組130及修改模組140來修改通話請求封包及通話回應封包的IP位址,以實現通訊終端20’的軟體電話20使用實體IP電話30的通訊線路來建立通話,使用戶無需購買價格昂貴的帶有多媒體功能的實體IP電話30,而是藉由安裝在通訊終端20’中的軟體電話20即可實現多媒體通話。The data machine 10 and the method for processing the call packet of the present invention modify the IP address of the call request packet and the call response packet through the communication module 110, the determination module 120, the recording module 130, and the modification module 140, so as to implement The software telephone 20 of the communication terminal 20' uses the communication line of the physical IP telephone 30 to establish a call, so that the user does not need to purchase an expensive multimedia IP phone 30 with multimedia function, but by software installed in the communication terminal 20'. The phone 20 can implement a multimedia call.

綜上所述,本發明符合發明專利要件,爰依法提出專利申請。惟,以上所述者僅為本發明之較佳實施例,舉凡熟悉本案技藝之人士,在爰依本案發明精神所作之等效修飾或變化,皆應包含於以下之申請專利範圍內。In summary, the present invention complies with the requirements of the invention patent and submits a patent application according to law. The above description is only the preferred embodiment of the present invention, and equivalent modifications or variations made by those skilled in the art of the present invention should be included in the following claims.

10‧‧‧數據機10‧‧‧Data machine

20‧‧‧軟體電話20‧‧‧Softphone

20’‧‧‧通訊終端20’‧‧‧Communication terminal

30‧‧‧實體IP電話30‧‧‧Physical IP Phone

40‧‧‧網路40‧‧‧Network

50‧‧‧伺服器50‧‧‧Server

110‧‧‧通訊模組110‧‧‧Communication module

120‧‧‧判斷模組120‧‧‧Judgement module

130‧‧‧記錄模組130‧‧‧recording module

140‧‧‧修改模組140‧‧‧Modified module

150‧‧‧處理模組150‧‧‧Processing module

圖1為本發明數據機一實施方式的應用環境圖。FIG. 1 is an application environment diagram of an embodiment of a data machine according to the present invention.

圖2為圖1中的數據機一實施方式的模組圖。2 is a block diagram of an embodiment of the data machine of FIG. 1.

圖3為本發明處理通話封包的方法一實施方式的流程圖。3 is a flow chart of an embodiment of a method for processing a call packet according to the present invention.

圖4為本發明處理通話封包的方法另一實施方式的流程圖。4 is a flow chart of another embodiment of a method for processing a call packet according to the present invention.

10‧‧‧數據機 10‧‧‧Data machine

110‧‧‧通訊模組 110‧‧‧Communication module

120‧‧‧判斷模組 120‧‧‧Judgement module

130‧‧‧記錄模組 130‧‧‧recording module

140‧‧‧修改模組 140‧‧‧Modified module

150‧‧‧處理模組 150‧‧‧Processing module

Claims (12)

一種數據機,與通訊終端、實體IP電話及伺服器相連,該通訊終端中安裝有軟體電話,該實體IP電話與該通訊終端分別對應不同的IP位址,該數據機包括:
通訊模組,用於接收來自該軟體電話的通話請求封包,該通話請求封包包括源IP位址及埠號,該源IP位址為該通訊終端的IP位址;
判斷模組,用於判斷該通話請求封包是否還包含特殊標識,並在該通話請求封包包含特殊標識時判斷該實體IP電話是否處於空閒狀態,其中該特殊標識表示該軟體電話需要使用該實體IP電話的通訊線路來建立通話;
記錄模組,用於在該實體IP電話處於空閒狀態時記錄該通話請求封包的源IP位址與埠號,所記錄的源IP位址為該通訊終端的IP位址;
修改模組,用於修改該通話請求封包的源IP位址為該實體IP電話的IP位址;
其中,該通訊模組還用於將該修改後的通話請求封包轉發至該伺服器以及接收來自該伺服器的通話回應封包,該通話回應封包包括源IP位址及目的IP位址,該修改模組還用於修改該通話回應封包的目的IP位址為該記錄模組中記錄的源IP位址,該通訊模組還用於發送修改後的該通話回應封包至該軟體電話以建立通話。
A data machine is connected to a communication terminal, a physical IP phone, and a server. The communication terminal is equipped with a software phone. The entity IP phone and the communication terminal respectively correspond to different IP addresses, and the data machine includes:
a communication module, configured to receive a call request packet from the software phone, where the call request packet includes a source IP address and a nickname, and the source IP address is an IP address of the communication terminal;
The determining module is configured to determine whether the call request packet further includes a special identifier, and determine whether the physical IP phone is in an idle state when the call request packet includes a special identifier, where the special identifier indicates that the software phone needs to use the entity IP Telephone communication line to establish a call;
a recording module, configured to record a source IP address and an nickname of the call request packet when the entity IP phone is in an idle state, where the recorded source IP address is an IP address of the communication terminal;
Modifying a module, configured to modify a source IP address of the call request packet as an IP address of the entity IP phone;
The communication module is further configured to forward the modified call request packet to the server and receive a call response packet from the server, where the call response packet includes a source IP address and a destination IP address, and the modification The module is further configured to modify a destination IP address of the call response packet as a source IP address recorded in the recording module, and the communication module is further configured to send the modified call response packet to the software phone to establish a call. .
如申請專利範圍第1項所述之數據機,其中,該通訊模組還用於在該實體IP電話未處於空閒狀態時丟棄該通話請求封包。The data machine of claim 1, wherein the communication module is further configured to discard the call request packet when the entity IP phone is not in an idle state. 如申請專利範圍第1項所述之數據機,其中,該通訊模組還用於接收來自伺服器的通話請求封包,該來自伺服器的通話請求封包包括目的IP位址。The data machine of claim 1, wherein the communication module is further configured to receive a call request packet from a server, where the call request packet from the server includes a destination IP address. 如申請專利範圍第3項所述之數據機,其中,該判斷模組還用於在該接收模組接收到來自伺服器的通話請求封包時判斷該實體IP電話是否處於空閒狀態,且在該實體IP電話處於空閒狀態時判斷該軟體電話是否處於空閒狀態。The data machine of claim 3, wherein the determining module is further configured to: when the receiving module receives the call request packet from the server, determine whether the physical IP phone is in an idle state, and When the physical IP phone is in an idle state, it is determined whether the software phone is in an idle state. 如申請專利範圍第4項所述之數據機,其中,該修改模組還用於在該軟體電話處於空閒狀態時修改該來自伺服器的通話請求封包的目的IP位址為該通訊終端的IP位址。The data machine of claim 4, wherein the modification module is further configured to modify the destination IP address of the call request packet from the server to be the IP address of the communication terminal when the software phone is in an idle state. Address. 如申請專利範圍第5項所述之數據機,其中,該通訊模組還用於發送該修改後的來自伺服器的通話請求封包至該軟體電話並接收來自該軟體電話的通話回應封包。The data machine of claim 5, wherein the communication module is further configured to send the modified call request packet from the server to the software phone and receive a call response packet from the software phone. 如申請專利範圍第6項所述之數據機,其中,該修改模組還用於將該通話回應封包的源IP位址修改為該實體IP電話的IP位址。The data machine of claim 6, wherein the modification module is further configured to modify the source IP address of the call response packet to an IP address of the entity IP phone. 如申請專利範圍第7項所述之數據機,其中,該通訊模組還用於將該修改後的通話回應封包發送至伺服器,以建立通話。The data machine of claim 7, wherein the communication module is further configured to send the modified call response packet to a server to establish a call. 一種數據機處理通話封包的方法,該數據機與通訊終端、實體IP電話及伺服器相連,該實體IP電話與該通訊終端分別對應不同的IP位址,該通訊終端中安裝有軟體電話,該方法包括:
接收來自該軟體電話的通話請求封包,其中該通話請求封包包括源IP位址及發送該通話請求封包的埠號,該源IP位址為該通訊終端的IP位址;
判斷該通話請求封包是否還包括特殊標識,其中該特殊標識表示該軟體電話需要使用該實體IP電話的通訊線路來建立通話;
若該通話請求封包包括特殊標識,則判斷該實體IP電話是否處於空閒中;
若該實體IP電話處於空閒中,則記錄該通話請求封包的的源IP位址與埠號,其所記錄的源IP位址為該通訊終端的IP位址;
將該通話請求封包的源IP位址修改為該實體IP電話的IP位址並轉發該修改後的通話請求封包至伺服器;
接收來自伺服器的通話回應封包,其中該通話回應封包包括目的IP位址;及
修改該通話回應封包的目的IP位址為所記錄的源IP位址,並根據所記錄的埠號將該通話回應封包發送到該軟體電話,以建立通話。
A method for processing a call packet by a data machine, the data machine being connected to a communication terminal, a physical IP phone, and a server, wherein the physical IP phone and the communication terminal respectively correspond to different IP addresses, and the communication terminal is installed with a software phone, Methods include:
Receiving a call request packet from the software phone, where the call request packet includes a source IP address and an nickname for sending the call request packet, where the source IP address is an IP address of the communication terminal;
Determining whether the call request packet further includes a special identifier, wherein the special identifier indicates that the software phone needs to use the communication line of the physical IP phone to establish a call;
If the call request packet includes a special identifier, it is determined whether the physical IP phone is in idle state;
If the physical IP phone is in idle state, record the source IP address and the nickname of the call request packet, and the recorded source IP address is the IP address of the communication terminal;
Modifying the source IP address of the call request packet to an IP address of the entity IP phone and forwarding the modified call request packet to the server;
Receiving a call response packet from the server, wherein the call response packet includes a destination IP address; and modifying a destination IP address of the call response packet as the recorded source IP address, and the call is based on the recorded nickname A response packet is sent to the softphone to establish a call.
如申請專利範圍第9項所述之方法,還包括:若該實體IP電話未處於空閒狀態,則丟棄該通話請求封包。The method of claim 9, further comprising: discarding the call request packet if the entity IP phone is not in an idle state. 一種數據機處理通話封包的方法,該數據機一端與通訊終端及實體IP電話相連,另一端與伺服器相連,該實體IP電話與該通訊終端分別對應不同的IP位址,該通訊終端中安裝有軟體電話,該方法包括:
接收來自該伺服器的通話請求封包,其中該通話請求封包包括目的IP位址;
判斷該實體IP電話是否處於空閒狀態;
若該實體IP電話處於空閒狀態,則判斷該軟體電話是否處於空閒狀態;
若該軟體電話處於空閒狀態,則將該通話請求封包的目的IP位址修改為該通訊終端的IP位址;
發送該修改後的通話請求封包至通訊終端中的軟體電話;
接收來自該軟體電話的通話回應封包,其中該通話回應封包包括源IP位址;
將該通話回應封包的源IP位址修改為該實體IP電話的IP位址;及
發送該修改後的通話回應封包至伺服器,以建立通話。
A method for processing a call packet by a data machine, the data machine is connected to a communication terminal and a physical IP phone, and the other end is connected to a server, and the physical IP phone and the communication terminal respectively correspond to different IP addresses, and the communication terminal is installed. With a software phone, the method includes:
Receiving a call request packet from the server, where the call request packet includes a destination IP address;
Determining whether the physical IP phone is in an idle state;
If the entity IP phone is in an idle state, it is determined whether the software phone is in an idle state;
If the software phone is in an idle state, the destination IP address of the call request packet is modified to an IP address of the communication terminal;
Sending the modified call request packet to the software phone in the communication terminal;
Receiving a call response packet from the software phone, wherein the call response packet includes a source IP address;
Modifying the source IP address of the call response packet to the IP address of the entity IP phone; and sending the modified call response packet to the server to establish a call.
如申請專利範圍第11項所述之方法,還包括:若該實體IP電話未處於空閒狀態,則丟棄該通話請求封包。The method of claim 11, further comprising: discarding the call request packet if the entity IP phone is not in an idle state.
TW098120906A 2009-06-22 2009-06-22 Modem and method of processing calling packet thereof TWI398156B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW098120906A TWI398156B (en) 2009-06-22 2009-06-22 Modem and method of processing calling packet thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW098120906A TWI398156B (en) 2009-06-22 2009-06-22 Modem and method of processing calling packet thereof

Publications (2)

Publication Number Publication Date
TW201101791A TW201101791A (en) 2011-01-01
TWI398156B true TWI398156B (en) 2013-06-01

Family

ID=44837126

Family Applications (1)

Application Number Title Priority Date Filing Date
TW098120906A TWI398156B (en) 2009-06-22 2009-06-22 Modem and method of processing calling packet thereof

Country Status (1)

Country Link
TW (1) TWI398156B (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW330364B (en) * 1996-06-04 1998-04-21 Ericsson Telefon Ab L M Access network over a shared medium

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW330364B (en) * 1996-06-04 1998-04-21 Ericsson Telefon Ab L M Access network over a shared medium
TW357514B (en) * 1996-06-04 1999-05-01 Ericsson Telefon Ab L M An access network over a dedicated medium

Also Published As

Publication number Publication date
TW201101791A (en) 2011-01-01

Similar Documents

Publication Publication Date Title
US8040873B2 (en) Distributed integration of legacy PBX system with SIP networks
JP3872477B2 (en) Multiple call system and method through local IP network
US8204066B2 (en) Method for predicting a port number of a NAT equipment based on results of inquiring the STUN server twice
US9787844B2 (en) Conference bridge server
US6597687B1 (en) Method and apparatus for switching voice calls using a computer system
US20040114581A1 (en) Voice-over-IP communicator
TWI404386B (en) Communication system and method for using multi-tiered registration session initiation protocol (sip)
TWI419541B (en) Call recording method and communication system
CN1439213A (en) Method for comunicating audio data in a packet switched network
CN1640110A (en) Apparatus and method for computer telephone integration in packet switched telephone networks
WO2011144080A2 (en) Communication method, system and apparatus
TWI404387B (en) Communication system and method for using session initiation protocol (sip) on a converted ip address
CN101090417A (en) Method and system for constructing multimedium calling centre on gateway by parlay
US8681199B2 (en) Method of providing video-call service using general voice-call terminal and private branch exchange for performing the method
US20050141531A1 (en) Communication relay method and relay device
TWI426770B (en) Voip gateway and mothod for establishing call using the voip gateway
JP2005012380A (en) Multimedia data transfer system, call connection controller, and terminal cooperation method used therfor, and program therefor
CN101931716B (en) Modem and method for processing talking packet
TWI398156B (en) Modem and method of processing calling packet thereof
WO2008083338A1 (en) Point-to-point communication using upnp protocol
CN104427141B (en) A kind of composite telephone set realizes, answer, call and intercommunication method and IP terminal
JP5082805B2 (en) Information relay system, information relay device, method, and program
CN101326793A (en) Methods used to transmit valid data
JP5410977B2 (en) How to communicate between several terminals
CN102984399B (en) Method and system of recording