TWI664847B - Sip gateway, call origination method thereof and call termination method thereof - Google Patents
Sip gateway, call origination method thereof and call termination method thereof Download PDFInfo
- Publication number
- TWI664847B TWI664847B TW106137023A TW106137023A TWI664847B TW I664847 B TWI664847 B TW I664847B TW 106137023 A TW106137023 A TW 106137023A TW 106137023 A TW106137023 A TW 106137023A TW I664847 B TWI664847 B TW I664847B
- Authority
- TW
- Taiwan
- Prior art keywords
- sip
- user equipment
- gateway
- sip gateway
- address
- Prior art date
Links
Landscapes
- Telephonic Communication Services (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
本發明提供一種會話發起協定閘道器、其發話方法及其受話方法。會話發起協定閘道器與會話發起協定伺服器中斷通訊後,若有呼叫發起,則將受話號碼封裝成詢問廣播封包,以詢問受話使用者設備所屬會話發起協定閘道器。而受話使用者設備所屬會話發起協定閘道器回傳其自身位址以回應此詢問廣播封包,使發話使用者設備及受話使用者設備間可透過點對點會話發起協定的方式建立呼叫。藉此,即便與會話發起協定伺服器中斷連線,使用者設備之間仍可通話。The invention provides a session initiation agreement gateway, a speaking method and a receiving method thereof. After the session initiation protocol gateway interrupts communication with the session initiation protocol server, if a call is initiated, the called number is encapsulated into a query broadcast packet to inquire about the session initiation protocol gateway to which the called user equipment belongs. The session initiation protocol gateway to which the called user equipment belongs returns its own address in response to this inquiry broadcast packet, so that the calling user equipment and the called user equipment can establish a call through a point-to-point session initiation protocol. With this, even if the connection is disconnected from the session initiation protocol server, the user equipment can still talk to each other.
Description
本發明是有關於一種會話發起協定(Session Initiation Protocol,SIP),且特別是有關於一種會話發起協定閘道器、其發話方法及其受話方法。The present invention relates to a Session Initiation Protocol (SIP), and in particular, to a session initiation protocol gateway, a calling method and a receiving method thereof.
目前網際網路通話(Voice over IP,VoIP)網路的發展係以SIP為主,而SIP的通訊系統架構主要是包含SIP伺服器與SIP終端設備。SIP終端設備可以是SIP話機、SIP閘道器等設備。使用者透過SIP終端設備進行通訊,SIP終端設備則是向SIP伺服器註冊,並藉由SIP伺服器的協助,進行廣域網路(Wide Area Network,WAN)端對端的通訊。At present, the development of Voice over IP (VoIP) networks is mainly based on SIP, and the communication system architecture of SIP mainly includes a SIP server and SIP terminal equipment. SIP terminal equipment can be SIP phones, SIP gateways and other equipment. The user communicates through the SIP terminal device, and the SIP terminal device is registered with the SIP server, and with the assistance of the SIP server, the end-to-end communication of the Wide Area Network (WAN) is performed.
當SIP終端設備與SIP伺服器通訊中斷時,SIP終端設備無法對網路上的其他終端通訊。除此之外,終端若為SIP閘道器,其管轄下收容用戶數量可以達到數百用戶以上,若通訊中斷,則管轄下數百個用戶間的通訊將無法進行。考量到同一機房可能同時裝設有多部的SIP閘道器,這些SIP閘道器服務一個地區數千、數萬的用戶,這些用戶還可能會撥打110/119等緊急電話。與SIP伺服器通訊中斷,將造成區域內數萬個用戶的通訊停止外,110/119等緊急電話也無法使用,影響層面很廣。When the communication between the SIP terminal device and the SIP server is interrupted, the SIP terminal device cannot communicate with other terminals on the network. In addition, if the terminal is a SIP gateway, the number of users under its jurisdiction can reach hundreds of users, and if the communication is interrupted, the communication between hundreds of users under its jurisdiction will be impossible. Considering that the same computer room may be equipped with multiple SIP gateways at the same time, these SIP gateways serve thousands and tens of thousands of users in a region, and these users may also make emergency calls such as 110/119. The interruption of communication with the SIP server will cause the communication of tens of thousands of users in the area to stop, and emergency telephones such as 110/119 will not be available, which will have a wide range of impacts.
為解決此一問題,先前技術有設計單一閘道器與SIP伺服器通訊中斷時,讓閘道器本身轄下的用戶間可維持通訊。但,閘道器之間的用戶則仍無法通訊。或者,在每個SIP閘道器上靜態配置本地區域內所有用戶的資料,來維持本地區域通訊服務。然而,靜態配置用戶的工作量大且面臨資料更新速度緩慢,無法及時反應用戶的配置現況。再者,在本地區域網路內設置一本地SIP伺服器,使網路中斷時,能維持本地閘道器間通訊服務之功能。然而,此一機制改變了網路拓樸,且新增的本地伺服器需要額外的管理與成本負擔。To solve this problem, in the prior art, when a single gateway is disconnected from the SIP server, communication between users under the gateway itself can be maintained. However, users between the gateways still cannot communicate. Or, statically configure the data of all users in the local area on each SIP gateway to maintain local area communication services. However, static configuration users have a large workload and face slow data update, which cannot reflect the current configuration status of users in a timely manner. Furthermore, a local SIP server is set up in the local area network so that when the network is interrupted, the function of communication services between the local gateways can be maintained. However, this mechanism changed the network topology, and the additional local server required additional management and cost burden.
由此可見,上述習用方式仍有諸多缺失,實非一良善之設計,而亟待加以改良。It can be seen that there are still many shortcomings in the above-mentioned customary methods. It is not a good design, and it needs to be improved.
有鑑於此,本發明提供一種SIP閘道器、其發話方法及其受話方法,乃在改善前述現行SIP閘道器的缺點。In view of this, the present invention provides a SIP gateway, a method of speaking and a method of receiving the same, which are to improve the shortcomings of the aforementioned existing SIP gateway.
本發明SIP閘道器之發話方法,包括下列步驟。判斷SIP閘道器是否與SIP伺服器中斷通訊,以進入本地存活模式。在本地存活模式中,SIP閘道器將發話使用者設備所撥之受話號碼封裝至詢問廣播封包,並以廣播方式傳送詢問廣播封包,而此詢問廣播封包用以找尋受話使用者設備所屬的SIP閘道器。以點對點(Peer-to-Peer,P2P)SIP的方式建立該受話使用者設備與該發話使用者設備間的呼叫。The speech method of the SIP gateway of the present invention includes the following steps. Determine whether the SIP gateway has lost communication with the SIP server to enter the local survival mode. In the local survival mode, the SIP gateway encapsulates the called number dialed by the calling user device into a query broadcast packet, and transmits the query broadcast packet in a broadcast manner, and the query broadcast packet is used to find the SIP to which the called user device belongs. Gateway. A call between the called user equipment and the calling user equipment is established in a Peer-to-Peer (P2P) SIP manner.
本發明SIP閘道器之受話方法,包括下列步驟。接收詢問廣播封包,而此詢問廣播封包封裝有發話使用者設備所撥之受話號碼。判斷受話號碼是否關於SIP閘道器所屬之用戶。若受話號碼係關於SIP閘道器所屬之用戶,回覆SIP閘道器的網際網路協定(Internet Protocol,IP)位址。接受以P2PSIP的方式所建立發話使用者設備與受話號碼對應之受話使用者設備間的呼叫。The receiving method of the SIP gateway of the present invention includes the following steps. Receive an inquiry broadcast packet, and the inquiry broadcast packet encapsulates the called number dialed by the calling user equipment. Determine whether the called number is about the user to which the SIP gateway belongs. If the called number is about the user to which the SIP gateway belongs, reply to the Internet Protocol (IP) address of the SIP gateway. Accept the call between the calling user equipment and the called user equipment corresponding to the called number established in the P2PSIP manner.
本發明的SIP閘道器包括發送單元、接收單元、廣播單元、安全單元、用戶單元、號碼單元及處理單元。發送單元將封裝好之IP封包發送到IP網路。接收單元接收IP廣播封包。廣播單元將受話使用者設備之號碼封裝到詢問廣播封包內,在IP區域網路內以廣播之方式發送詢問廣播封包,以詢問受話使用者設備所屬SIP閘道器之IP位址,並受理回覆詢問的結果。安全單元將安全Token封裝於發送的封包,並解析接收的封包是否攜帶有安全Token。用戶單元判斷受話使用者設備是否為SIP閘道器所管轄的用戶。號碼單元轉換受話號碼成符合SIP協定的格式。處理單元執行P2PSIP信號處理流程。The SIP gateway of the present invention includes a sending unit, a receiving unit, a broadcasting unit, a security unit, a user unit, a number unit, and a processing unit. The sending unit sends the encapsulated IP packet to the IP network. The receiving unit receives an IP broadcast packet. The broadcasting unit encapsulates the number of the called user equipment in the inquiry broadcast packet, and sends the inquiry broadcast packet by broadcast in the IP area network to inquire the IP address of the SIP gateway to which the called user equipment belongs, and accepts the reply. The result of the inquiry. The security unit encapsulates the security token in the transmitted packet, and analyzes whether the received packet carries the security token. The user unit determines whether the called user equipment is a user under the jurisdiction of the SIP gateway. The number unit converts the called number into a format conforming to the SIP protocol. The processing unit executes a P2PSIP signal processing flow.
基於上述,透過廣播方式詢問受話使用者設備所屬SIP閘道器,即能在與SIP伺服器中斷通訊的情況下,得知此SIP閘道器的IP位址,並使發話使用者設備與受話使用者設備可透過P2PSIP的方式來通話。Based on the above, by querying the SIP gateway to which the called user equipment belongs by broadcast, it can learn the IP address of the SIP gateway when the communication with the SIP server is interrupted, and enable the calling user equipment and the called party. User equipment can use P2PSIP to talk.
為讓本發明的上述特徵和優點能更明顯易懂,下文特舉實施例,並配合所附圖式作詳細說明如下。In order to make the above features and advantages of the present invention more comprehensible, embodiments are hereinafter described in detail with reference to the accompanying drawings.
請參閱圖1,為依據本發明一實施例之應用系統架構圖,此系統架構包括SIP閘道器1、SIP伺服器4及使用者設備6(例如,支援SIP協定的電話、手機等)。由圖中可知,本地區域網路2內架設多部SIP閘道器1,一般情況下,SIP閘道器1經由廣域網路3向SIP伺服器4註冊後,即可藉由SIP伺服器4提供管轄下使用者設備6進行所有的呼叫行為(包括同一SIP閘道器1轄下使用者設備6間的呼叫)。Please refer to FIG. 1, which is an application system architecture diagram according to an embodiment of the present invention. The system architecture includes a SIP gateway 1, a SIP server 4, and a user equipment 6 (for example, a phone and a mobile phone supporting the SIP protocol). As can be seen from the figure, multiple SIP gateways 1 are set up in the local area network 2. Generally, after the SIP gateway 1 is registered with the SIP server 4 through the wide area network 3, it can be provided by the SIP server 4. The user equipment 6 under the jurisdiction performs all calling behaviors (including calls between the user equipment 6 under the same SIP gateway 1).
當連到廣域網路3的線路異常(例如,聯外IP接取線路5異常)時,SIP閘道器1的通訊幾乎中止,例如SIP閘道器1的對外及本地區域呼叫皆無法建立。因此,須啟動本地存活機制,讓本地區域網路2上所有SIP閘道器1間之用戶通訊可以維持。When the line connected to the WAN 3 is abnormal (for example, the external IP access line 5 is abnormal), the communication of the SIP gateway 1 is almost suspended. For example, the external and local calls of the SIP gateway 1 cannot be established. Therefore, the local survival mechanism must be activated so that user communication between all SIP gateways 1 on the local area network 2 can be maintained.
圖2為依據本發明一實施例之SIP閘道器1的元件方塊圖,SIP閘道器1包括發送單元11、接收單元12、廣播單元13、安全單元14、用戶單元15、號碼單元16及處理單元17。2 is a block diagram of components of a SIP gateway 1 according to an embodiment of the present invention. The SIP gateway 1 includes a sending unit 11, a receiving unit 12, a broadcasting unit 13, a security unit 14, a user unit 15, a number unit 16 and Processing unit 17.
發送單元11:負責將封裝好之IP封包發送到IP網路。Sending unit 11: responsible for sending the encapsulated IP packet to the IP network.
接收單元12:負責接收IP廣播詢問封包。The receiving unit 12 is responsible for receiving an IP broadcast inquiry packet.
廣播單元13:負責將受話使用者設備6之受話號碼封裝到IP詢問廣播封包內,以IP區域網路內廣播之方式詢問受話使用者設備6所屬SIP閘道器1之IP位址,並受理回覆詢問的結果。Broadcasting unit 13: Responsible for encapsulating the called number of the called user equipment 6 in the IP query broadcast packet, and inquiring the IP address of the SIP gateway 1 of the called user equipment 6 by broadcasting in the IP local area network, and accepting Respond to the results of the inquiry.
安全單元14(可選的):負責建立信賴安全封包的機制,讓安全識別的安全符記(Token)封裝於本地存活模式下所發送的封包,並解析接收的封包是否攜帶安全可識別的安全Token,讓群組內的SIP閘道器1可以辨識封包的來源是否可信賴。此安全Token可以使用標準或自訂的機制,例如ID識別、密碼、key等等方式皆可。Security unit 14 (optional): Responsible for establishing a mechanism for trusting secure packets, allowing a security-identified security token (Token) to be encapsulated in a packet sent in a local survival mode, and analyzing whether the received packet carries a recognizable security Token, so that the SIP gateway 1 in the group can identify whether the source of the packet can be trusted. This security token can use standard or custom mechanisms, such as ID identification, password, key, and so on.
用戶單元15:在本地存活模式下,SIP閘道器1發出呼叫請求訊息前或收到呼叫請求訊息後,都會先經過用戶單元15確認此請求受話的受話使用者設備6是否為SIP閘道器1本身所管轄的用戶。User unit 15: In the local survival mode, before SIP gateway 1 sends a call request message or receives a call request message, it will first pass through user unit 15 to confirm whether the called user equipment 6 of this request is a SIP gateway. 1 Users under their jurisdiction.
號碼單元16:負責將用戶撥的緊急服務電話(例如,110/119等)轉成對應的市話號碼,並將發話之使用者設備6所撥打的市話號碼轉成符合SIP協定的格式(例如,含有國碼及區域碼的E.164 SIP註冊帳號使用之格式)。若是撥打的號碼是長途、行動等非市內電話,則直接拒絕發話之使用者設備6的呼叫請求。在受話端則是將收到的E.164格式號碼轉成用戶習知的市話號碼格式,提供用戶話機顯示。Number unit 16: Responsible for converting the emergency service phone (for example, 110/119, etc.) dialed by the user into the corresponding local phone number, and converting the local phone number dialed by the calling user device 6 into a format conforming to the SIP agreement For example, the format used by E.164 SIP registered accounts containing country code and area code). If the number dialed is a non-local call such as long distance, mobile, etc., the call request from the calling user device 6 is directly rejected. On the receiving end, the received E.164 format number is converted into a local telephone number format that the user is familiar with, and the user's phone is displayed.
處理單元17:負責監控SIP閘道器1與SIP伺服器4間網路的狀況,當SIP閘道器1與SIP伺服器4失聯條件成立,則啟動SIP閘道器1本地存活模式;同時,負責點對點(Peer-to-Peer,P2P)SIP信號處理流程。Processing unit 17: responsible for monitoring the status of the network between SIP gateway 1 and SIP server 4. When the condition of disconnection between SIP gateway 1 and SIP server 4 is established, the local survival mode of SIP gateway 1 is started; , Responsible for the Peer-to-Peer (P2P) SIP signal processing flow.
需說明的是,前述發送單元11、接收單元12、廣播單元13、安全單元14、用戶單元15、號碼單元16,可能係軟體模組而可被處理單元17執行其功能,亦可能係特定晶片、電路、處理器等硬體元件。而處理單元17可以是中央處理單元(CPU)、或是其他可程式化之一般用途或特殊用途的微處理器(Microprocessor)、數位信號處理器(DSP)、可程式化控制器、特殊應用積體電路(ASIC)或其他類似元件或上述元件的組合。而SIP閘道器1可替換成任何形式中的SIP終端(例如,SIP話機、SIP影像電話機、SIP軟電話等)。It should be noted that the aforementioned sending unit 11, receiving unit 12, broadcasting unit 13, security unit 14, user unit 15, number unit 16 may be software modules and may be executed by the processing unit 17 or may be specific chips. , Circuit, processor and other hardware components. The processing unit 17 may be a central processing unit (CPU), or other programmable general purpose or special purpose microprocessor (Microprocessor), digital signal processor (DSP), programmable controller, special application product Body Circuit (ASIC) or other similar components or a combination of the above. The SIP gateway 1 can be replaced with a SIP terminal in any form (for example, a SIP phone, a SIP video phone, a SIP soft phone, etc.).
圖3為依據本發明一實施例之SIP閘道器1啟動本地存活之發話流程,此方法包括:FIG. 3 is a flowchart of a local survival call initiated by the SIP gateway 1 according to an embodiment of the present invention. The method includes:
步驟701:SIP閘道器1依據準則判定與SIP伺服器4中斷通訊,以進入本地存活模式。此準則可以是未收到SIP伺服器4的回應信號、一段時間未收到來自SIP伺服器4的封包、註冊失敗、或IP封包掉包率超過預設值等等的條件。Step 701: The SIP gateway 1 determines that the communication with the SIP server 4 is interrupted according to the criteria to enter the local survival mode. This criterion may be conditions such that the response signal from the SIP server 4 is not received, the packet from the SIP server 4 is not received for a period of time, the registration fails, or the IP packet drop rate exceeds a preset value, and so on.
步驟702:SIP閘道器1收到發話之使用者設備6發話的受話號碼後,檢查是否為110/119緊急電話或市內電話;若是緊急電話,則直接轉成對應的市內電話;若是長途電話(不為緊急電話或市內電話),則直接拒絕此發話之使用者設備6的發話請求。於本實施例中,SIP閘道器本地存活方法只處理市內電話的情境。Step 702: After the SIP gateway 1 receives the calling number of the calling user device 6, it checks whether it is a 110/119 emergency call or a local call; if it is an emergency call, it is directly converted to the corresponding local call; if it is Long-distance calls (not emergency calls or local calls) will directly reject the calling request of the calling user equipment 6. In this embodiment, the local survival method of the SIP gateway only deals with the scenario of local calls.
步驟703:SIP閘道器1之號碼單元16將收齊的號碼轉成SIP註冊使用的E.164格式。例如,將用戶撥的4245557號碼轉成含有國碼及區域碼的E.164格式+88634245557。Step 703: The number unit 16 of the SIP gateway 1 converts the collected number into the E.164 format used for SIP registration. For example, the 4245557 number dialed by the user is converted into the E.164 format +88634245557 containing the country code and area code.
步驟704:將E.164格式的受話號碼與SIP閘道器1上用戶SIP帳號資料比對,檢查受話之使用者設備是否與發話之使用者設備連接在同一SIP閘道器1。Step 704: Compare the recipient number in the E.164 format with the user's SIP account information on SIP gateway 1, and check whether the called user equipment is connected to the same SIP gateway 1 as the calling user equipment.
步驟705:若是在同一SIP閘道器1上,則SIP閘道器1直接接受呼叫的請求,並直接向受話之使用者設備6振鈴。受話之使用者設備6應答後即可完成呼叫的建立。Step 705: If it is on the same SIP gateway 1, the SIP gateway 1 directly accepts the call request and rings the user equipment 6 directly. After the called user equipment 6 answers, the call can be established.
步驟706:由於此時已喪失註冊認證的機制,若發話與受話之使用者設備6不在同一SIP閘道器1上,則安全單元14在呼叫請求的SIP訊息內,封裝用於安全識別的安全Token,提供本地區域網路2內SIP閘道器1判別收到的封包是否為可信賴群組內SIP閘道器1發送的封包,即群組識別。Step 706: Since the registration authentication mechanism has been lost at this time, if the calling and receiving user equipment 6 are not on the same SIP gateway 1, the security unit 14 encapsulates the security for security identification in the SIP message of the call request. Token provides SIP gateway 1 in local area network 2 to determine whether the received packet is a packet sent by SIP gateway 1 in a trusted group, that is, group identification.
步驟707:將封裝有安全Token的SIP訊息,進一步封裝為廣播格式的IP封包(即,詢問廣播封包),並透過廣播方式發送此詢問廣播封包,以詢問受話號碼是否為本地區域網路2內SIP閘道器1收容的用戶。需說明的是,此廣播格式可以係SIP、位址解析協定(Address Resolution Protocol,ARP)或其他可用廣播IP位址傳送受話號碼的標準協定及自訂的協定。Step 707: The SIP message encapsulated with the security token is further encapsulated into an IP packet in a broadcast format (that is, an inquiry broadcast packet), and the inquiry broadcast packet is transmitted in a broadcast manner to ask whether the called number is within the local area network 2. Users accommodated by SIP gateway 1. It should be noted that the broadcast format can be SIP, Address Resolution Protocol (ARP), or other standard protocols and custom protocols that can use the broadcast IP address to transmit the called number.
步驟708:若收到本地區域網路2內其他SIP閘道器1的回應,則處理單元17啟動P2PSIP的呼叫建立流程,取代由SIP伺服器4提供服務的機制。Step 708: If a response is received from other SIP gateways 1 in the local area network 2, the processing unit 17 starts a P2PSIP call establishment process instead of the mechanism provided by the SIP server 4.
需說明的是,在初始發話請求封包係使用廣播IP位址為目的端IP位址,而待收到回應探得受話之使用者設備6所屬SIP閘道器之IP位址後,再改以受話之使用者設備6所屬SIP閘道器IP位址為目的端IP位址,以進行後續的SIP呼叫建立流程。另一方面,若使用非SIP協定詢問受話之使用者設備6所屬SIP閘道器之IP位址,待獲得受話之使用者設備6所屬SIP閘道器之IP位址後,才以受話之使用者設備6所屬SIP閘道器之IP位址為目的端IP位址開始發送SIP初始發話請求封包。It should be noted that after the initial call request packet uses the broadcast IP address as the destination IP address, after receiving the response, the IP address of the SIP gateway of the user equipment 6 to which the call was received is changed to The IP address of the SIP gateway of the user equipment 6 to be called is the destination IP address to perform the subsequent SIP call establishment process. On the other hand, if the non-SIP protocol is used to query the IP address of the SIP gateway to which the called user device 6 belongs, the IP address of the SIP gateway to which the called user device 6 belongs is obtained before the use of the called The IP address of the SIP gateway to which the device 6 belongs is the destination IP address and starts to send the SIP initial call request packet.
圖4為依據本發明一實施例之SIP閘道器1收到本地存活的詢問廣播封包之受話流程,此方法包括:FIG. 4 is a flow chart of receiving a local survival inquiry broadcast packet received by the SIP gateway 1 according to an embodiment of the present invention. The method includes:
步驟801:收到以廣播方式詢問受話之使用者設備6位置的詢問廣播封包。Step 801: Receive an inquiry broadcast packet inquiring the location of the called user equipment 6 in a broadcast manner.
步驟802:檢查詢問廣播封包內的安全Token,以判斷是否為群組內信賴的封包。Step 802: Check and query the security token in the broadcast packet to determine whether it is a trusted packet in the group.
步驟803:若是群組內信賴SIP閘道器1所送出的詢問廣播封包,則檢查詢問廣播封包內的受話號碼是否為管轄下用戶。Step 803: If the inquiry broadcast packet sent by the trusted SIP gateway 1 in the group, check whether the called number in the inquiry broadcast packet is a user under jurisdiction.
步驟804:若為管轄下用戶,則回傳SIP閘道器1自身之IP位址,以回應此詢問廣播封包。Step 804: if the user is under the jurisdiction, return the IP address of the SIP gateway 1 itself in response to the query broadcast packet.
步驟805:啟動P2PSIP呼叫建立流程。Step 805: Start a P2PSIP call establishment process.
步驟806:若非信賴的封包及受話號碼非管轄下的用戶號碼,則直接丟棄此封包。Step 806: If the untrusted packet and the called number are not under the jurisdiction of the subscriber number, then the packet is directly discarded.
綜上所述,本發明實施例係使用封包廣播技術,在SIP閘道器偵測到與遠端SIP伺服器中斷通訊後,啟動廣播模式,讓用戶撥打本地電話時,藉由攜有受話號碼之詢問廣播封包尋找本地受話之使用者設備所在的SIP閘道器位置。而受話之使用者設備所屬SIP閘道器收到此詢問廣播封包後,分析受話號碼為管轄下用戶後,即回應此詢問廣播封包本身的IP位址。其它SIP閘道器收到詢問廣播封包並分析門號非轄下用戶後,則將封包丟棄。探得本地受話之使用者設備所在的SIP閘道器位置後,發話之使用者設備所屬SIP閘道器不再將呼叫訊息送往SIP伺服器,改由直接將發話請求訊息送到受話之使用者設備所屬SIP閘道器(透過P2PSIP),完成後續之呼叫建立程序。To sum up, the embodiment of the present invention uses the packet broadcast technology. After the SIP gateway detects that the communication with the remote SIP server is interrupted, the broadcast mode is activated. It asks for a broadcast packet to find the location of the SIP gateway where the locally called user equipment is located. After receiving the inquiry broadcast packet, the SIP gateway to which the called user equipment belongs analyzes the called number as the user under the jurisdiction, and then responds to the inquiry IP address of the broadcast packet itself. Other SIP gateways will discard the packets after receiving the inquiry broadcast packet and analyzing the users whose gate numbers are not under their jurisdiction. After detecting the location of the SIP gateway where the locally called user equipment is located, the SIP gateway to which the calling user equipment belongs no longer sends the call message to the SIP server, but instead sends the calling request message directly to the called The SIP gateway (through P2PSIP) to which the device belongs, completes the subsequent call establishment procedures.
特點及功效Features and effects
本發明實施例所提供之SIP閘道器本地存活模式,與前述引證案及其他習用技術相互比較時,更具有下列之優點:The local survival mode of the SIP gateway provided by the embodiment of the present invention has the following advantages when compared with the cited case and other conventional technologies:
1.本發明實施例無須在本地區域網路額外架設SIP伺服器,提供SIP閘道器聯外網路障礙時的通訊,具備網路拓樸的一致性,以及網路的組態設定維持不變的優點。1. In the embodiment of the present invention, it is not necessary to set up an additional SIP server on the local area network to provide communication when the SIP gateway is connected to an external network. It has the consistency of the network topology and maintains the network configuration settings. Advantages of change.
2.本發明實施例突破單一SIP閘道器的侷限,可讓同一本地區域網路上的所有SIP閘道器在聯外網路異常時,彼此間的呼叫通訊仍可維持。2. The embodiment of the present invention breaks through the limitation of a single SIP gateway, so that all SIP gateways on the same local area network can maintain call communication with each other when the external network is abnormal.
3.本發明實施例具備信賴封包的檢查機制,避免非群組內設備封包干擾。3. The embodiment of the present invention is provided with a checking mechanism for trusted packets to avoid interference from packets in non-group devices.
4.本發明實施例可適用一個交換局的涵蓋應用,提供一個地區聯外網路異常時之緊急相關電話服務。4. The embodiment of the present invention can be applied to a covered application of an exchange office to provide emergency related telephone services in the event of an abnormal external network in a region.
5.本發明實施例免除靜態設置鄰近SIP閘道器用戶資訊的繁瑣工作,藉由查詢學習的方式,自動探得受話方SIP閘道器IP位址。5. The embodiment of the present invention eliminates the tedious work of statically setting the user information of the neighboring SIP gateway, and automatically finds the SIP gateway IP address of the receiver by querying and learning.
6. 提供信賴設備驗證的安全機制,防止本地存活模式下,不明來源的攻擊。6. Provide a security mechanism for trusted device authentication to prevent attacks from unknown sources in local survival mode.
7. 不須變更網路架構,在既有的網路架構下,偵測到與遠端SIP伺服器失聯,自動地啟動本地存活機制。7. There is no need to change the network architecture. Under the existing network architecture, a disconnection with the remote SIP server is detected, and the local survival mechanism is automatically activated.
雖然本發明已以實施例揭露如上,然其並非用以限定本發明,任何所屬技術領域中具有通常知識者,在不脫離本發明的精神和範圍內,當可作些許的更動與潤飾,故本發明的保護範圍當視後附的申請專利範圍所界定者為準。Although the present invention has been disclosed as above with the examples, it is not intended to limit the present invention. Any person with ordinary knowledge in the technical field can make some modifications and retouching without departing from the spirit and scope of the present invention. The protection scope of the present invention shall be determined by the scope of the attached patent application.
1‧‧‧SIP閘道器 1‧‧‧SIP Gateway
2‧‧‧本地區域網路 2‧‧‧ Local Area Network
3‧‧‧廣域網路 3‧‧‧ WAN
4‧‧‧廣域網路 4‧‧‧ WAN
5‧‧‧聯外IP接取線路 5‧‧‧external IP access line
6‧‧‧使用者設備 6‧‧‧user equipment
11‧‧‧發送單元 11‧‧‧ sending unit
12‧‧‧接收單元 12‧‧‧Receiving unit
13‧‧‧廣播單元 13‧‧‧broadcasting unit
14‧‧‧安全單元 14‧‧‧Security Unit
15‧‧‧用戶單元 15‧‧‧Customer Unit
16‧‧‧號碼單元 16‧‧‧ number unit
17‧‧‧處理單元 17‧‧‧ processing unit
701~708、801~806‧‧‧步驟 701 ~ 708, 801 ~ 806‧‧‧ steps
圖1為依據本發明一實施例之應用系統架構圖。 圖2為依據本發明一實施例之SIP閘道器之元件方塊圖。 圖3為依據本發明一實施例之SIP閘道器之發話流程圖。 圖4為依據本發明一實施例之SIP閘道器之受話流程圖。FIG. 1 is a structural diagram of an application system according to an embodiment of the present invention. FIG. 2 is a block diagram of components of a SIP gateway according to an embodiment of the present invention. 3 is a flowchart of a SIP gateway according to an embodiment of the present invention. FIG. 4 is a flowchart of a SIP gateway receiving call according to an embodiment of the present invention.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
TW106137023A TWI664847B (en) | 2017-10-27 | 2017-10-27 | Sip gateway, call origination method thereof and call termination method thereof |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
TW106137023A TWI664847B (en) | 2017-10-27 | 2017-10-27 | Sip gateway, call origination method thereof and call termination method thereof |
Publications (2)
Publication Number | Publication Date |
---|---|
TW201918056A TW201918056A (en) | 2019-05-01 |
TWI664847B true TWI664847B (en) | 2019-07-01 |
Family
ID=67347771
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
TW106137023A TWI664847B (en) | 2017-10-27 | 2017-10-27 | Sip gateway, call origination method thereof and call termination method thereof |
Country Status (1)
Country | Link |
---|---|
TW (1) | TWI664847B (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20100227604A1 (en) * | 2009-03-06 | 2010-09-09 | Cynthia Shu-Yen Hsieh | Automatic local access surrogate numbers for long distance calling |
CN103227842A (en) * | 2012-01-31 | 2013-07-31 | 中兴通讯股份有限公司 | Method and device for acquiring SIP (session initiation protocol) server address |
US20130272296A1 (en) * | 2003-05-08 | 2013-10-17 | Mesh Dynamics, Inc. | Self-forming voip network |
US8965969B2 (en) * | 2008-09-17 | 2015-02-24 | Telefonaktiebolaget L M Ericsson (Publ) | IP address discovery |
-
2017
- 2017-10-27 TW TW106137023A patent/TWI664847B/en active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20130272296A1 (en) * | 2003-05-08 | 2013-10-17 | Mesh Dynamics, Inc. | Self-forming voip network |
US8965969B2 (en) * | 2008-09-17 | 2015-02-24 | Telefonaktiebolaget L M Ericsson (Publ) | IP address discovery |
US20100227604A1 (en) * | 2009-03-06 | 2010-09-09 | Cynthia Shu-Yen Hsieh | Automatic local access surrogate numbers for long distance calling |
CN103227842A (en) * | 2012-01-31 | 2013-07-31 | 中兴通讯股份有限公司 | Method and device for acquiring SIP (session initiation protocol) server address |
Also Published As
Publication number | Publication date |
---|---|
TW201918056A (en) | 2019-05-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8737594B2 (en) | Emergency services for packet networks | |
US7633909B1 (en) | Method and system for providing multiple connections from a common wireless access point | |
US7349412B1 (en) | Method and system for distribution of voice communication service via a wireless local area network | |
CN101064655B (en) | Method of providing a guest terminal with emergency access to a wlan | |
US8606936B2 (en) | Communication system, session control management server and session control method | |
US7298702B1 (en) | Method and system for providing remote telephone service via a wireless local area network | |
US8433283B2 (en) | Computer-related devices and techniques for facilitating an emergency call via a cellular or data network using remote communication device identifying information | |
JP5577260B2 (en) | Method and apparatus for alerting emergency service numbers in an internet protocol network | |
US7411940B2 (en) | Location information for remote user | |
CN101711477B (en) | Implementing an emergency services solution | |
US20100151868A1 (en) | Communication apparatus and mobile terminal | |
CN105025273B (en) | Connection method, cipher set-up method and the system of storied building visible intercommunication system | |
CN102263775B (en) | Method and device for controlling local session initiation protocol (SIP) calling | |
JP2007221481A (en) | Telephone system | |
CN101090314A (en) | Authentication method and device for integrating ticket granting service into session initiation protocol | |
TWI664847B (en) | Sip gateway, call origination method thereof and call termination method thereof | |
JP6186066B1 (en) | System and method for notifying event occurrence | |
KR20050043597A (en) | Method of visitor confirming and communication service using internet | |
JP5233714B2 (en) | Communication media conversion system, method and program | |
KR20100003627A (en) | Method and apparatus for security communication in voip system | |
KR100968484B1 (en) | Voip gateway for processing call from magneto telephone and processing method thereof | |
WO2012070794A2 (en) | Fmc-communication-based call-setting method, and call connection infrastructure | |
KR100442436B1 (en) | Method for user authentication using IVR service in internet telephone network | |
KR101015538B1 (en) | Method of handling call between VoIP access gateway and local subscriber | |
JP2000125040A (en) | Internet telephone connecting method and telephone terminal device |