[go: up one dir, main page]

TWI876197B - High-availability multimedia gateway system, multimedia gateway management method and computer-readable medium - Google Patents

High-availability multimedia gateway system, multimedia gateway management method and computer-readable medium Download PDF

Info

Publication number
TWI876197B
TWI876197B TW111131503A TW111131503A TWI876197B TW I876197 B TWI876197 B TW I876197B TW 111131503 A TW111131503 A TW 111131503A TW 111131503 A TW111131503 A TW 111131503A TW I876197 B TWI876197 B TW I876197B
Authority
TW
Taiwan
Prior art keywords
multimedia gateway
multimedia
call
conference
session
Prior art date
Application number
TW111131503A
Other languages
Chinese (zh)
Other versions
TW202410678A (en
Inventor
姜怡楷
鄒應殿
朱振宏
黃超群
Original Assignee
中華電信股份有限公司
Filing date
Publication date
Application filed by 中華電信股份有限公司 filed Critical 中華電信股份有限公司
Priority to TW111131503A priority Critical patent/TWI876197B/en
Publication of TW202410678A publication Critical patent/TW202410678A/en
Application granted granted Critical
Publication of TWI876197B publication Critical patent/TWI876197B/en

Links

Images

Abstract

A high-availability multimedia gateway system, a multimedia gateway management method and a computer-readable medium are provided, which dynamically activate or deactivate multimedia gateways according to the resource usage of the multimedia gateways to adjust system resources. In addition, if a first multimedia gateway fails or its resources are insufficient, a second multimedia gateway is controlled to seamlessly take over the ongoing sessions of the first multimedia gateway in the present invention, so as to ensure the quality of multimedia services and communication services.

Description

高可用度多媒體閘道器系統、多媒體閘道器管理方法與電腦可讀媒體 High availability multimedia gateway system, multimedia gateway management method and computer readable media

本發明係關於一種高可用度多媒體閘道器系統、多媒體閘道器管理方法與電腦可讀媒體,係利用呼叫自動調配機制以處理存取相同語音內容的瞬時大量呼叫,提供高可用度通話品質,並藉由高效率的呼叫會談封包分析儲存技術,以及呼叫會談重建暨接管技術,可使得不同多媒體閘道器彼此間可以配合系統資源的配置,接管或取代原先的多媒體閘道器的呼叫會談,且能維持呼叫會談不中斷及提供穩定的語音準確內容,以保障用戶撥打存取即時語音內容之品質與最佳體驗。 The present invention relates to a high-availability multimedia gateway system, a multimedia gateway management method and a computer-readable medium, which utilizes a call automatic allocation mechanism to handle instantaneous large-scale calls for accessing the same voice content, providing high-availability call quality, and through highly efficient call conference packet analysis and storage technology, as well as call conference reconstruction and takeover technology, different multimedia gateways can coordinate the configuration of system resources, take over or replace the original multimedia gateway's call conference, and maintain the call conference without interruption and provide stable and accurate voice content, so as to ensure the quality and best experience of users dialing and accessing real-time voice content.

目前常見的多媒體閘道器為實體設備,受限於硬體的限制,無法彈性的根據呼叫量自動擴增。呼叫量不大時,會浪費其系統資源,當瞬間呼叫量提高時,又怕系統資源無法應付,可能會導致用戶端無法獲取即時的語音內容。此外,當設備故障時,會因為切換線路,而造成用戶端的通話中斷。若是在進行重要的視訊會議時中斷,會造成與會者通話中斷,而造成不便。為了兼顧系統資 源使用的最佳化,及高可用度的即時呼叫會談的需求,於是開始有提供按流量自動調適之高可用度的多媒體閘道器之技術提出。 Currently, the common multimedia gateways are physical devices. Due to the limitation of hardware, they cannot be flexibly expanded according to the call volume. When the call volume is not large, it will waste system resources. When the call volume increases instantly, there is a fear that the system resources cannot cope with it, which may cause the client to be unable to obtain real-time voice content. In addition, when the equipment fails, the call on the client side will be interrupted due to the switching of lines. If the interruption occurs during an important video conference, the call of the participants will be interrupted, causing inconvenience. In order to take into account the optimization of system resource utilization and the demand for high-availability real-time call conferences, the technology of providing high-availability multimedia gateways that automatically adjust according to traffic has begun to be proposed.

然而,當前各種習用技術均無法在後端的會談發起協議(Session Initiation Protocol,SIP)伺服器動態地接管其他SIP伺服器的通話資訊,更無法將此呼叫會談的資料任意轉移到其他SIP伺服器。因此,當流量大的時候,只能透過預先配置好的SIP伺服器進行負載平衡;反之,當流量小的時候,也無法將預先配置好的SIP伺服器的資源移作他用,實非良善之設計,而亟待加以改良。 However, the current various commonly used technologies cannot dynamically take over the call information of other SIP servers at the back-end Session Initiation Protocol (SIP) server, and cannot arbitrarily transfer the data of this call to other SIP servers. Therefore, when the traffic is large, load balancing can only be performed through the pre-configured SIP server; conversely, when the traffic is small, the resources of the pre-configured SIP server cannot be transferred to other uses. This is not a good design and needs to be improved urgently.

本發明之目的係針對上述習用技術之不足,提供一種高可用度多媒體閘道器系統與多媒體閘道器管理方法。該系統不需配置大量的實體設備,而是使用雲端運算和硬體虛擬化的軟體技術,配置多媒體閘道器。 The purpose of this invention is to provide a high-availability multimedia gateway system and multimedia gateway management method to address the deficiencies of the above-mentioned conventional technologies. The system does not require the configuration of a large number of physical devices, but uses cloud computing and hardware virtualization software technology to configure multimedia gateways.

本發明根據呼叫流量閥值,來啟動預先配置好的多媒體閘道器虛擬機,動態增加或關閉在線上服務的多媒體閘道器,或將僅有少量呼叫會談數的多媒體閘道器,透過產生初始呼叫會談的模擬封包,在其他多媒體閘道器進行會談重建以進行接管,亦可將此呼叫會談無縫地轉移或集中至同一台多媒體閘道器,以減少系統資源的耗費。 The present invention activates the pre-configured multimedia gateway virtual machine according to the call flow threshold, dynamically adds or shuts down the multimedia gateways that provide online services, or generates simulated packets of the initial call conversation for the multimedia gateway to rebuild the conversation on other multimedia gateways for taking over. The call conversation can also be seamlessly transferred or concentrated to the same multimedia gateway to reduce the consumption of system resources.

達成上述發明目的之該系統係包括多媒體訊號產生系統與高可用度多媒體閘道器系統。 The system for achieving the above-mentioned invention purpose includes a multimedia signal generation system and a high-availability multimedia gateway system.

上述多媒體訊號產生系統,在語音方面,可由國家時間與頻率標準實驗室提供報時音源,或由其他設備商或營運商提供即時語音廣播音源。可直接透過登記第9號接頭(Registered Jack-9,RJ9)、登記第11號接頭(Registered Jack- 11,RJ11)、登記第45號接頭(Registered Jack-45,RJ45)或尼爾-康塞曼(Bayonet Neill-Concelman,BNC)接頭,將其類比音源接入多媒體閘道器;在視訊影像方面,可由多媒體影像提供端提供即時影像,透過網路介面接入多媒體閘道器。該即時影像可以是政府的宣導政策影片,也可以是企業提供的廣告影片。 The multimedia signal generation system can provide time signal audio source from the National Time and Frequency Standards Laboratory, or real-time voice broadcast audio source from other equipment vendors or operators. The analog audio source can be directly connected to the multimedia gateway through the Registered Jack-9 (RJ9), Registered Jack-11 (RJ11), Registered Jack-45 (RJ45) or Bayonet Neill-Concelman (BNC) connector; in terms of video images, the multimedia image provider can provide real-time images and connect to the multimedia gateway through the network interface. The real-time image can be a government policy propaganda video or an advertising video provided by an enterprise.

上述高可用度多媒體閘道器系統,可接受多媒體系統產生的類比音源,透過進階Linux聲音體系(Advanced Linux Sound Architecture,ALSA)為音效卡提供驅動組件,以處理系統中的聲音裝置,也可接受多媒體系統產生的影像。其以訊號交換核心的SIP/即時傳輸協議(Real-time Transport Protocol,RTP)對外接收來自SIP應用伺服器的呼叫,且對內統整以下功能模組: The above-mentioned high-availability multimedia gateway system can accept analog audio sources generated by multimedia systems, provide driver components for sound cards through Advanced Linux Sound Architecture (ALSA) to process the sound devices in the system, and can also accept images generated by multimedia systems. It uses the signal exchange core SIP/Real-time Transport Protocol (RTP) to receive calls from SIP application servers externally, and integrates the following functional modules internally:

高可用性分配模組,用於接收外部SIP應用伺服器的會談封包,並分配其呼叫會談封包的訊務流。 High availability distribution module, used to receive the session packets from the external SIP application server and distribute the traffic flow of the call session packets.

訊務分析處理模組,用於存放呼叫會談重建時所需要的封包欄位資訊,以及接收管理監控模組轄下所有的多媒體閘道器的資源使用統計,以將該資訊通知高可用性分配模組。 The traffic analysis and processing module is used to store the packet field information required for call conference reestablishment and receive resource usage statistics of all multimedia gateways under the management and monitoring module to notify the high availability allocation module of the information.

管理監控模組,用於管轄所有的多媒體閘道器的系統資源,及動態地調適多媒體閘道器的機器數。 The management and monitoring module is used to manage the system resources of all multimedia gateways and dynamically adjust the number of multimedia gateway machines.

訊務重組模組,用於提供重建會談所需的封包。 The signal reconstructing module is used to provide the packets required to reconstruct the conversation.

資料庫,用於在呼叫會談過程中記錄封包資訊,以及提供重建會談所需要的封包資訊欄位。 Database used to record packet information during a call conversation and provide packet information fields required to reconstruct the conversation.

多媒體閘道器,用於將類比音源,透過快速周邊組件互連標準(Peripheral Component Interconnect Express,PCI-E)的音效卡,轉換成數位音源,也可接受影像擷取卡的影像以及網路影音影像,並具有SIP/RTP協議與訊務復原功能。 The multimedia gateway is used to convert analog audio sources into digital audio sources through a Peripheral Component Interconnect Express (PCI-E) sound card. It can also receive images from a video capture card and network audio and video images, and has SIP/RTP protocol and signal recovery functions.

達成上述發明目的之該多媒體閘道器管理方法包括呼叫會談記錄與接管設置流程、會談重建衝突設置流程、非次序性會談重建設置流程、以及多媒體閘道器自動調適高可用度不斷話設置流程。 The multimedia gateway management method for achieving the above-mentioned invention purpose includes a call conference recording and takeover setting process, a conference reconstruction conflict setting process, a non-sequential conference reconstruction setting process, and a multimedia gateway automatic adjustment high availability continuous call setting process.

呼叫會談記錄與接管設置流程:用戶端開始進行呼叫,記錄呼叫會談期間的訊務封包並進行分析與處理,其中,當其多媒體閘道器故障時,藉由啟動第2台多媒體閘道器以接管第1台多媒體閘道器的呼叫會談,用戶端可維持原呼叫狀態,即完成通話不中斷的接管設置。 Call conference recording and takeover setting process: The client starts the call, records the traffic packets during the call conference, and analyzes and processes them. When the multimedia gateway fails, the second multimedia gateway is activated to take over the call conference of the first multimedia gateway. The client can maintain the original call status, that is, complete the takeover setting without interrupting the call.

會談重建衝突設置流程:因多媒體閘道器配置的網路環境不盡相同,在會談重建過程中,個別的會談通話可能使用到相同的資源而發生衝突,此流程包含其資源衝突修正的設置方式。 Conference reestablishment conflict setting process: Because the network environment of multimedia gateway configurations is different, during the conference reestablishment process, individual conference calls may use the same resources and cause conflicts. This process includes the setting method for correcting resource conflicts.

非次序性會談重建設置流程:其不需依照原始呼叫會談順序,透過封包重組的機制亦可反向重建呼叫會談。 Non-sequential conference re-establishment setup process: It does not need to follow the original call conference sequence, and the call conference can also be re-established in reverse through the packet reassembly mechanism.

多媒體閘道器自動調適高可用度不斷話設置流程:多媒體閘道器根據目前呼叫會談封包的訊務流,在進行系統資源的配置時,可無縫接管原始多媒體閘道器的呼叫會談,使用戶端能維持呼叫會談不中斷,並提供穩定的語音及影像準確內容,以保障用戶撥打存取即時多媒體內容。 Multimedia gateway automatically adjusts the high availability and uninterrupted call setting process: Based on the traffic flow of the current call and conference packets, the multimedia gateway can seamlessly take over the call and conference of the original multimedia gateway when configuring system resources, so that the client can maintain the call and conference without interruption, and provide stable voice and accurate image content to ensure that users can dial and access real-time multimedia content.

於另一方面,本發明提供一種高可用度多媒體閘道器系統,包括:複數多媒體閘道器,用於提供會談發起協議(SIP)呼叫會談功能;高可用性分配模組,用於在用戶端發起呼叫會談時,將該呼叫會談分配至該等多媒體閘道器中之第一多媒體閘道器;訊務分析處理模組,用於自該呼叫會談之訊務封包擷取該呼叫會談之建立資訊,以儲存該建立資訊;管理監控模組,用於在該呼叫會談期間,監測該第一多媒體閘道器之活動有無異常,以在該第一多媒體閘道器之活動有異常時,令該等多媒體閘道器中之第二多媒體閘道器接管該呼叫會談;以及訊 務重組模組,用於根據該建立資訊,產生該呼叫會談之複數會談重建封包,以供該第二多媒體閘道器在接管該呼叫會談時,重建該呼叫會談之狀態。 On the other hand, the present invention provides a high-availability multimedia gateway system, comprising: a plurality of multimedia gateways for providing a session initiation protocol (SIP) call conversation function; a high-availability allocation module for allocating the call conversation to a first multimedia gateway among the multimedia gateways when a client initiates a call conversation; a traffic analysis and processing module for extracting establishment information of the call conversation from a traffic packet of the call conversation to store the establishment information; a management monitoring module for monitoring the activity of the first multimedia gateway during the call session to detect whether there is any abnormality, so as to make the second multimedia gateway among the multimedia gateways take over the call session when there is any abnormality in the activity of the first multimedia gateway; and a service reconstruction module for generating a plurality of session reconstruction packets of the call session according to the establishment information, so as to allow the second multimedia gateway to reconstruct the state of the call session when taking over the call session.

在一實施例中,該管理監控模組復用於監測並提供該等多媒體閘道器之資源使用情況,而該高可用性分配模組係根據該資源使用情況將該呼叫會談分配至該第一多媒體閘道器。 In one embodiment, the management monitoring module is reused to monitor and provide resource usage of the multimedia gateways, and the high availability allocation module allocates the call conference to the first multimedia gateway based on the resource usage.

在一實施例中,若該第一多媒體閘道器之資源已不足以處理該呼叫會談,或該第一多媒體閘道器發生故障,則該管理監控模組判斷該第一多媒體閘道器之活動有異常。 In one embodiment, if the resources of the first multimedia gateway are insufficient to handle the call conversation, or the first multimedia gateway fails, the management monitoring module determines that the activity of the first multimedia gateway is abnormal.

在一實施例中,該管理監控模組復用於根據該等多媒體閘道器之資源使用情況,啟動或關閉該等多媒體閘道器中之至少一者,以調節該等多媒體閘道器之資源量。 In one embodiment, the management monitoring module is reused to activate or deactivate at least one of the multimedia gateways according to the resource usage of the multimedia gateways to adjust the resource amount of the multimedia gateways.

在一實施例中,該呼叫會談之該建立資訊包括該呼叫會談之主叫端與被叫端的入腳(ingress)與出腳(egress)之SIP INVITE封包、SIP 200 OK封包與SIP ACK封包的SIP欄位與會談描述協議(Session Description Protocol,SDP)欄位,以及該主叫端與該被叫端之該入腳與該出腳之間的成對關係。 In one embodiment, the establishment information of the call session includes the SIP INVITE packets of the ingress and egress of the calling end and the called end of the call session, the SIP fields and the Session Description Protocol (SDP) fields of the SIP 200 OK packet and the SIP ACK packet, and the paired relationship between the ingress and egress of the calling end and the called end.

在一實施例中,該呼叫會談之該建立資訊復包括SIP INVITE封包與SIP 200 OK封包之間互相轉變形式儲存之封包,以根據該等互相轉變形式儲存之封包,該第二多媒體閘道器在重建該呼叫會談之該狀態時,不需依照該呼叫會談之原始封包順序。 In one embodiment, the establishment information of the call session includes packets stored in mutually converted forms between SIP INVITE packets and SIP 200 OK packets, so that the second multimedia gateway does not need to follow the original packet sequence of the call session when reconstructing the state of the call session based on the packets stored in mutually converted forms.

在一實施例中,該第二多媒體閘道器係模擬該等會談重建封包之發送與接收,以重建該呼叫會談之該狀態。 In one embodiment, the second multimedia gateway simulates the sending and receiving of the session reestablishment packets to reestablish the state of the call session.

在一實施例中,該訊務重組模組復用於在該第二多媒體閘道器接管該呼叫會談時,檢查該第一多媒體閘道器分配給該呼叫會談之通訊埠是否已被該第二多媒體閘道器佔用,其中,若該通訊埠已被該第二多媒體閘道器佔用,則該訊務重組模組分配未被該第二多媒體閘道器佔用之新通訊埠給被接管後之該呼叫會談。 In one embodiment, the traffic reorganization module is reused to check whether the communication port allocated by the first multimedia gateway to the call conference has been occupied by the second multimedia gateway when the second multimedia gateway takes over the call conference. If the communication port has been occupied by the second multimedia gateway, the traffic reorganization module allocates a new communication port that is not occupied by the second multimedia gateway to the call conference after it is taken over.

於又一方面,本發明提供一種多媒體閘道器管理方法,包括:在用戶端發起會談發起協議之呼叫會談時,將該呼叫會談分配至複數多媒體閘道器中之第一多媒體閘道器;自該呼叫會談之訊務封包擷取該呼叫會談之建立資訊,以儲存該建立資訊;在該呼叫會談之期間,監測該第一多媒體閘道器之活動有無異常,其中,在該第一多媒體閘道器之活動有異常時,令該等多媒體閘道器中之第二多媒體閘道器接管該呼叫會談;以及根據該建立資訊,產生該呼叫會談之複數會談重建封包,以供該第二多媒體閘道器在接管該呼叫會談時,重建該呼叫會談之狀態。 In another aspect, the present invention provides a multimedia gateway management method, comprising: when a user terminal initiates a call session of a conference initiation protocol, allocating the call session to a first multimedia gateway among a plurality of multimedia gateways; extracting establishment information of the call session from a traffic packet of the call session to store the establishment information; during the call session, monitoring the first multimedia gateway; Whether the activity of a multimedia gateway is abnormal, wherein when the activity of the first multimedia gateway is abnormal, the second multimedia gateway among the multimedia gateways is allowed to take over the call conversation; and according to the establishment information, a plurality of conversation reconstruction packets of the call conversation are generated so that the second multimedia gateway can reconstruct the state of the call conversation when taking over the call conversation.

於再一方面,本發明提供一種電腦可讀媒體,應用於多媒體閘道器系統中,係儲存有指令,以執行上述之多媒體閘道器管理方法。 On another aspect, the present invention provides a computer-readable medium for use in a multimedia gateway system, which stores instructions for executing the above-mentioned multimedia gateway management method.

110:多媒體訊號產生系統 110: Multimedia signal generation system

120:SIP應用伺服器 120:SIP application server

130:SIP話機 130:SIP phone

140:數位音源接收機 140: Digital audio receiver

150:POTS話機 150:POTS phone

160:行動話機 160: Mobile phone

170:類比音源接收機 170: Analog audio receiver

200:高可用度多媒體閘道器系統 200: High availability multimedia gateway system

210~212:多媒體閘道器 210~212: Multimedia gateway

220~222:媒體用戶代理端 220~222: Media User Agent

230~232:訊務復原處理器 230~232: Service recovery processor

240:管理監控模組 240: Management monitoring module

250:訊務重組模組 250: Communication service reorganization module

260:資料庫 260: Database

270:高可用性分配模組 270: High availability distribution module

280:訊務分析處理模組 280: Information analysis and processing module

301~319,410~450,510~560,610~650,710~780:流程步驟 301~319,410~450,510~560,610~650,710~780: Process steps

圖1為本發明之高可用度多媒體閘道器系統與多媒體閘道器管理方法的多媒體閘道器與外部終端之介接示意圖。 Figure 1 is a schematic diagram of the interface between the multimedia gateway and the external terminal of the high-availability multimedia gateway system and multimedia gateway management method of the present invention.

圖2為本發明之高可用度多媒體閘道器系統的架構圖。 Figure 2 is a diagram of the architecture of the high-availability multimedia gateway system of the present invention.

圖3為本發明之呼叫會談接管的封包訊務流程圖。 Figure 3 is a packet traffic flow chart of the call conference takeover of the present invention.

圖4為本發明之多媒體閘道器管理方法的呼叫會談記錄與接管設置流程圖。 Figure 4 is a flowchart of call conference recording and takeover settings of the multimedia gateway management method of the present invention.

圖5為本發明之多媒體閘道器管理方法的會談重建衝突設置流程圖。 Figure 5 is a flow chart of the conference reconstruction conflict setting of the multimedia gateway management method of the present invention.

圖6為本發明之多媒體閘道器管理方法的非次序性會談重建設置流程圖。 Figure 6 is a flowchart of the non-sequential negotiation reconstruction setting of the multimedia gateway management method of the present invention.

圖7為本發明之多媒體閘道器管理方法的多媒體閘道器自動調適高可用度不斷話設置流程圖。 Figure 7 is a flowchart of the multimedia gateway automatic adjustment high availability continuous setting of the multimedia gateway management method of the present invention.

請參閱圖1,其為本發明之按流量自動調適高可用度多媒體閘道器的介接示意圖。本發明之高可用度多媒體閘道器系統與多媒體閘道器管理方法包含多媒體訊號產生系統110及藉由用戶呼叫以存取即時語音影像的高可用度多媒體閘道器系統200,用戶端透過SIP/RTP等協議即可使用呼叫撥號以接取高可用度的即時多媒體內容。 Please refer to Figure 1, which is a schematic diagram of the interface of the high-availability multimedia gateway that automatically adjusts according to traffic of the present invention. The high-availability multimedia gateway system and multimedia gateway management method of the present invention include a multimedia signal generation system 110 and a high-availability multimedia gateway system 200 for accessing real-time voice and image through user calls. The client can use call dialing to access high-availability real-time multimedia content through protocols such as SIP/RTP.

在一實施例中,多媒體訊號產生系統110透過RJ11、RJ45或BNC等介面連接到高可用度多媒體閘道器系統200,以提供多媒體內容,俾使普通老式電話服務(plain old telephone service,POTS)話機150等用戶端透過SIP/RTP等協議即可使用呼叫撥號方式通過SIP應用伺服器120與高可用度多媒體閘道器系統200接取高可用度的即時多媒體內容。 In one embodiment, the multimedia signal generation system 110 is connected to the high-availability multimedia gateway system 200 through an interface such as RJ11, RJ45 or BNC to provide multimedia content, so that a client such as a plain old telephone service (POTS) phone 150 can access high-availability real-time multimedia content through a SIP application server 120 and the high-availability multimedia gateway system 200 using a call dialing method through protocols such as SIP/RTP.

SIP應用伺服器120負責轉送SIP訊號以提供進階服務,例如三方通話服務。高可用度多媒體閘道器系統200之用戶端可包含SIP話機130、數位音源接收機140、POTS話機150、行動話機160及類比音源接收機170。類比 音源接收機170及數位音源接收機140可接收並處理多媒體音源,也包含校時服務。其他一般終端亦可透過呼叫方式接取多媒體內容。 The SIP application server 120 is responsible for forwarding SIP signals to provide advanced services, such as three-way calling services. The client of the high-availability multimedia gateway system 200 may include a SIP phone 130, a digital audio source receiver 140, a POTS phone 150, a mobile phone 160, and an analog audio source receiver 170. The analog audio source receiver 170 and the digital audio source receiver 140 can receive and process multimedia audio sources, and also include time synchronization services. Other general terminals can also access multimedia content through calls.

請參閱圖2,其為本發明之高可用度多媒體閘道器系統200之架構圖。高可用度多媒體閘道器系統200包含多媒體閘道器210~212、管理監控模組240、訊務重組模組250、資料庫260、高可用性分配模組270、以及訊務分析處理模組280。要說明的是,圖2中之多媒體閘道器210~212僅為示範說明,在另一實施例中,高可用度多媒體閘道器系統200可包含任意數量的複數多媒體閘道器。 Please refer to FIG. 2, which is a schematic diagram of the high-availability multimedia gateway system 200 of the present invention. The high-availability multimedia gateway system 200 includes multimedia gateways 210-212, a management and monitoring module 240, a traffic reorganization module 250, a database 260, a high-availability allocation module 270, and a traffic analysis and processing module 280. It should be noted that the multimedia gateways 210-212 in FIG. 2 are only for demonstration purposes. In another embodiment, the high-availability multimedia gateway system 200 may include any number of multiple multimedia gateways.

每台多媒體閘道器210~212包含媒體用戶代理端220~222及訊務復原處理器230~232。多媒體閘道器210~212通訊連接多媒體訊號產生系統110、管理監控模組240、訊務重組模組250及高可用性分配模組270。管理監控模組240通訊連接多媒體閘道器210~212及訊務分析處理模組280。訊務重組模組250通訊連接多媒體閘道器210~212的訊務復原處理器230~232及資料庫260。資料庫260通訊連接訊務重組模組250及訊務分析處理模組280。高可用性分配模組270通訊連接多媒體閘道器210~212、訊務分析處理模組280及SIP應用伺服器120。訊務分析處理模組280通訊連接管理監控模組240、資料庫260及高可用性分配模組270。 Each multimedia gateway 210-212 includes a media user agent 220-222 and a traffic recovery processor 230-232. The multimedia gateway 210-212 is communicatively connected to the multimedia signal generation system 110, the management and monitoring module 240, the traffic reorganization module 250 and the high availability allocation module 270. The management and monitoring module 240 is communicatively connected to the multimedia gateway 210-212 and the traffic analysis processing module 280. The traffic reorganization module 250 is communicatively connected to the traffic recovery processor 230-232 and the database 260 of the multimedia gateway 210-212. The database 260 is communicatively connected to the traffic reorganization module 250 and the traffic analysis processing module 280. The high availability distribution module 270 is connected to the multimedia gateways 210-212, the traffic analysis processing module 280 and the SIP application server 120. The traffic analysis processing module 280 is connected to the management and monitoring module 240, the database 260 and the high availability distribution module 270.

在一實施例中,多媒體閘道器210~212、管理監控模組240、訊務重組模組250、資料庫260、高可用性分配模組270、以及訊務分析處理模組280均可為單獨一台實體設備,亦可為VMware、KVM、Xen、MiscroSoft Hyper-V等虛擬化技術之虛擬機(virtual machine),亦可為容器化技術如Docker等之容器(container)。 In one embodiment, the multimedia gateways 210-212, the management and monitoring module 240, the traffic reorganization module 250, the database 260, the high availability allocation module 270, and the traffic analysis and processing module 280 can all be a single physical device, or a virtual machine of virtualization technologies such as VMware, KVM, Xen, and Microsoft Hyper-V, or a container of containerization technologies such as Docker.

多媒體閘道器210~212用於將多媒體訊號產生系統110產生的類比訊號轉換成RTP協議數位訊號,以方便在網際網路上進行多媒體訊號傳輸。 多媒體閘道器210~212具備小型SIP服務功能,且包含媒體用戶代理端220~221做為SIP服務端,以提供多媒體內容接取服務。另外,多媒體閘道器210~212可做為SIP伺服器,以提供用戶端之間的通話功能。多媒體閘道器210~212亦包含訊務復原處理器230~232。 The multimedia gateways 210-212 are used to convert the analog signals generated by the multimedia signal generation system 110 into RTP protocol digital signals to facilitate multimedia signal transmission on the Internet. The multimedia gateways 210-212 have a small SIP service function and include media user agent terminals 220-221 as SIP server terminals to provide multimedia content access services. In addition, the multimedia gateways 210-212 can be used as SIP servers to provide call functions between client terminals. The multimedia gateways 210-212 also include service recovery processors 230-232.

當多媒體閘道器210~212發生異常、關閉或進行接管服務時,除負責重建SIP/RTP訊號外,另須發送異動多媒體閘道器的更新訊務通知用戶端,以避免通話中斷的情況。另外,可在兩台多媒體閘道器皆正常起動的情況下,由其中一台多媒體閘道器接管另一台多媒體閘道器的呼叫會談,例如,可在多媒體閘道器210及多媒體閘道器211皆正常起動的情況下,由多媒體閘道器211接管多媒體閘道器210的呼叫會談。 When multimedia gateways 210~212 are abnormal, shut down, or take over services, in addition to being responsible for rebuilding SIP/RTP signals, they must also send updated information about the changed multimedia gateway to notify the client to avoid call interruption. In addition, when both multimedia gateways are started normally, one of the multimedia gateways can take over the call conference of the other multimedia gateway. For example, when both multimedia gateways 210 and multimedia gateway 211 are started normally, multimedia gateway 211 can take over the call conference of multimedia gateway 210.

在一實施例中,呼叫會談發生於主叫端與被叫端之間,其中,主叫端與被叫端中之一者可為多媒體閘道器的媒體用戶代理端,且主叫端與被叫端中之另一者可為用戶端。或者,主叫端與被叫端可分別為不同之用戶端。 In one embodiment, a call conversation occurs between a calling terminal and a called terminal, wherein one of the calling terminal and the called terminal may be a media user agent terminal of a multimedia gateway, and the other of the calling terminal and the called terminal may be a client terminal. Alternatively, the calling terminal and the called terminal may be different client terminals.

管理監控模組240用於管理各台多媒體閘道器210~212的啟動與關閉。管理監控模組240可接收訊務分析處理模組280的流量分析,若流量屬於尖峰用量時,管理監控模組240會自動啟動更多台多媒體閘道器210~212以進行負載平衡;若流量為離峰用量時,管理監控模組240會通知部分多媒體閘道器(例如多媒體閘道器211~212)進行關機,並通知欲接管的多媒體閘道器(例如多媒體閘道器210)啟用其訊務復原處理器230,以接管即將關閉的多媒體閘道器211~212的呼叫會談,讓用戶端的通話能持續進行,不會因為關閉多媒體閘道器211~212而造成通話中斷。 The management and monitoring module 240 is used to manage the activation and deactivation of each multimedia gateway 210-212. The management and monitoring module 240 can receive the traffic analysis of the traffic analysis processing module 280. If the traffic is at peak usage, the management and monitoring module 240 will automatically activate more multimedia gateways 210-212 for load balancing; if the traffic is at off-peak usage, the management and monitoring module 240 will notify some multimedia gateways (such as multimedia gateway 2 11~212) to shut down, and notify the multimedia gateway to be taken over (for example, multimedia gateway 210) to activate its service recovery processor 230 to take over the call conversation of the multimedia gateway 211~212 that is about to be shut down, so that the client's call can continue without being interrupted due to the shutdown of the multimedia gateway 211~212.

此外,管理監控模組240會監測各台多媒體閘道器210~212的資源使用情況,並將該資源使用情況通過訊務分析處理模組280告知高可用性分 配模組270。上述資源包括多媒體閘道器的中央處理器(central processing unit,CPU)的運算時間、記憶體的儲存空間、以及網路I/O資源(例如通訊埠)。 In addition, the management monitoring module 240 monitors the resource usage of each multimedia gateway 210-212, and informs the high availability allocation module 270 of the resource usage through the traffic analysis processing module 280. The above resources include the computing time of the central processing unit (CPU) of the multimedia gateway, the storage space of the memory, and the network I/O resources (such as communication ports).

訊務重組模組250接收到訊務復原處理器230的請求後,可將儲存在資料庫260的原先呼叫會談的封包交換內容中,被接管的多媒體閘道器211~212的網際網路協議(Internet Protocol,IP)位址及通訊埠(port)更換成接管的多媒體閘道器210的IP位址與通訊埠。若被接管的多媒體閘道器的通訊埠與接管的多媒體閘道器210的通訊埠衝突,則會更改SDP的通訊埠,並藉由SIP的再邀請(reINVITE)封包或更新(UPDATE)封包通知用戶端,以達成接管的功能。 After receiving the request from the service recovery processor 230, the service reorganization module 250 can replace the Internet Protocol (IP) address and communication port of the taken-over multimedia gateways 211~212 in the packet exchange content of the original call session stored in the database 260 with the IP address and communication port of the taking-over multimedia gateway 210. If the communication port of the taken-over multimedia gateway conflicts with the communication port of the taking-over multimedia gateway 210, the communication port of the SDP will be changed and the client will be notified through the SIP reINVITE packet or update packet to achieve the takeover function.

資料庫260針對呼叫會談存放著兩種資料欄位,分別是呼叫關聯欄位遠端標籤(remote tag)及本地標籤(local tag)與關聯欄位個別之封包訊息。詳言之,每一個呼叫會談的主叫端與被叫端所發送的封包都會經過高可用度多媒體閘道器系統200中的一個多媒體閘道器,以多媒體閘道器的角度來看,主叫端與被叫端各有兩個會談腳,即入腳(ingress)與出腳(egress),入腳與出腳對應上述之遠端標籤與本地標籤。 The database 260 stores two data fields for call conferences, namely, the call-related fields remote tag and local tag and the packet information of the associated fields. In detail, the packets sent by the calling end and the called end of each call conference will pass through a multimedia gateway in the high-availability multimedia gateway system 200. From the perspective of the multimedia gateway, the calling end and the called end each have two conference pins, namely, ingress and egress, which correspond to the remote tag and local tag mentioned above.

請參考圖3的步驟301、302及304~307,在開始呼叫會談時,主叫端會先發送邀請(INVITE)封包給被叫端,被叫端會回覆接受(200 OK)封包給主叫端,然後主叫端會發送確認(ACK)封包給被叫端,這些封包都會由居中的多媒體閘道器轉送。因此,主叫端的入腳包括上述的INVITE封包與ACK封包,主叫端的出腳包括上述的200 OK封包,被叫端的入腳包括上述的200 OK封包,被叫端的出腳包括上述的INVITE封包與ACK封包。 Please refer to steps 301, 302 and 304-307 in Figure 3. When starting a call session, the calling end will first send an invitation (INVITE) packet to the called end, and the called end will reply with an acceptance (200 OK) packet to the calling end, and then the calling end will send an acknowledgment (ACK) packet to the called end. These packets will be forwarded by the central multimedia gateway. Therefore, the input of the calling end includes the above-mentioned INVITE packet and ACK packet, the output of the calling end includes the above-mentioned 200 OK packet, the input of the called end includes the above-mentioned 200 OK packet, and the output of the called end includes the above-mentioned INVITE packet and ACK packet.

資料庫260儲存有主叫端與被叫端的入腳封包與出腳封包中的由第3261號評論請求(RFC 3261)所定義的SIP欄位以及由第4566號評論請求(RFC 4566)所定義之SDP欄位,上述SIP欄位包括Via、From、To、Contact、Call-ID及CSeq等欄位,上述SDP欄位則包括協議版本、會談名稱、RTP傳輸名稱和傳 輸IP位置資訊、RTP/即時傳輸控制協議(Real-time Transport Control Protocol,RTCP)通訊埠、通話屬性、雙方通話編碼方式等欄位。另外,資料庫260亦儲存有同一呼叫會談的主叫端與被叫端的入腳與出腳之間的成對關係。上述的主叫端與被叫端的入腳與出腳的各封包的SIP欄位與SDP欄位,以及主叫端與被叫端的會談腳之間的成對關係,可合稱為呼叫會談的建立資訊。 The database 260 stores the SIP fields defined by the Request for Comment No. 3261 (RFC 3261) and the SDP fields defined by the Request for Comment No. 4566 (RFC 4566) in the incoming and outgoing packets of the calling end and the called end. The SIP fields include fields such as Via, From, To, Contact, Call-ID, and CSeq. The SDP fields include fields such as the protocol version, the session name, the RTP transport name and the transport IP location information, the RTP/Real-time Transport Control Protocol (RTCP) communication port, the call attributes, and the two-way call encoding method. In addition, the database 260 also stores the paired relationship between the input and output pins of the calling end and the called end of the same call conversation. The SIP field and SDP field of each packet of the input and output pins of the calling end and the called end, as well as the paired relationship between the conversation pins of the calling end and the called end, can be collectively referred to as the establishment information of the call conversation.

高可用性分配模組270會通過訊務分析處理模組280收到來自管理監控模組240的各台多媒體閘道器的資源使用情況。當高可用性分配模組270通過SIP應用伺服器120收到來自用戶端的封包,會根據該資源使用情況決定將該封包傳送到多媒體閘道器210~212中資源使用較少或最少的多媒體閘道器,以提供負載平衡功能。此外,用戶端與多媒體閘道器210~212的媒體用戶代理端220~222之間的呼叫會談封包,以及用戶端之間的呼叫會談封包,都會通過高可用性分配模組270,高可用性分配模組270會將這些呼叫會談封包中的SIP RFC 3261所定義的邀請(INVITE)、再邀請(reINVITE)、更新(UPDATE)、確認(ACK)、接受(200 OK)、選項(OPTIONS)及訊息(INFO)等封包複製一份傳送至訊務分析處理模組280。 The high availability distribution module 270 receives the resource usage of each multimedia gateway from the management and monitoring module 240 through the traffic analysis processing module 280. When the high availability distribution module 270 receives a packet from the client through the SIP application server 120, it will decide to transmit the packet to the multimedia gateway with less or the least resource usage among the multimedia gateways 210-212 according to the resource usage to provide a load balancing function. In addition, call session packets between the client and the media user agent 220-222 of the multimedia gateway 210-212, as well as call session packets between the clients, will pass through the high availability distribution module 270. The high availability distribution module 270 will copy the invitation (INVITE), reINVITE, update (UPDATE), confirmation (ACK), acceptance (200 OK), options (OPTIONS) and information (INFO) packets defined in SIP RFC 3261 in these call session packets and transmit them to the traffic analysis processing module 280.

訊務分析處理模組280用於接收來自高可用性分配模組270的封包訊息,並將封包依據遠端標籤及本地標籤進行簡化處理後存放至資料庫260,也就是將每個呼叫會談的建立資訊存入資料庫260,以供多媒體閘道器210進行訊務復原處理器230的通話復原切換機制。另一方面,因為訊務分析處理模組280記錄著個別多媒體閘道器210~212的負載量,當負載需求有變動的時候,會通知管理監控模組240啟動更多多媒體閘道器以增加系統資源,或關閉某些多媒體閘道器以縮減系統資源,如此可以自動化地彈性調適系統資源。 The traffic analysis processing module 280 is used to receive packet information from the high availability distribution module 270, and to store the packets into the database 260 after simplified processing according to the remote label and the local label, that is, to store the establishment information of each call session into the database 260 for the multimedia gateway 210 to perform the call recovery switching mechanism of the traffic recovery processor 230. On the other hand, because the traffic analysis processing module 280 records the load of individual multimedia gateways 210-212, when the load demand changes, it will notify the management monitoring module 240 to activate more multimedia gateways to increase system resources, or shut down some multimedia gateways to reduce system resources, so that system resources can be adjusted automatically and flexibly.

以下詳述本發明之各種方法流程,其中,邀請(INVITE)、再邀請(reINVITE)、更新(UPDATE)、嘗試中(Trying)、響鈴(Ringing)、確認(ACK)與接 受(200 OK)等封包,以及出現於下文中之其他各種封包,均為SIP的RFC 3261所定義之封包。 The following is a detailed description of the various method flows of the present invention, wherein the packets such as INVITE, reINVITE, UPDATE, Trying, Ringing, ACK and 200 OK, as well as other packets appearing below, are all packets defined in RFC 3261 of SIP.

請參閱圖3,其為呼叫會談接管之封包訊務流程圖,其中,以多媒體閘道器211接管多媒體閘道器210的呼叫會談為例說明。多媒體閘道器210的媒體用戶代理端與多媒體閘道器211的媒體用戶代理端都是能透過多媒體訊號產生系統110提供同一多媒體內容的接取服務的SIP服務端。以下說明圖3流程的各步驟,其中,INVITE/SDP及200 OK/SDP等SIP通話封包後綴的「/SDP」係強調該等封包均包含前述之SDP欄位。 Please refer to Figure 3, which is a packet traffic flow chart of call conference takeover, in which multimedia gateway 211 takes over the call conference of multimedia gateway 210 as an example. The media user agent of multimedia gateway 210 and the media user agent of multimedia gateway 211 are both SIP service terminals that can provide access services for the same multimedia content through multimedia signal generation system 110. The following describes the steps of the process of Figure 3, in which the "/SDP" suffix of SIP call packets such as INVITE/SDP and 200 OK/SDP emphasizes that these packets all contain the aforementioned SDP field.

在步驟301,用戶端發送INVITE/SDP封包至多媒體閘道器210。多媒體閘道器210在步驟302轉送該INVITE/SDP封包至其媒體用戶代理端前,會在步驟303發送100 Trying封包告知用戶端目前正在轉送該INVITE/SDP封包。因為採用自動接聽的方式,在此並無180 Ringing封包產生。 In step 301, the client sends an INVITE/SDP packet to the multimedia gateway 210. Before the multimedia gateway 210 forwards the INVITE/SDP packet to its media user agent in step 302, it sends a 100 Trying packet in step 303 to inform the client that the INVITE/SDP packet is currently being forwarded. Because the automatic answering method is adopted, no 180 Ringing packet is generated here.

在步驟304,由多媒體閘道器210之媒體用戶代理端直接回傳200 OK/SDP封包。在步驟305,多媒體閘道器210轉送該200 OK/SDP封包至用戶端。在步驟306,用戶端回送ACK封包至多媒體閘道器210。在步驟307,多媒體閘道器210轉送該ACK封包至其媒體用戶代理端,至此已經完成建立通話關係。 In step 304, the media user agent of the multimedia gateway 210 directly returns a 200 OK/SDP packet. In step 305, the multimedia gateway 210 forwards the 200 OK/SDP packet to the client. In step 306, the client returns an ACK packet to the multimedia gateway 210. In step 307, the multimedia gateway 210 forwards the ACK packet to its media user agent, and the call relationship has been established.

此時,可在多媒體閘道器210關機或開機的情況下,由多媒體閘道器211進行接管步驟,並重建此呼叫會談。由於在多媒體閘道器210下,雙方的封包訊息交換內容在處理後皆存放至資料庫260,故多媒體閘道器211可使用其訊務復原處理器231將資料庫260中的封包訊息進行重組。接著,多媒體閘道器211準備進行接管,會在步驟308、311及312以模擬封包的狀況復原多媒體閘道器210的呼叫會談,以避免用戶端接收到還原的訊號而影響後續的用戶端行為。以下詳述後續流程。 At this time, the multimedia gateway 211 can take over the call and rebuild the call session when the multimedia gateway 210 is turned off or on. Since the packet information exchanged by both parties is stored in the database 260 after processing under the multimedia gateway 210, the multimedia gateway 211 can use its traffic recovery processor 231 to reconstruct the packet information in the database 260. Then, the multimedia gateway 211 is ready to take over, and will restore the call of the multimedia gateway 210 in steps 308, 311 and 312 by simulating the packet status, so as to avoid the client receiving the restored signal and affecting the subsequent client behavior. The subsequent process is described in detail below.

首先在步驟308,多媒體閘道器211模擬接收來自用戶端的INVITE/SDP封包(其內容雷同步驟301中之INVITE/SDP封包)。在步驟309,多媒體閘道器211轉送該INVITE/SDP封包(其內容雷同步驟302中之INVITE/SDP封包)至其媒體用戶代理端。接著在步驟310,多媒體閘道器211接收其媒體用戶代理端回送之200 OK/SDP封包。在步驟311,多媒體閘道器211模擬轉送該200 OK/SDP封包(其內容雷同步驟305中之200 OK/SDP封包)至用戶端。在步驟312,多媒體閘道器211模擬接收用戶端回送之ACK封包(其內容雷同步驟306中之ACK封包)。在步驟313,多媒體閘道器211轉送該ACK封包(其內容雷同步驟307中之ACK封包)至其媒體用戶代理端。此時,多媒體閘道器210與多媒體閘道器211皆有該呼叫會談的資訊。 First, in step 308, the multimedia gateway 211 simulates receiving the INVITE/SDP packet from the client (its content is the INVITE/SDP packet in the synchronization process 301). In step 309, the multimedia gateway 211 forwards the INVITE/SDP packet (its content is the INVITE/SDP packet in the synchronization process 302) to its media user agent. Then in step 310, the multimedia gateway 211 receives the 200 OK/SDP packet sent back by its media user agent. In step 311, the multimedia gateway 211 simulates forwarding the 200 OK/SDP packet (its content is the 200 OK/SDP packet in the synchronization process 305) to the client. In step 312, the multimedia gateway 211 simulates receiving the ACK packet sent back by the client (its content is the ACK packet in the sync 306). In step 313, the multimedia gateway 211 forwards the ACK packet (its content is the ACK packet in the sync 307) to its media user agent. At this time, both the multimedia gateway 210 and the multimedia gateway 211 have the information of the call session.

步驟308、311與312之模擬轉送與模擬接收僅為多媒體閘道器211內部之模擬,其實與用戶端之間沒有真實的封包傳遞,這是為了使多媒體閘道器211以不影響用戶端的方式重建呼叫會談最初的狀態。因為此時用戶端正在通過多媒體閘道器210進行通話,所以不會再發送INVITE/SDP封包與ACK封包,也不會預期再收到200 OK/SDP封包,故多媒體閘道器211僅能模擬封包之轉送與接收。否則,在步驟311,若多媒體閘道器211真實地轉送步驟310的200 OK/SDP封包至客戶端,則客戶端會發送錯誤訊息,甚至可能令進行中的通話中斷。 The simulated forwarding and simulated reception of steps 308, 311 and 312 are only simulations within the multimedia gateway 211. In fact, there is no real packet transmission between the multimedia gateway 211 and the client. This is to enable the multimedia gateway 211 to reconstruct the initial state of the call conversation in a way that does not affect the client. Because the client is currently talking through the multimedia gateway 210, it will not send INVITE/SDP packets and ACK packets, nor will it expect to receive 200 OK/SDP packets. Therefore, the multimedia gateway 211 can only simulate the forwarding and reception of packets. Otherwise, in step 311, if the multimedia gateway 211 actually forwards the 200 OK/SDP packet of step 310 to the client, the client will send an error message, and may even interrupt the ongoing call.

接著,為完成接管手續,多媒體閘道器211分別在步驟314及315發送reINVITE/SDP(或UPDATE/SDP)封包以通知用戶端和多媒體閘道器211的媒體用戶代理端。然後,多媒體閘道器211依照SIP RFC 3261的規範,分別在步驟316及317接收並處理用戶端及多媒體閘道器211的媒體用戶代理端回送的200 OK/SDP封包,且分別在步驟318及319以ACK封包回應用戶端及多媒體閘道器211的媒體用戶代理端。 Next, to complete the takeover procedure, the multimedia gateway 211 sends reINVITE/SDP (or UPDATE/SDP) packets in steps 314 and 315 to notify the client and the media user agent of the multimedia gateway 211. Then, the multimedia gateway 211 receives and processes the 200 OK/SDP packets sent back by the client and the media user agent of the multimedia gateway 211 in steps 316 and 317 in accordance with the SIP RFC 3261 specification, and responds to the client and the media user agent of the multimedia gateway 211 with ACK packets in steps 318 and 319.

此外,在此說明由管理監控模組240、訊務重組模組250、多媒體閘道器、以及多媒體閘道器的訊務復原處理器共同執行的呼叫會談接管流程。 In addition, the call conference takeover process jointly executed by the management monitoring module 240, the traffic reorganization module 250, the multimedia gateway, and the traffic recovery processor of the multimedia gateway is described here.

首先,管理監控模組240會隨時監看轄下的多媒體閘道器的資源是否有過剩的情況,並通知資源過剩的多媒體閘道器關閉。若資源過剩的多媒體閘道器目前還有呼叫會談進行中,這些正在進行的呼叫會談在貿然關閉的情況下,會造成用戶的通話中斷。因此,由管理監控模組240告知另一多媒體閘道器(以下稱為接管者多媒體閘道器)啟動其訊務復原處理器。訊務重組模組250自資料庫260取得資源過剩的多媒體閘道器(以下稱為被接管多媒體閘道器)的呼叫會談建立資訊。訊務重組模組250會將該呼叫會談建立資訊重新組合成分屬入腳與出腳的INVITE、200 OK與ACK等三個會談重建封包(圖3中步驟308、311及312即使用這樣的會談重建封包)。由於接管者多媒體閘道器與被接管多媒體閘道器的IP位址不同,在重組會談重建封包時,訊務重組模組250會將這些封包中的被接管多媒體閘道器的IP位址更新為接管者多媒體閘道器的IP位址。然後,接管者多媒體閘道器的訊務復原處理器使用前述會談重建封包,以模擬方式,在接管者多媒體閘道器重建與被接管多媒體閘道器相同的呼叫會談建立資訊。此時,用戶端並不知道要跟接管者多媒體閘道器進行通話,因為多媒體串流還是在被接管多媒體閘道器這一邊,因此會由接管者多媒體閘道器發送真實的reINVITE/SDP或UPDATE/SDP封包告知用戶端,請用戶端跟接管者多媒體閘道器進行多媒體串流,在此,reINVITE或UPDATE封包的SDP欄位必須包含接管者多媒體閘道器的IP位址,以便用戶端切換多媒體串流至接管者多媒體閘道器。 First, the management and monitoring module 240 will monitor the resources of the multimedia gateways under its jurisdiction at any time to see if there is excess, and notify the multimedia gateways with excess resources to shut down. If the multimedia gateway with excess resources currently has call conversations in progress, these ongoing call conversations will cause the user's call to be interrupted if they are suddenly closed. Therefore, the management and monitoring module 240 notifies another multimedia gateway (hereinafter referred to as the takeover multimedia gateway) to start its traffic recovery processor. The traffic reorganization module 250 obtains the call conversation establishment information of the multimedia gateway with excess resources (hereinafter referred to as the taken-over multimedia gateway) from the database 260. The traffic reorganization module 250 will reassemble the call conference establishment information into three conference reconstruction packets, namely, INVITE, 200 OK and ACK, which are respectively for the inbound and outbound legs (such conference reconstruction packets are used in steps 308, 311 and 312 in FIG3). Since the IP addresses of the takeover multimedia gateway and the taken over multimedia gateway are different, when reorganizing the conference reconstruction packets, the traffic reorganization module 250 will update the IP address of the taken over multimedia gateway in these packets to the IP address of the takeover multimedia gateway. Then, the traffic recovery processor of the takeover multimedia gateway uses the aforementioned conference reconstruction packets to reconstruct the same call conference establishment information as that of the taken over multimedia gateway in the takeover multimedia gateway in a simulated manner. At this time, the client does not know that it needs to communicate with the receiver multimedia gateway, because the multimedia stream is still on the receiver multimedia gateway side. Therefore, the receiver multimedia gateway will send a real reINVITE/SDP or UPDATE/SDP packet to inform the client, asking the client to conduct multimedia streaming with the receiver multimedia gateway. Here, the SDP field of the reINVITE or UPDATE packet must include the IP address of the receiver multimedia gateway so that the client can switch the multimedia stream to the receiver multimedia gateway.

請參閱圖4,其為本發明之多媒體閘道器管理方法的呼叫會談記錄與接管設置流程圖。在呼叫會談的過程中,當第1台多媒體閘道器發生異常 時,可啟動第2台多媒體閘道器進行會談重建並以通話不中斷的方式進行接管,其步驟詳述如下。 Please refer to Figure 4, which is a flowchart of call conference recording and takeover setting of the multimedia gateway management method of the present invention. During the call conference, when the first multimedia gateway is abnormal, the second multimedia gateway can be activated to reestablish the conference and take over without interrupting the call. The steps are described in detail as follows.

在步驟410,用戶端開始進行呼叫會談,在建立呼叫會談的過程中,訊務分析處理模組280將所有的訊務封包進行分析處理並存放至資料庫260。 In step 410, the client starts a call session. During the process of establishing the call session, the traffic analysis and processing module 280 analyzes and processes all traffic packets and stores them in the database 260.

在步驟420,由管理監控模組240根據目前的呼叫流量及多媒體閘道器可負擔的範圍進行資源監測。若多媒體閘道器運行正常,則返回步驟410持續接收新的呼叫。若觀察到正在進行呼叫會談的多媒體閘道器因資源不足而出現異常,則進入步驟430。 In step 420, the management and monitoring module 240 performs resource monitoring based on the current call traffic and the capacity of the multimedia gateway. If the multimedia gateway operates normally, it returns to step 410 to continue receiving new calls. If it is observed that the multimedia gateway in the call conference is abnormal due to insufficient resources, it enters step 430.

上述資源包括多媒體閘道器的CPU運算時間、記憶體的儲存空間、以及網路I/O資源(例如通訊埠),其中,網路I/O資源不足將導致無法正常處理進線呼叫,CPU運算及記憶體資源耗盡會因為無運算資源進行聲音編碼處理而導致聲音斷斷續續,影響通話品質。管理監控模組240可監測各多媒體閘道器的資源使用情況,以判斷各多媒體閘道器是否具有充足資源以處理目前進行中的呼叫會談。 The above resources include the CPU computing time, memory storage space, and network I/O resources (such as communication ports) of the multimedia gateway. Insufficient network I/O resources will result in the inability to process incoming calls normally. Exhaustion of CPU computing and memory resources will cause intermittent voice due to lack of computing resources for voice encoding processing, affecting the call quality. The management and monitoring module 240 can monitor the resource usage of each multimedia gateway to determine whether each multimedia gateway has sufficient resources to process the currently ongoing call conversation.

在步驟430,由管理監控模組240進行資源的分配,即新增啟動第2台多媒體閘道器,並復原呼叫會談狀態,其經由訊務重組模組250復原步驟410存放在資料庫260中的呼叫會談訊務。 In step 430, the management and monitoring module 240 allocates resources, i.e., adds and activates the second multimedia gateway and restores the call conference status. The call conference service stored in the database 260 in step 410 is restored by the service reorganization module 250.

在步驟440,第2台多媒體伺服器會在圖3流程最後發送reINVITE/SDP或UPDATE/SDP封包至用戶端與第2台多媒體閘道器之媒體用戶代理端,以完成接管。 In step 440, the second multimedia server will send a reINVITE/SDP or UPDATE/SDP packet to the client and the media user agent of the second multimedia gateway at the end of the process in Figure 3 to complete the takeover.

在步驟450,第1台多媒體閘道器之呼叫會談已被第2台多媒體閘道器接管,故第1台多媒體閘道器可釋放該呼叫會談的資源並清除該呼叫會談的資料。 In step 450, the call session of the first multimedia gateway has been taken over by the second multimedia gateway, so the first multimedia gateway can release the resources of the call session and clear the data of the call session.

請參閱圖5,其為本發明之多媒體閘道器管理方法的會談重建衝突設置流程圖。由於每一台多媒體閘道器都有其各自獨立建立的呼叫會談,也可能會使用到相同的RTP/RTCP通訊埠,為解決重建呼叫會談時,接管的多媒體閘道器使用到相同RTP/RTCP通訊埠的問題,其設置的步驟如下。 Please refer to Figure 5, which is a flow chart of the session reestablishment conflict setting of the multimedia gateway management method of the present invention. Since each multimedia gateway has its own independently established call session, it may also use the same RTP/RTCP communication port. In order to solve the problem that the multimedia gateway that takes over uses the same RTP/RTCP communication port when reestablishing the call session, the setting steps are as follows.

在步驟510,會談進行中,第1台多媒體閘道器與第2台多媒體閘道器皆使用相同的RTP/RTCP通訊埠讓用戶端與多媒體閘道器的媒體用戶代理端進行呼叫會談。一般情況下,RTP使用偶數的通訊埠,RTCP則使用RTP的下一個埠號,或使用RTP的下一個通訊埠,例如,RTP使用的通訊埠號為20000埠號,RTCP使用的通訊埠號則為20001埠號。 In step 510, during the conversation, the first multimedia gateway and the second multimedia gateway both use the same RTP/RTCP communication port to allow the client to call and talk with the media user agent of the multimedia gateway. Generally, RTP uses an even-numbered communication port, and RTCP uses the next port number of RTP, or uses the next communication port of RTP. For example, the communication port number used by RTP is port 20000, and the communication port number used by RTCP is port 20001.

在步驟520,第2台多媒體閘道器準備接管第1台多媒體閘道器的呼叫會談,並復原第1台多媒體閘道器的會談資訊。 In step 520, the second multimedia gateway prepares to take over the call conversation of the first multimedia gateway and restores the conversation information of the first multimedia gateway.

在步驟540,復原呼叫會談的SDP資訊時,訊務重組模組250檢查第2台多媒體閘道器是否已佔用新接管的第1台多媒體閘道器的呼叫會談所使用的RTP/RTCP通訊埠。若訊務重組模組250發現該RTP/RTCP通訊埠已被第2台多媒體閘道器佔用,則進入步驟530;若否,則進入步驟560。 In step 540, when restoring the SDP information of the call session, the service reorganization module 250 checks whether the second multimedia gateway has occupied the RTP/RTCP communication port used by the call session of the newly taken over first multimedia gateway. If the service reorganization module 250 finds that the RTP/RTCP communication port has been occupied by the second multimedia gateway, it proceeds to step 530; if not, it proceeds to step 560.

在步驟530,訊務重組模組250分配新通訊埠,以供第2台多媒體閘道器新接管的呼叫會談使用,該新通訊埠與第2台多媒體閘道器既有的呼叫會談不會有衝突。 In step 530, the service reorganization module 250 allocates a new communication port for use by the call conference newly taken over by the second multimedia gateway. The new communication port will not conflict with the existing call conference of the second multimedia gateway.

在步驟550,第2台多媒體閘道器發送更新SDP資訊(即SDP欄位)後的reINVITE或UPDATE封包,以分別通知用戶端及第2台多媒體閘道器的媒體用戶代理端將呼叫會談切換至第2台多媒體閘道器的該新通訊埠。該reINVITE或UPDATE封包的SDP欄位中包含第2台多媒體閘道器的IP位址和該新通訊埠的埠號。最後完成通話不中斷接管流程。 In step 550, the second multimedia gateway sends a reINVITE or UPDATE packet with updated SDP information (i.e., SDP field) to notify the client and the media user agent of the second multimedia gateway to switch the call session to the new communication port of the second multimedia gateway. The SDP field of the reINVITE or UPDATE packet contains the IP address of the second multimedia gateway and the port number of the new communication port. Finally, the call is taken over without interruption.

在步驟560,若新接管的呼叫會談所使用的RTP/RTCP通訊埠未被佔用,則循正常機制,第2台多媒體閘道器發送reINVITE或UPDATE封包以分別通知用戶端及第2台多媒體閘道器的媒體用戶代理端將呼叫會談切換至第2台多媒體閘道器。該reINVITE或UPDATE封包的SDP欄位中包含第2台多媒體閘道器的IP位址。最後完成通話不中斷接管流程。 In step 560, if the RTP/RTCP communication port used by the newly taken over call session is not occupied, the second multimedia gateway sends a reINVITE or UPDATE packet to notify the client and the media user agent of the second multimedia gateway to switch the call session to the second multimedia gateway according to the normal mechanism. The SDP field of the reINVITE or UPDATE packet contains the IP address of the second multimedia gateway. Finally, the call is taken over without interruption.

請參閱圖6,其為本發明之多媒體閘道器管理方法的非次序性呼叫會談重建設置流程圖,其主要在復原重建會談封包訊息時,可不用按照原始封包的順序依序重組,除了可增加通話重建的效率,也可以減少網路傳輸的封包,其步驟如下。 Please refer to Figure 6, which is a flowchart of the non-sequential call conference reconstruction setting of the multimedia gateway management method of the present invention. It mainly does not need to reassemble in sequence according to the original packet sequence when restoring and reconstructing the conference packet message. In addition to increasing the efficiency of call reconstruction, it can also reduce the packets transmitted in the network. The steps are as follows.

在步驟610,高可用性分配模組270開始接收呼叫會談的封包訊務,一個完整可復原的呼叫會談主要有INVITE、200 OK、ACK等三個封包,100 Trying封包或者180 Ringing封包可以忽略,不用特別去處理,會談進度(183 Session Progress)封包攜帶有SDP資訊,則需保留其SDP內容。 In step 610, the high availability distribution module 270 starts to receive packet traffic of the call session. A complete and recoverable call session mainly includes three packets: INVITE, 200 OK, and ACK. The 100 Trying packet or 180 Ringing packet can be ignored and does not need to be processed specially. The session progress (183 Session Progress) packet carries SDP information, so its SDP content needs to be retained.

在步驟630,訊務分析處理模組280判斷是否收到告別(BYE)封包;若收到BYE封包,則進入步驟620,若沒收到BYE封包,則進入步驟640。 In step 630, the traffic analysis processing module 280 determines whether a farewell (BYE) packet is received; if a BYE packet is received, the process proceeds to step 620; if no BYE packet is received, the process proceeds to step 640.

在步驟620,訊務分析處理模組280根據呼叫會談的遠端標籤及本地標籤的資訊,刪除資料庫260中的該呼叫會談的相關資料以及成對關連資訊,完成後流程結束。 In step 620, the traffic analysis processing module 280 deletes the relevant data and paired related information of the call conversation in the database 260 according to the information of the remote tag and local tag of the call conversation, and the process ends after completion.

在步驟640,訊務重組模組250進行非次序性封包處理。由於進行復原重建會談時,是根據遠端標籤與本地標籤進行重建,但有可能最初建立會談是由用戶端發起INVITE封包,在重建時,可能由多媒體閘道器之媒體用戶代理端模擬發起INVITE封包,因此,由用戶端收到之INVITE封包,除了將該INVITE封包存成INVITE資訊外,也可以200 OK形式儲存;相對地,由多媒體 閘道器媒體之用戶代理端回應的200 OK封包,除了可存成200 OK的封包資訊外,亦可當成INVITE封包來儲存。 In step 640, the traffic reorganization module 250 performs non-sequential packet processing. When restoring and reestablishing the session, the session is reestablished based on the remote tag and the local tag. However, it is possible that the client initiated the INVITE packet to establish the session initially. During the reestablishment, the media user agent of the multimedia gateway may simulate the INVITE packet. Therefore, the INVITE packet received by the client can be stored as the INVITE information or in the form of 200 OK. Conversely, the 200 OK packet responded by the media user agent of the multimedia gateway can be stored as the 200 OK packet information or in the form of INVITE packet.

在步驟650,訊務重組模組250將每次呼叫的用於重建會談的本地標籤的INVITE封包、200 OK封包與遠端標籤的INVITE封包、200 OK封包存放在資料庫260。然後,完成非次序性封包復原設置。 In step 650, the traffic reorganization module 250 stores the INVITE packet, 200 OK packet of the local tag and the INVITE packet, 200 OK packet of the remote tag for each call used to reestablish the session in the database 260. Then, the non-sequential packet recovery setting is completed.

例如,進行呼叫會談重建時,若採用次序性重建,則需要從主叫端的入腳發起模擬INVITE封包給被叫端,才能正常重建。若要採用非次序性重建,從被叫端發起模擬INVITE封包,則會發現無法從被叫端的入腳開始發送模擬INVITE封包給主叫端,而僅能從被叫端的出腳開始發送模擬。對此,可採用步驟640的雙重形式封包儲存。依此儲存方式,主叫端的入腳與被叫端的出腳不僅包括INVITE封包與ACK封包,還包括根據INVITE封包轉變形式儲存的200 OK封包,且主叫端的出腳與被叫端的入腳不僅包括200 OK封包,還包括根據200 OK封包轉變形式儲存的INVITE封包與ACK封包。 For example, when reestablishing a call conference, if a sequential reconstruction is adopted, it is necessary to send an analog INVITE packet from the input of the calling end to the called end in order to reestablish normally. If a non-sequential reconstruction is adopted, and an analog INVITE packet is sent from the called end, it will be found that the analog INVITE packet cannot be sent from the input of the called end to the calling end, but can only be sent from the output of the called end. In this regard, the dual form packet storage of step 640 can be adopted. According to this storage method, the input of the calling end and the output of the called end include not only the INVITE packet and the ACK packet, but also the 200 OK packet stored according to the converted form of the INVITE packet, and the output of the calling end and the input of the called end include not only the 200 OK packet, but also the INVITE packet and ACK packet stored according to the converted form of the 200 OK packet.

藉此,除了依照原始封包順序從主叫端的入腳發起模擬INVITE封包給被叫端,以進行重建會談外,亦可從主叫端的出腳發起模擬,或從被叫端發起模擬INVITE封包,無論從被叫端的入腳或出腳發起模擬,皆可進行重建。 In this way, in addition to sending a simulated INVITE packet from the input pin of the calling end to the called end in accordance with the original packet sequence to reestablish the conversation, the simulation can also be initiated from the output pin of the calling end, or from the called end. Regardless of whether the simulation is initiated from the input pin or the output pin of the called end, the conversation can be reestablished.

又例如,若主叫端發起呼叫至被叫端,資料庫260中的封包記錄會從主叫端的入腳出腳一路記錄至被叫端的出腳入腳。若採用次序性還原,則需要從主叫端的入腳出腳按照記錄的順序還原到被叫端的出腳入腳。若採用非次序性還原,則不需依照該順序即可還原。 For another example, if the calling end initiates a call to the called end, the packet records in the database 260 will be recorded from the calling end's input and output to the called end's output and input. If sequential restoration is adopted, it is necessary to restore from the calling end's input and output to the called end's output and input in the order of the records. If non-sequential restoration is adopted, it is not necessary to restore in this order.

詳言之,有下列多種方式可重建主叫端與被叫端的會談腳(入腳/出腳):(1)依記錄順序重建主叫端的入腳,再重建其出腳,接著重建被叫端的出腳,再重建其入腳;(2)依記錄順序重建被叫端的出腳,再重建其入腳,接著重建主叫端的入腳,再重建其出腳(以上兩種方式等同,都是同方向);(3)非 順序性先重建主叫端的入腳,再重建其出腳,接著重建被叫端的入腳,再重建其出腳;(4)非順序性先重建被叫端的入腳,再重建其出腳,接著重建主叫端的入腳,再重建其出腳(以上兩種方式等同,都是同方向);(5)非順序性先重建主叫端的出腳,再重建其入腳,接著重建被叫端的出腳,再重建其入腳;(6)非順序性先重建被叫端的出腳,再重建其入腳,接著重建主叫端的出腳,再重建其入腳(以上兩種方式等同,都是同方向);(7)非順序性先重建主叫端的出腳,再重建其入腳,接著重建被叫端的入腳,再重建其出腳;(8)非順序性先重建被叫端的入腳,再重建其出腳,接著重建主叫端的出腳,再重建其入腳(以上兩種方式等同,都是同方向)。非次序性重建的優點是,不需要以整個呼叫會談的觀點依序重建,而是能以多媒體閘道器的角度個別重建主叫端或被叫端的呼叫會談,可以不按照原始封包的順序依序重組,藉此,除了可增加通話重建的效率,因為將所有複雜的封包都簡化成INVITE/SDP、200 OK/SDP及ACK三個封包,也可以減少網路傳輸的封包。 Specifically, there are several ways to reconstruct the caller and the called party's conversation steps (entry/exit): (1) Reconstruct the caller's entry in the order of recording, then reconstruct its exit, then reconstruct the called party's exit, and then reconstruct its entry; (2) Reconstruct the called party's exit in the order of recording, then reconstruct its entry, then reconstruct the caller's entry, and then reconstruct its exit (the above two methods are equivalent and are in the same direction); (3) Non-sequentially reconstruct the caller's entry first, then reconstruct its exit, then reconstruct the called party's entry, and then reconstruct its exit; (4) Non-sequentially reconstruct the called party's entry first, then reconstruct its exit, then reconstruct the caller's entry, and then reconstruct its exit. (The above two methods are equivalent and both are in the same direction); (5) Non-sequentially, the outgoing foot of the calling end is first rebuilt, and then its incoming foot is rebuilt, and then the outgoing foot of the called end is rebuilt, and then its incoming foot is rebuilt; (6) Non-sequentially, the outgoing foot of the called end is first rebuilt, and then its incoming foot is rebuilt, and then the outgoing foot of the calling end is rebuilt, and then its incoming foot is rebuilt (the above two methods are equivalent and both are in the same direction); (7) Non-sequentially, the outgoing foot of the calling end is first rebuilt, and then its incoming foot is rebuilt, and then the incoming foot of the called end is rebuilt, and then the outgoing foot is rebuilt; (8) Non-sequentially, the incoming foot of the called end is first rebuilt, and then its outgoing foot is rebuilt, and then the outgoing foot of the calling end is rebuilt, and then its incoming foot is rebuilt (the above two methods are equivalent and both are in the same direction). The advantage of non-sequential reconstruction is that it does not need to be reconstructed sequentially from the perspective of the entire call conversation, but can be used to reconstruct the call conversation of the calling end or the called end individually from the perspective of the multimedia gateway. It can be reconstructed sequentially without following the original packet sequence. In this way, in addition to increasing the efficiency of call reconstruction, because all complex packets are simplified into three packets of INVITE/SDP, 200 OK/SDP and ACK, it can also reduce the packets transmitted on the network.

請參閱圖7,其為本發明之多媒體閘道器管理方法的多媒體閘道器自動調適高可用度不斷話設置流程圖,其可根據現有的系統資源及訊務流量,主動新增或減少多媒體閘道器的系統資源,以達成系統資源最佳化,其步驟如下。 Please refer to Figure 7, which is a flowchart of the multimedia gateway automatic adjustment high availability continuous setting of the multimedia gateway management method of the present invention. It can actively add or reduce the system resources of the multimedia gateway according to the existing system resources and traffic flow to achieve system resource optimization. The steps are as follows.

在步驟710,管理監控模組240定期監測所有多媒體閘道器的資源使用情形。 In step 710, the management monitoring module 240 periodically monitors the resource usage of all multimedia gateways.

在步驟720,管理監控模組240偵測多媒體閘道器的活動是否有異常;若檢查多媒體閘道器為系統故障導致異常或系統資源使用狀態異常,則進入步驟740;若沒有異常,則進入步驟730。 In step 720, the management monitoring module 240 detects whether there is any abnormality in the activity of the multimedia gateway; if the multimedia gateway is found to be abnormal due to a system failure or the system resource usage status is abnormal, then the process proceeds to step 740; if there is no abnormality, then the process proceeds to step 730.

上述系統資源可包括多媒體閘道器的CPU運算時間、記憶體儲存空間、以及網路I/O資源(例如通訊埠)。管理監控模組240可監測轄下所有多 媒體閘道器的系統資源是否因為呼叫會談數量過多而不敷使用,並透過SIP查詢方式檢查所有多媒體閘道器是否正常回覆訊息。若有多媒體閘道器的資源不敷使用,或未回覆SIP查詢,則管理監控模組240判斷該多媒體閘道器的活動有異常。 The above-mentioned system resources may include the CPU computing time, memory storage space, and network I/O resources (such as communication ports) of the multimedia gateway. The management monitoring module 240 can monitor whether the system resources of all multimedia gateways under its jurisdiction are insufficient due to excessive number of call sessions, and check whether all multimedia gateways respond to messages normally through SIP queries. If the resources of the multimedia gateway are insufficient or the SIP query is not responded, the management monitoring module 240 determines that the activity of the multimedia gateway is abnormal.

在步驟740,管理監控模組240啟動新的多媒體閘道器,準備接管異常的多媒體閘道器的呼叫會談。 In step 740, the management monitoring module 240 activates the new multimedia gateway, ready to take over the call session of the abnormal multimedia gateway.

在步驟760,異常的多媒體閘道器或被管理監控模組240要求關閉的多媒體閘道器檢查該多媒體閘道器自身是否有正在進行的呼叫會談需要被新啟動的多媒體閘道器接管;若有需要接管之呼叫會談,則流程進入步驟770;若無,則流程進入步驟780。 In step 760, the abnormal multimedia gateway or the multimedia gateway that is requested to be shut down by the management monitoring module 240 checks whether the multimedia gateway itself has an ongoing call conversation that needs to be taken over by the newly activated multimedia gateway; if there is a call conversation that needs to be taken over, the process enters step 770; if not, the process enters step 780.

在步驟770,新啟動的多媒體閘道器的訊務復原處理器進行通話非次序性呼叫會談重建設置流程,且通知被接管的多媒體閘道器可以關機以減少資源浪費;完成後,進入步驟780。 In step 770, the service recovery processor of the newly activated multimedia gateway performs the call non-sequential call negotiation reconstruction setup process and notifies the taken-over multimedia gateway that it can be shut down to reduce resource waste; after completion, enter step 780.

在步驟730,管理監控模組240判斷是否需要減少系統資源。若多媒體閘道器均正常且正在進行的呼叫會談數量不多,則需減少系統資源,流程進入步驟750;否則,進入步驟780。 In step 730, the management monitoring module 240 determines whether it is necessary to reduce system resources. If the multimedia gateways are normal and the number of ongoing calls and conferences is small, it is necessary to reduce system resources and the process proceeds to step 750; otherwise, it proceeds to step 780.

在步驟750,管理監控模組240可關閉多餘的多媒體閘道器,例如,管理監控模組240可令呼叫會談數量最低的多媒體閘道器關機以釋放資源。然後,流程進入步驟760。 In step 750, the management and monitoring module 240 may shut down redundant multimedia gateways. For example, the management and monitoring module 240 may shut down the multimedia gateway with the lowest number of call sessions to release resources. Then, the process proceeds to step 760.

在步驟780,多媒體閘道器等待用戶主動結束通話,然後即可釋放呼叫會談資源,結束此流程。 In step 780, the multimedia gateway waits for the user to actively end the call, and then releases the call conference resources to end this process.

本發明另提供一種電腦可讀媒體,例如集中或分散之記憶體、軟碟、硬碟或光碟。該電腦可讀媒體應用於多媒體閘道器系統中,係儲存有指令,以執行上述之多媒體閘道器管理方法。 The present invention also provides a computer-readable medium, such as a centralized or distributed memory, floppy disk, hard disk or optical disk. The computer-readable medium is applied to a multimedia gateway system and stores instructions to execute the above-mentioned multimedia gateway management method.

本發明之技術方案與其他習用技術相互比較時,更具備下列優點: When compared with other commonly used technologies, the technical solution of this invention has the following advantages:

本發明具有自動調適資源的技術,不須佈建大量的多媒體閘道器,即能應付短時間的尖峰用量,以免在離峰用量時,造成機器資源的浪費,也可有效地降低後端維運的人力,以及減少機器設備的成本。 The present invention has the technology of automatically adjusting resources. It does not need to deploy a large number of multimedia gateways. It can cope with short-term peak usage, so as to avoid wasting machine resources during off-peak usage. It can also effectively reduce the manpower of back-end maintenance and reduce the cost of machine equipment.

本發明提供通話SIP封包分析技術,針對每次發起的同一SIP會談的封包進行整合並保存至資料庫,用以提供服務重啟或切換其他多媒體閘道器時的不斷話功能,可無縫接續通話,提升用戶體驗。 The present invention provides a call SIP packet analysis technology, which integrates and saves the packets of each initiated SIP conversation into a database, so as to provide an uninterrupted call function when restarting the service or switching to other multimedia gateways, and can seamlessly continue the call, thus improving the user experience.

本發明提供通話SIP封包非次序性復原重建分析技術,若用戶端有經過複雜的呼叫情境,比如三方通話,可以不用遵照主叫端、被叫端發起的順序,也可以直接模擬從被叫端發起INVITE封包以重建會談內容,且能更快速且更正確地重建會談,並以模擬封包的形式進行重建,不會影響現有用戶端的呼叫狀態。 The present invention provides a non-sequential recovery and reconstruction analysis technology for call SIP packets. If the client has gone through a complex call scenario, such as a three-party call, it is not necessary to follow the order of initiation by the calling and called ends. It can also directly simulate the INVITE packet initiated by the called end to reconstruct the conversation content. The conversation can be reconstructed more quickly and correctly, and the reconstruction is performed in the form of simulated packets without affecting the existing call status of the client.

本發明提供呼叫會談的接管技術,可同時在兩台多媒體閘道器都啟動的情況下,可用其中一台多媒體閘道器接管另一台多媒體閘道器的呼叫會談,達成呼叫會談不中斷的轉移功能。 The present invention provides a call conference takeover technology. When two multimedia gateways are activated at the same time, one of the multimedia gateways can take over the call conference of the other multimedia gateway, thereby achieving the call conference transfer function without interruption.

綜上所述,本發明不僅於技術思想上確屬創新,並具備習用之傳統方法所不及之上述多項功效,已充分符合新穎性與進步性之法定發明專利要件,爰依法提出申請,懇請 貴局核准本件發明專利申請案,以勵發明,至感德便。 In summary, this invention is not only innovative in terms of technical ideas, but also has the above-mentioned multiple functions that are not available in the traditional methods used. It has fully met the statutory invention patent requirements of novelty and progress. Therefore, I have filed an application in accordance with the law and sincerely request your approval of this invention patent application to encourage inventions. I am grateful for your kindness.

110:多媒體訊號產生系統 110: Multimedia signal generation system

120:SIP應用伺服器 120:SIP application server

200:高可用度多媒體閘道器系統 200: High availability multimedia gateway system

210~212:多媒體閘道器 210~212: Multimedia gateway

220~222:媒體用戶代理端 220~222: Media User Agent

230~232:訊務復原處理器 230~232: Service recovery processor

240:管理監控模組 240: Management monitoring module

250:訊務重組模組 250: Communication service reorganization module

260:資料庫 260: Database

270:高可用性分配模組 270: High availability distribution module

280:訊務分析處理模組 280: Information analysis and processing module

Claims (9)

一種高可用度多媒體閘道器系統,包括:複數多媒體閘道器,用於提供會談發起協議之呼叫會談功能;高可用性分配模組,用於在用戶端發起呼叫會談時,將該呼叫會談分配至該等多媒體閘道器中之第一多媒體閘道器;訊務分析處理模組,用於自該呼叫會談之訊務封包擷取該呼叫會談之建立資訊,以儲存該建立資訊;管理監控模組,用於在該呼叫會談期間,監測該第一多媒體閘道器之活動有無異常,以在該第一多媒體閘道器之活動有異常時,令該等多媒體閘道器中之第二多媒體閘道器接管該呼叫會談;以及訊務重組模組,用於根據該建立資訊,產生該呼叫會談之複數會談重建封包,其中,該第二多媒體閘道器在接管該呼叫會談時,係於內部模擬該等會談重建封包之發送與接收,而非真實地發送與接收該等會談重建封包,以重建該呼叫會談之狀態,且該第二多媒體閘道器係發送該會談發起協議之再邀請封包或更新封包以告知該用戶端將該呼叫會談之多媒體串流切換至該第二多媒體閘道器,俾於維持該呼叫會談不中斷下接管該呼叫會談。 A high-availability multimedia gateway system includes: a plurality of multimedia gateways for providing a call conference function of a conference initiation protocol; a high-availability allocation module for allocating the call conference to a first multimedia gateway among the multimedia gateways when a user initiates a call conference; a traffic analysis and processing module for extracting establishment information of the call conference from a traffic packet of the call conference to store the establishment information; a management and monitoring module for monitoring whether the activity of the first multimedia gateway is abnormal during the call conference, so as to cause the first multimedia gateway among the multimedia gateways to be disconnected when the activity of the first multimedia gateway is abnormal. The second multimedia gateway takes over the call conversation; and a traffic reorganization module is used to generate a plurality of session reestablishment packets of the call conversation according to the establishment information, wherein the second multimedia gateway internally simulates the sending and receiving of the session reestablishment packets when taking over the call conversation, rather than actually sending and receiving the session reestablishment packets, so as to reestablish the state of the call conversation, and the second multimedia gateway sends a re-invitation packet or an update packet of the session initiation protocol to inform the client to switch the multimedia stream of the call conversation to the second multimedia gateway, so as to take over the call conversation while maintaining the call conversation uninterrupted. 如請求項1所述之高可用度多媒體閘道器系統,其中,該高可用性分配模組係根據該資源使用情況將該呼叫會談分配至該第一多媒體閘道器。 A high-availability multimedia gateway system as described in claim 1, wherein the high-availability allocation module allocates the call conference to the first multimedia gateway based on the resource usage. 如請求項1所述之高可用度多媒體閘道器系統,其中,若該第一多媒體閘道器之資源已不足以處理該呼叫會談,或該第一多媒體閘道器發生故障,則由該管理監控模組判斷該第一多媒體閘道器之活動為異常。 A high-availability multimedia gateway system as described in claim 1, wherein if the resources of the first multimedia gateway are insufficient to handle the call session, or the first multimedia gateway fails, the management monitoring module determines that the activity of the first multimedia gateway is abnormal. 如請求項1所述之高可用度多媒體閘道器系統,其中,該呼叫會談之該建立資訊包括該呼叫會談之主叫端與被叫端的入腳與出腳之會談發起協議邀請封包、會談發起協議接受封包與會談發起協議確認封包的會談發起協議欄位與會談描述協議欄位,以及該主叫端與該被叫端之該入腳與該出腳之間的成對關係。 A high availability multimedia gateway system as described in claim 1, wherein the establishment information of the call conference includes the conference initiation protocol invitation packet of the caller end and the called end of the call conference, the conference initiation protocol field and the conference description protocol field of the conference initiation protocol acceptance packet and the conference initiation protocol confirmation packet, and the paired relationship between the caller end and the called end. 如請求項4所述之高可用度多媒體閘道器系統,其中,該呼叫會談之該建立資訊復包括該會談發起協議邀請封包與該會談發起協議接受封包之間互相轉變形式儲存之封包,以根據該等互相轉變形式儲存之封包,在該第二多媒體閘道器重建該呼叫會談之該狀態時,不需依照該呼叫會談之原始封包順序。 A high-availability multimedia gateway system as described in claim 4, wherein the establishment information of the call session includes packets stored in mutually converted forms between the session initiation protocol invitation packet and the session initiation protocol acceptance packet, so that when the second multimedia gateway reestablishes the state of the call session based on the packets stored in mutually converted forms, it is not necessary to follow the original packet sequence of the call session. 如請求項1所述之高可用度多媒體閘道器系統,其中,該管理監控模組復用於監測並提供該等多媒體閘道器之資源使用情況,且根據該資源使用情況,啟動或關閉該等多媒體閘道器中之至少一者,以調節該等多媒體閘道器之資源量。 A high-availability multimedia gateway system as described in claim 1, wherein the management monitoring module is reused to monitor and provide resource usage of the multimedia gateways, and based on the resource usage, activate or deactivate at least one of the multimedia gateways to adjust the resource amount of the multimedia gateways. 如請求項1所述之高可用度多媒體閘道器系統,其中,該訊務重組模組復用於在該第二多媒體閘道器接管該呼叫會談時,檢查該第一多媒體閘道器分配給該呼叫會談之通訊埠是否已被該第二多媒體閘道器佔用,其中,若該通訊埠已被該第二多媒體閘道器佔用,則該訊務重組模組分配未被該第二多媒體閘道器佔用之新通訊埠給被接管後之該呼叫會談。 A high-availability multimedia gateway system as described in claim 1, wherein the traffic reorganization module is reused to check whether the communication port allocated by the first multimedia gateway to the call conference has been occupied by the second multimedia gateway when the second multimedia gateway takes over the call conference, wherein if the communication port has been occupied by the second multimedia gateway, the traffic reorganization module allocates a new communication port not occupied by the second multimedia gateway to the call conference after being taken over. 一種多媒體閘道器管理方法,包括:在用戶端發起會談發起協議之呼叫會談時,將該呼叫會談分配至複數多媒體閘道器中之第一多媒體閘道器; 自該呼叫會談之訊務封包擷取該呼叫會談之建立資訊,以儲存該建立資訊;在該呼叫會談之期間,監測該第一多媒體閘道器之活動有無異常,其中,在該第一多媒體閘道器之活動有異常時,令該等多媒體閘道器中之第二多媒體閘道器接管該呼叫會談;以及根據該建立資訊,產生該呼叫會談之複數會談重建封包,其中,該第二多媒體閘道器在接管該呼叫會談時,係於內部模擬該等會談重建封包之發送與接收,而非真實地發送與接收該等會談重建封包,以重建該呼叫會談之狀態,且該第二多媒體閘道器係發送該會談發起協議之再邀請封包或更新封包以告知該用戶端將該呼叫會談之多媒體串流切換至該第二多媒體閘道器,俾於維持該呼叫會談不中斷下接管該呼叫會談。 A multimedia gateway management method includes: when a user terminal initiates a call session of a conference initiation protocol, the call session is assigned to a first multimedia gateway among a plurality of multimedia gateways; The establishment information of the call session is captured from the traffic packet of the call session to store the establishment information; during the call session, the activity of the first multimedia gateway is monitored for abnormalities, wherein when the activity of the first multimedia gateway is abnormal, the second multimedia gateway among the multimedia gateways is allowed to take over the call session; and according to the Establish information to generate multiple session reestablishment packets of the call session, wherein the second multimedia gateway internally simulates the sending and receiving of the session reestablishment packets when taking over the call session, rather than actually sending and receiving the session reestablishment packets, to reestablish the state of the call session, and the second multimedia gateway sends a re-invite packet or an update packet of the session initiation protocol to inform the client to switch the multimedia stream of the call session to the second multimedia gateway, so as to take over the call session without interrupting the call session. 一種電腦可讀媒體,應用於多媒體閘道器系統中,係儲存有指令,以執行如請求項8所述之多媒體閘道器管理方法。 A computer-readable medium, used in a multimedia gateway system, stores instructions for executing the multimedia gateway management method as described in claim 8.
TW111131503A 2022-08-22 High-availability multimedia gateway system, multimedia gateway management method and computer-readable medium TWI876197B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW111131503A TWI876197B (en) 2022-08-22 High-availability multimedia gateway system, multimedia gateway management method and computer-readable medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW111131503A TWI876197B (en) 2022-08-22 High-availability multimedia gateway system, multimedia gateway management method and computer-readable medium

Publications (2)

Publication Number Publication Date
TW202410678A TW202410678A (en) 2024-03-01
TWI876197B true TWI876197B (en) 2025-03-11

Family

ID=

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150097921A1 (en) 2013-10-07 2015-04-09 Futurewei Technologies, Inc. Distributed Media Gateways

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150097921A1 (en) 2013-10-07 2015-04-09 Futurewei Technologies, Inc. Distributed Media Gateways

Similar Documents

Publication Publication Date Title
US10021347B2 (en) Architecture for high availability conferencing
CN111479121B (en) Live broadcasting method and system based on streaming media server
ES2719529T3 (en) Processing procedure and control device, automatic call distribution device and agent terminal
US8941712B2 (en) Call movement in a conferencing system
US20080086567A1 (en) SIP server architecture for improving latency in message processing
US10097693B2 (en) Managing data streams for a communication network
US20130091291A1 (en) Method and apparatus for improving voice or video transmission quality in cloud computing mode
JP2009246994A (en) Method for providing early-media service based on session initiation protocol, and application server for providing early-media service based on session initiation protocol
EP2910007A2 (en) Reduction of chaining in conference sessions
CN111901841B (en) Method, server and storage medium for fusing and connecting CS domain and PS domain
US20110286365A1 (en) Method for Connection Preservation
TWI876197B (en) High-availability multimedia gateway system, multimedia gateway management method and computer-readable medium
US12225064B2 (en) Conference system
US20120014375A1 (en) Method for Telephone Connection Preservation
TW202410678A (en) High-availability multimedia gateway system, multimedia gateway management method and computer-readable medium
WO2012048614A1 (en) Method and system for automatic recall terminal online in video conference
EP4373075A1 (en) Method and apparatus for switching conference mode, and medium
CN101938521B (en) Method for transmitting signaling in VoIP system
CN105991239A (en) Signal processing method and device in IMS system and related equipment
US20130266131A1 (en) Voice conference redundancy
CN102497357B (en) Implementation method for multi-party dynamic address book
CN115118825B (en) Session boundary controller system
JP2010171663A (en) Communication method, communication system, communication device, and computer program
Qian et al. Analysis and Research on Abnormal of Shore-Ship VoIP Call Forwarding
CN103905398B (en) Distributed monitor method, act on behalf of monitoring device, interception control device and system