TWI273490B - Communication program module structure for network telephone system - Google Patents

Communication program module structure for network telephone system Download PDF

Info

Publication number
TWI273490B
TWI273490B TW094142499A TW94142499A TWI273490B TW I273490 B TWI273490 B TW I273490B TW 094142499 A TW094142499 A TW 094142499A TW 94142499 A TW94142499 A TW 94142499A TW I273490 B TWI273490 B TW I273490B
Authority
TW
Taiwan
Prior art keywords
module
communication
communication protocol
message
operation interface
Prior art date
Application number
TW094142499A
Other languages
Chinese (zh)
Other versions
TW200723097A (en
Inventor
Po-Chen Shen
Horng-Ru Lin
Original Assignee
Shinewave Int Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shinewave Int Inc filed Critical Shinewave Int Inc
Priority to TW094142499A priority Critical patent/TWI273490B/en
Application granted granted Critical
Publication of TWI273490B publication Critical patent/TWI273490B/en
Publication of TW200723097A publication Critical patent/TW200723097A/en

Links

Landscapes

  • Communication Control (AREA)

Abstract

A communication program module structure in a network telephone system is disclosed. It includes at least one communication protocol module and an operating interface module. Each communication protocol module respectively corresponds to different communication protocols. The operating interface module is used as a man-machine interface to operate interactively with the communication protocol modules. The present invention has the following characteristics: (1) the communication protocol module has a first state machine, and the communication protocol module operates in accordance with the first state machine. (2) The operating interface module has a second state module and the operating interface module operates according to the second state machine. (3) The communication protocol module communicates with the operating interface module via an inter-process communication mechanism.

Description

1273490 案號 94142499_年年月月函修頁_ -五、發明說明(ΰ 發明所屬之技術領域 ' 本發明係關於一種通信程式模組的架構,其特別係關 . 於一種用於網路電話系統的通信程式模組架構,且利用狀 態機器的技術,來施作彼此互為獨立運作的操作介面模組 , 與各個通訊協定模組。 先前技術 第一圖顯示用於網路電話系統的習知通信程式模組架 構的架構圖。習知網路電話系統的通信程式1 0運作架構, 大致可分為兩大部分:第一部分乃是通訊協定模組101, 用來處理底層訊號以及作為上層的呼叫(C a 1 1 s )使用; 第二部分乃是操作介面模組1 0 3,其用來處理與使用者的 互動以及對下層進行呼叫。上述習知網路電話系統的通信 程式1 0,其作法係採用將這兩部分的模組1 0 1、1 0 3,都寫 (Coding)在同一個程式中。在這種運作架構底下,網路電 話系統的開發方式,都是將通訊協定模組與操作介面模組 寫在同一個程式中。此種習知作法往往會帶來至少兩項缺 失,分述如下··第一項缺失:此種習知撰寫程式的開發方 式,會造成未來要更換或修改其中一個模組時,整個網路 電話系統幾乎需要重新開發;第二項缺失:一套操作介面 模組只能搭配一種的通訊協定模組,若要與不同通訊協定 的網路電話溝通時,將會造成互通上的困難。 本發明發明人有鑑於用於網路電話系統的習知通信程 式模組架構的缺失,乃亟思發明而改良出一種用於網路電 話系統的通信程式模組架構,將用於網路電話系統的通信1273490 Case No. 94142499_Year of the Year _ -5, invention description (ΰTechnical field of invention) The present invention relates to the architecture of a communication program module, which is particularly related to a network telephone The communication program module architecture of the system, and the state machine technology is used to implement the operation interface modules that operate independently of each other, and the respective communication protocol modules. The first figure of the prior art shows the habits for the network telephone system. The architecture diagram of the communication program module architecture. The communication architecture of the conventional network telephone system 10 can be roughly divided into two parts: the first part is the communication protocol module 101, which is used to process the underlying signal and as the upper layer. The call (C a 1 1 s ) is used; the second part is the operation interface module 1 0 3, which is used for handling interaction with the user and calling the lower layer. The communication program of the above-mentioned conventional network telephone system 1 0, the method is to use the two parts of the modules 1 0 1 and 1 0 3, all in the same program. Under this operating framework, the development of the network telephone system, Write the protocol module and the operation interface module in the same program. This kind of conventional practice often brings at least two missing items, which are described as follows: · The first missing: the development method of this kind of writing program The entire network telephone system needs to be redeveloped in the future when it is necessary to replace or modify one of the modules. The second one is missing: a set of operation interface modules can only be combined with one type of communication protocol module, if different communication is required. The communication of the agreed network telephone will cause difficulties in intercommunication. The inventor of the present invention has improved the use of the conventional communication program module architecture for the network telephone system. The communication program module architecture of the road telephone system, which will be used for communication in the VoIP system

第5頁 1273490Page 5 1273490

五、發明說明(2) __ 程^作介面模組以及各個通訊協定模組, 立的程序(process),並 白田作為獨 魟f冋日守,對於通信程式開發者而言,操作 rp為 及各個通訊協定模組皆可各自開發。 权、、且以 _莫 發 發明内容 本發明 程式模組架 本發明 程式模組架 ,皆當 本發明 程式模組架 為達成 話系統的通 通訊協定模 信協定;以 用於與該些 協定模組, 依據該第一 二狀態機器 作;以及該 内部通訊機 Mechanism) 種用於網路電話系統的通信 通信程式的負擔。 種用於網路電話系統的通信 介面模組以及各個通訊協定 rocess ),並且皆可各自開 第一目的係提供一 構,能夠減少開發 第二目的係提供一 構,能夠提供操作 作為獨立的程序(p 第三目的係提供一 構,能夠利用狀態 本發明上述目的, 信程式模組架構, 組,且每個通訊協 及一操作介面模組 通訊協定模組進行 係包含一第一狀態 狀態機器運作;該 ’且該彳呆作介面模 通訊協定模組與該 制(Inter-Process 來進行溝通。 種用於網路電話系 機器的技術來施作 本發明提供一種用 乃包括· 一至少^一 定模組係分別對應 ,係作為人機界面 互動;其特徵在於 機器,且該通訊協 操作介面模組,係 組係依據該第二狀 操作介面模組係經V. Description of the invention (2) __ The interface module and the various communication protocol modules, the process, and the white field as a stand-alone, for the communication program developers, the operation rp is Each communication protocol module can be developed separately. The program module rack of the present invention is the program module rack of the present invention, and the program module rack of the present invention is a communication protocol agreement for the call system; The module, according to the first two-state machine; and the internal communication mechanism, a burden of a communication communication program for the network telephone system. A communication interface module for a network telephone system and a communication protocol (Rocess), and each of which can provide a first purpose system, can reduce the development of the second purpose, provide a structure, and can provide operations as an independent program. (p. The third object is to provide a structure that can utilize the state of the present invention, the program module architecture, the group, and each communication protocol and an operation interface module communication protocol module to include a first state machine Operation; and the 彳 作 面 interface communication protocol module and the system (Inter-Process to communicate. The technology used in the VoIP system to provide the invention provides a use but includes · at least ^ The certain modules correspond to each other and interact as a human-machine interface; the feature is the machine, and the communication cooperative operation interface module is based on the second-shaped operation interface module.

Communication 統的通信 〇 於網路電 個以上的 不同的通 ,以及係 :該通訊 定模組係 包含一第 態機器運 由一程序Communication system communication 〇 网路 网路 网路 网路 网路 网路 网路 网路 网路 网路 网路 网路 网路 网路 网路 网路 网路 网路 网路 网路 网路 网路 网路 网路 网路 网路 网路 网路 网路 网路 网路 网路 网路 网路

1273490 3£让_ / ] Γ^----案號 941_4j499__年 月 f Η :雙Μ 五、發明說明(3) * 為使熟悉該項技藝人士暸解本發明之目的、特徵及功 效’ ▲藉由下述具體實施例,並配合所附之圖式,對本發 明詳加說明,說明如後: 實施方式 加 第二圖顯示本發明用於網路電話系統的通信程式模組 术構的架構圖。本發明通信程式模組2 〇主要包括各自獨立 運=的操作介面模組2 0 1以及該些通信協定模組2 〇 3。每個 $信協定模組2 03係對應到不同的通信協定,例如Η3 2 3通 2協定、S I Ρ通信協定或其它通信協定等等,而通信程式 巧可以端視需要,來將新增的通信協定所對應的通信 ,^核組2 0 3予以納入。對於電腦系統而言,操作介面模 = 201以及每個通訊協定模組2〇3,皆當作為獨立的程序 π 來看。另一方面,對於通信程式開發者而言, =作;丨面模組201以及每個通訊協定模組2〇3皆可各自開 掄闰弟^ ^顯示本發明操作介面模組的狀態機器的狀態轉 卢二。J分別說明第三圖的各個狀態,請參見第三圖。 =二二d(/le)狀態時,此時若發生其它電話打進來時, mr^ . A^L-STATUS-R 1 NG訊息,並進入到處理電話鈐 i 狀ΐ。再者,處於閒置(Idle)狀態時,若要打電1273490 3£让_ / ] Γ^----Case No. 941_4j499__年月f Η :双Μ五、发明说明(3) * To familiarize the person skilled in the art with the purpose, features and effects of the invention ▲ The present invention will be described in detail by the following specific embodiments, with reference to the accompanying drawings, which are illustrated as follows: The embodiment and the second figure show the architecture of the communication program module structure of the present invention for the network telephone system. Figure. The communication program module 2 of the present invention mainly includes an operation interface module 200 that is independently operated and a communication protocol module 2 〇 3. Each $trust agreement module 2 03 corresponds to a different communication protocol, such as Η 3 2 3 pass 2 agreement, SI Ρ communication protocol or other communication agreement, etc., and the communication program can be added as needed to add new The communication corresponding to the communication protocol is included in the core group 2 0 3 . For computer systems, the operating interface modulo = 201 and each communication protocol module 2 〇 3 are viewed as separate programs π. On the other hand, for the communication program developer, the face module 201 and each of the communication protocol modules 2〇3 can be opened separately. ^^ The state machine of the operation interface module of the present invention is displayed. The state turns to Lu. J respectively explains the various states of the third figure, please refer to the third figure. = 22nd (/le) state, at this time, if another call comes in, mr^. A^L-STATUS-R 1 NG message, and enters the processing phone 钤 i state. In addition, if you are in the idle state, you need to power

二二,、、人時/則會先送出CMD —D IAL訊息給通訊協定模 "、,亚且,待收到回覆訊息CALL —STATUS — RINGBACK ‘壯Ϊ ί ? f待對方接聽(ring back)狀態。第三圖的閒 置狀恶亦疋操作介面模組2〇1的初始狀態。22,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, )status. The idle state of the third figure also occupies the initial state of the interface module 2〇1.

第7頁 1273490 案號 94142499 .昏. 接正 五、發明說明(4) 處於第三圖的處理電話鈐響(Ring)狀態時,當網路電 話系統自動接聽之後,或是由使用者手動接聽之後,此時 則送出DISP — ACCEPT訊息給通訊協定模組2 0 3,並且於^ 待收到CALL-STATUS —ANSWERED訊息後進人到嘗試建立連 線(Connecting)狀態。再者,處於第三圖的處理電話鈴響 (R i n g )狀態時,當網路電話系統系統自動拒絕來電或是鈴 響逾時(timeout)之後,此時則送出DISP一REJECT 訊息 給通訊協定模組2 03,並且於等待收到CALL_STATUS_IDEL 訊息後進入到閒置(I d 1 e )狀態。再者,處於第三圖的處 理電話鈴響(R i n g )狀態時,由於使用者拒絕接聽,此時則 •送出DISP_TERMINATE 訊息給通訊協定模組2〇3,並且於等 待收到C A L L _ S T A T U S 一 I D L E訊息之後進入到閒置(I d 1 e )狀 處於第三圖的等候對方接聽(R i n g b a c k )狀態時,當 收到CALL 一 STATUS_CONNECTED 訊息之後,則送出 DISP_OPEN_CHANNEL 訊息給通訊協定模組203,並且於等 待收到CALL_STATUS_CHANNEL—OPENED 訊息之後進入至通 話中(Communication)狀態。再者,處於第三圖的等候對 方接聽(R i n g b a c k)狀態時,當發生連線失敗時,則在收 到CALL— STATUS—I DEL 訊息之後,則回到閒置(idle)狀 態。再者,處於第三圖的等候對方接聽(Ring back)狀態 時,當發生鈴響逾時(t i m e 〇 u t ),則送出 DISP —TERMINATE訊息,並且於等待收到 CALL__STATUS_IDLE訊息後,則進入到閒置(idle)狀態。 處於第三圖的嘗試建立連線(Connect ing)狀態時,當連線Page 7 1273490 Case No. 94142499. Faint. Continuation V. Invention Description (4) When the VoIP phone system automatically answers the call in the third picture, or is manually answered by the user. Then, at this time, the DISP_ACCEPT message is sent to the protocol module 2 0 3, and after the CALL-STATUS_ANSWERED message is received, the user enters an attempt to establish a connected state. Furthermore, in the processing of the telephone ringing (R ing ) state in the third figure, when the VoIP system automatically rejects the incoming call or the ring timeout, then a DISP-REJECT message is sent to the communication protocol. Module 2 03, and enters the idle (I d 1 e ) state after waiting to receive the CALL_STATUS_IDEL message. Furthermore, in the processing of the telephone ringing (Ring) state in the third figure, since the user refuses to answer, at this time, the DISP_TERMINATE message is sent to the protocol module 2〇3, and the CALL_STATUS is waited for. After the IDLE message enters the idle (I d 1 e ) state in the waiting state of the third picture, when the CALL_STATUS_CONNECTED message is received, the DISP_OPEN_CHANNEL message is sent to the protocol module 203, and Waiting for the CALL_STATUS_CHANNEL_OPENED message to enter the communication state. Furthermore, when the connection is in the R i n g b a c k state in the third figure, when the connection failure occurs, after the CALL_STATUS_I DEL message is received, the idle state is returned. Furthermore, in the ringing state of the waiting picture (Ring back) in the third figure, when the ringing timeout (time 〇ut) occurs, the DISP_TERMINATE message is sent, and after waiting for the CALL__STATUS_IDLE message to be received, it enters the idle state. (idle) status. When you try to establish a connected state in the third diagram, when connecting

第8頁 1273490 案號941424卯 8日修(4正替換 月 日j 修正 貝 五、發明說明(5) 成功後,則會收到CALL —STATUS_CONNECTED 訊息,便得 知連線已經建立,然後送出DI SP_OPEN_CHANNEL訊息告 知通訊協定模組2 〇 3,請通訊協定模組2 0準備開啟必要連 線資源’當等待收到CALL_STATUS—CHANNEL-OPENED訊息 之後’則進入到通話中(C 〇 m m u n i c a t i ο η )狀態。再者,處 於苐二圖的嘗試建立連線(Connecting)狀態時,當發生連 線失敗後,則在收到CALL —STATUS一IDLE訊息後,則回到 閒置(I d 1 e )狀態。 處於第三圖的通話中(Communication)狀態時,若發 生使用者斷線的情況,則送出DISP-TERMINATE訊息給通 •訊協定模組2 0 3,並且在等待收到CALL —STATUS_IDLE訊 息後’則回到閒置(I d 1 e )狀態。再者,處於第三圖的通話 中(Communication)狀態時,若發生對方斷線的情況,則 在收到CALL —STATUS—IDLE之後,回到閒置(idle)狀態。 第四圖顯示本發明通信協定模組的狀態機器的狀態轉 換圖。現在分別說明第四圖的各個狀態,請參見第四圖。 處於閒置(I d 1 e )狀態時,當發生收到其他電話的連線請求 的情況,則送出CALL_STATU一R ING給操作介面模組2〇1, 並且進入到等候操作介面模組回應訊息(ψa丨t丨ng GU I MSG)狀態。再者,處於第四圖的間置(uie)狀態時,當發 生連線到其它電話的情況,則在收到操作介面模組2 〇 1的 CMD_DIAL 息之後’嘗试與其他電話建立連線,並送出 C A L L — S T A T U S — R I N G B A C K訊息給操作介面模組2 〇 1,則進入 §试建立連線(Connecting)狀態。第四圖的閒置狀態亦是 通信協定模組2 0 3的初始狀態。 uPage 8 1273490 Case No. 941424卯8 Repair (4 positive replacement month j correction Bay 5, invention description (5) After successful, you will receive the CALL_STATUS_CONNECTED message, you will know that the connection has been established, and then send DI The SP_OPEN_CHANNEL message informs the communication protocol module 2 〇3, and asks the communication protocol module 20 to prepare to open the necessary connection resource 'When waiting for the CALL_STATUS-CHANNEL-OPENED message to be received', then enters the call (C 〇mmunicati ο η) state. Furthermore, when attempting to establish a connection state in the second diagram, when a connection failure occurs, after receiving the CALL_STATUS_IDLE message, it returns to the idle (I d 1 e ) state. In the communication state of the third figure, if a user disconnection occurs, a DISP-TERMINATE message is sent to the communication protocol module 2 0 3, and after waiting for the CALL_STATUS_IDLE message to be received' Then return to the idle (I d 1 e ) state. In addition, in the communication state of the third figure, if the disconnection of the other party occurs, the CALL_STATUS_IDLE is received. Return to the idle state. The fourth figure shows the state transition diagram of the state machine of the communication protocol module of the present invention. Now, the states of the fourth figure are respectively explained, see the fourth figure. Idle idle (I d 1 e In the state, when a connection request from another telephone occurs, CALL_STATU-R ING is sent to the operation interface module 2〇1, and the response message to the waiting interface module is entered (ψa丨t丨ng GU I MSG) state. Furthermore, in the interim (uie) state of the fourth figure, when a connection to another phone occurs, after receiving the CMD_DIAL information of the operation interface module 2 〇 1, try and other The phone establishes a connection and sends a CALL_STATUS_RINGBACK message to the operation interface module 2 〇1, then enters the § test to establish the connection state. The idle state of the fourth picture is also the communication protocol module 2 0 3 Initial state. u

X': 1273490 __案號 94142499 •五、發明說明(6)X': 1273490 __ case number 94142499 • V. Description of invention (6)

年年月I修(❿正替換I 正 處於第四圖的等候操作介面模組回應訊息(W a i t i n g GU I MSG )狀態時,當發生接受連線請求的情況,則會收到 - 操作介面模組201的DISP_ACCEPT 訊息,接著,準備建立 連線,並且於送出CALL_STATUS_ANSWERED 訊息之後,則 進入到嘗試建立連線(Connecting)狀態。再者,處於第四 圖的等候操作介面模組回應訊息(Waiting GUI MSG)狀態 時,當發生拒絕連線請求的情況,則會收到操作介面模組 201 的 DISP_REJECT 或 DISP_TERMINATE 訊息之後,接 著,進行關閉連線的動作,動作完成之後,則送出 CALL_STATUS_IDLE 訊息,並回到閒置(Idle)狀態。 處於第四圖的嘗試建立連線(Connecting)狀態時,當 發生連線成功的情況,則送出CALL_STATUS_CONNECTED 訊息,並且於收到DISP_0PEN 一 CAHNNEL 回應訊息之後, 開啟必要的連線資源,接著,在完成送出 CALL—STATUS—CHANNEL一OPENED 訊息後,則進入到資料傳 輸中(Data Transmission)狀態。再者,處於第四圖的嘗 試建立連線(C ο η n e c t i n g)狀態時,當發生連線失敗的情 況,若是因為使用者中斷的緣故,則在收到 DISP_TERMINATE 訊息,則進行連線關閉動作,動作完成 之後,再送出CALL_STATUS_IDLE 訊息,並回到閒置 (I d 1 e )狀態。再者,處於第四圖的嘗試建立連線 ·_( C ο η n e c t i n g )狀態時,當發生連線失敗的情況,若是因為 對方中斷的緣故,則送出CALL一STATUS_IDEL,並且回到 閒置(I d 1 e )狀態。 處於第四圖的資料傳輸中(Data transmission)狀態When the replacement I is in the Waiting GU I MSG state in the fourth diagram, when the connection request is received, it will be received - the operation interface module The DISP_ACCEPT message of group 201 is then ready to establish a connection, and after sending a CALL_STATUS_ANSWERED message, it proceeds to an attempt to establish a connection state. Furthermore, the wait operation interface module response message in the fourth picture (Waiting GUI) In the MSG) state, when the connection rejection request occurs, the DISP_REJECT or DISP_TERMINATE message of the operation interface module 201 is received, and then the connection is closed. After the operation is completed, the CALL_STATUS_IDLE message is sent, and the message is returned. To the idle state (Idle). When attempting to establish the connection state in the fourth diagram, when the connection is successful, the CALL_STATUS_CONNECTED message is sent, and after receiving the DISP_0PEN-CAHNNEL response message, the necessary connection is opened. Line resource, then, after sending out the CALL_STATUS_CHANNEL-OPENED message , then enters the state of Data Transmission. In addition, when the attempt to establish a connection (C ο η necting) state in the fourth diagram, when the connection fails, if the user is interrupted, Then, after receiving the DISP_TERMINATE message, the connection is closed. After the action is completed, the CALL_STATUS_IDLE message is sent back to the idle (I d 1 e ) state. Furthermore, the attempt to establish the connection in the fourth diagram is _ ( In the case of C ο η necting ), when a connection failure occurs, if the other party is interrupted, CALL_STATUS_IDEL is sent, and the idle (I d 1 e ) state is returned. In the data transmission of the fourth figure ( Data transmission status

第10頁 1273490 一 ♦ _ _案號94142499 年 月 Vg …倐正 '•五、發明說明(7) 時,當發生使用者斷線的情況,則在收到 DISP_TERMINATE訊息後,進行關閉連線動作,動作完成 •之後’再送出CALL_STATUS—IDLE,並回到閒置(idie)狀 態。再者,處於第四圖的資料傳輸中(Data • transmission)狀態時,當發生對方斷線的情況,則會送 出〇八1^一8丁八丁1^一101^’並回到閒置(1(11〇狀態。曰 第五圖顯示本發明通信程式模組架構的狀態機哭的運 作範例圖。在第五圖中’採以H3 2 3通訊協定作為^信協 定模組2 0 3的施作(Implement)的實施例來說明,同時,採 用訊息貯列(Message Queue)來作為操作介面模組(GUI) 馨0 1與通信協定模組2 0 3之間的程序内部通訊機制2 〇 5 (IPC-Inter-Process Communication Mechanism)的實施 手4又。訊息財列2 0 5的主要功能乃是用來儲存分別來自於 操作介面模組(GU I) 2 0與通信協定模組2 〇 3的訊息,同時, 訊息貯列2 0 5亦能夠分別被操作介面模組(G u丨)2 〇丨與通信 協定模組203所存取(Access)。第五圖中的網路電話通信 情况乃是’發生由其它電話打進來的情況,受話端是設定 為手動接聽,然後,雙方進行通話,最後由使用者(受話 端)斷線。 第五圖代表使用本發明的一種實際案例,圖中的方框 .瞻乃代表某一個時間點使用者、操作介面模組2 〇 i或通訊協 ’定模組2 0 3所發生的事件或處理的動作。 ^上述1PC 205是用來作為操作介面模組201與通訊協定 模組2 03的溝通介面,上述兩個狀態機器要進行溝通的時 候’均會把訊息送給I PC 2 0 5。至於丨Pc 2 0 5如何將訊Page 10 1273490 a ♦ _ _ case number 94142499 year Vg ... 倐 ' '• 5, invention description (7), when the user disconnected, after receiving the DISP_TERMINATE message, close the connection , the action is completed • After 're-deliver CALL_STATUS-IDLE, and return to the idle (idie) state. In addition, in the data transmission state (Data • transmission) state in the fourth figure, when the other party disconnects, it will send out 18 1^一8丁八丁1^一101^' and return to idle (1) (11〇 state. 曰The fifth figure shows an example of the operation of the state machine crying of the communication program module architecture of the present invention. In the fifth figure, the H3 2 3 communication protocol is adopted as the application protocol module 2 0 3 The embodiment of the implementation is described. At the same time, the message Queue is used as the internal communication mechanism between the operation interface module (GUI) and the communication protocol module 2 0 3 2 〇 5 (IPC-Inter-Process Communication Mechanism) implementation 4 4. The main function of the message column is to store the interface from the operation interface module (GU I) 20 and the communication protocol module 2 〇 3 The message, at the same time, the message store 2 0 5 can also be accessed by the operation interface module (G u丨) 2 〇丨 and the communication protocol module 203. The network phone communication situation in the fifth figure It is the case that the call was made by another phone, and the receiver is set to manual. Listen, then, the two parties make a call, and finally the user (receiver) is disconnected. The fifth figure represents a practical case using the present invention, the box in the figure represents the user at a certain point in time, the operation interface mode The event or processing action of the group 2 〇i or the communication protocol module 0. The above 1PC 205 is used as the communication interface between the operation interface module 201 and the communication protocol module 203, the above two When the state machine wants to communicate, it will send the message to I PC 2 0 5. As for 丨Pc 2 0 5

第11頁 案號94U24叩 1273490 五、發明說明(8) 息送給不同的模組201、2 0 3,此是屬於實作(Implement) 面的問題,例如,採用訊息貯列(m e s s a g e q u e u e )、管道 (p i pe )等,本發明不去特別強調i pc 2 0 5的作法。當模組 201、205將訊息送給IPC 205之後,是否由ipc 205主動 發配訊息,這也是I p C 2 0 5實作面的問題,當然,也有可 能是由兩個模組2 0 1、2 0 3主動去彳貞測與抓取新的訊息,凡 此皆端視實作面要怎麼做。造成兩個狀態機器狀態轉換的 訊息,一定都是來至於另外一個狀態機器(也就是I PC機 制的作用所致),狀態機器本身在進行狀態轉換時,不會 發生送訊息給本身而造成本身狀態機器轉換的狀況,訊息 定都是送給另外一個狀態機器。 上述程序内部通訊機制2 0 5的具體實施手段亦可以改 採用號諸(Semaphore )、共享記憶體(Shared Memory))等 手段來取代。 當外部網路電話打進來時,操作介面模組2 〇 1原本在 閒置(idle)狀態下,會收到CALL_STATUS_RING的訊息之 後’進入到處理電話鈐響(r i ng )狀態。當使用者接聽電話 時’操作介面模組201會收到CALL_STATUS^ANSWERED 訊 息,進入到嘗試連線(connect i ng)狀態。在嘗試連線 (connecting)狀態下收到 CALL—STATUS—CHANNEL_OPENED 说息時’會進入到通話中(c 〇 m m u n i c a t i 〇 η )狀態。當使用 者通話完畢將電話掛掉,會收到CALL_STATUS_IDLE 訊 息’再進入到閒置(i d 1 e )狀態。 當使用者要打網路電話給外部其他人的網路電話時, 操作介面模組2 〇 1原本在閒置(i d 1 e )狀態下,會在收到Page 11 Case No. 94U24叩1273490 V. Invention Description (8) The information is sent to different modules 201, 2 0 3, which is a problem of the implementation, for example, using message queue (messagequeue), Pipes (pi pe ), etc., the present invention does not particularly emphasize the practice of i pc 205. After the module 201, 205 sends the message to the IPC 205, whether the message is actively sent by the ipc 205 is also a problem of the implementation of the I p C 2 0 5 . Of course, it is also possible that the two modules are 2 0 1 . 2 0 3 Take the initiative to guess and grab new messages, and all of them will look at the implementation. The message that causes the state transition of the two state machines must come from another state machine (that is, the role of the I PC mechanism). When the state machine itself performs state transition, it does not send a message to itself and cause itself. The status of the state machine conversion, the message is sent to another state machine. The specific implementation means of the internal communication mechanism of the above program can also be replaced by means such as Semaphore and Shared Memory. When the external network phone comes in, the operation interface module 2 〇 1 will be in the idle state, and will receive the message of CALL_STATUS_RING and then enter the processing phone ringing (r i ng ) state. When the user answers the call, the operation interface module 201 receives the CALL_STATUS^ANSWERED message and enters the connect i ng state. When the CALL_STATUS_CHANNEL_OPENED message is received in the attempted connection state, it will enter the state of the call (c 〇 m m u n i c a t i 〇 η). When the user hangs up after the call is over, they will receive the CALL_STATUS_IDLE message and enter the idle (i d 1 e) state. When the user wants to make a network call to other people's Internet phone, the operation interface module 2 〇 1 will be received in the idle (i d 1 e ) state.

第12頁Page 12

1273490 _案號 94142499 •五、發明說明(9) CALL_STATUS_RINGBACK的訊息之後,進人到等待對方接 聽(ring back)狀態。當對方接聽電話時,操作介面模組 “ 201 會收到 CALL —STATUS_CHANNEL —OPENED 訊息,並且進 入到通話中(c 〇 m m u n i c a t i ο η )狀態° 本發明通信程式模組2 0所包括的操作介面模組2 〇丄以 及該些通信協定模組2 0 3,能夠採以施作成(Impl'ement)動 體(F irmware)。或者,本發明通信程式模組2〇所包括的$ 作介面模組2 0 1以及該些通信協定模組2 〇 3,能夠採以施^ 成(Implement)應用程式(Application Program)。 本發明所具備有之優點如下: •將操作介面模組與通訊協定模組獨立為兩個處理程序, 可以達到模組化系統開發的優點。 2 ·操作介面模組與通訊協定模組之間的複雜溝通,轉換 兩個獨立的狀態機器之間的互動,可簡化網路電話系、二 開發難度。 充的 3 ·、動態更換其中一個模組而不影響另一個模組,藉此能夠 獲致下述(A )項與(B )項的好處:(A ) ·不同的操作介面模σ 、组’只需要施作對應的操作介面的狀態機器,即可和原來 的通訊協定模組進行溝通;(Β )·不同的通訊協定模組,、口1273490 _ Case number 94142499 • V. Invention description (9) After the CALL_STATUS_RINGBACK message, the person enters to wait for the ring back status. When the other party answers the call, the operation interface module "201 will receive the CALL_STATUS_CHANNEL_OPENED message and enter the call (c 〇mmunicati ο η) state. The operation interface module included in the communication program module 20 of the present invention The group 2 〇丄 and the communication protocol modules 203 can be implemented as an Impl'ement mobile device or the interface module included in the communication program module 2 of the present invention. 2 0 1 and the communication protocol modules 2 〇 3 can be used to implement an Application Program. The advantages of the present invention are as follows: • Operation interface module and communication protocol module Independent of two processing procedures, can achieve the advantages of modular system development. 2 · Complex communication between the operation interface module and the communication protocol module, and the interaction between two independent state machines can simplify the network. Phone system, two development difficulty. Charge 3 · Dynamically replace one module without affecting another module, thereby gaining the benefits of items (A) and (B) below: (A) · Different The operation interface σ, group 'only needs to be the state machine of the corresponding operation interface, and can communicate with the original communication protocol module; (Β)·Different communication protocol modules, ports

需要施作對應的通訊模組的狀態機器,即可和原來的於^ 介面模組溝通。 永 雖然本發明已較佳實施例揭露如上,然並非用以限定 士發明,任何熟悉此項技藝者,在不脫離本發明之精神$ 範圍内,當可做些許更動與潤飾,所作更動與潤飾仍屬於 本發明後附之申請專利範圍之内。 ;The state machine that needs to be the corresponding communication module can communicate with the original interface module. Although the preferred embodiment of the present invention has been disclosed above, it is not intended to limit the invention, and any one skilled in the art can make some changes and retouching, and make changes and retouchings without departing from the spirit of the present invention. It is still within the scope of the patent application attached to the present invention. ;

1273490案號隨漏1273490 case number is missing

3 換 正 圖式簡單說明 第一圖顯示用於網路電話系統的習知通信程式模組架構的 架構圖。 第二圖顯示本發明用於網路電話系統的通信程式模組架構 改良的架構圖。 第三圖顯示本發明操作介面模組的狀態機器的狀態轉換 圖。 第四圖顯示本發明通信協定模組的狀態機器的狀態轉換 圖。 第五圖顯示本發明通信程式模組架構的狀態機器的運作範 例圖。 主要元件編號 10 通信程式 10 1 通訊協定模組 103 操作介面模組 20 通信程式模組 201 操作介面模組 2 0 3 通信協定模組 2 0 5 程序内部通訊機制(Inter-Process3 Correction Simple description of the diagram The first figure shows the architecture of the conventional communication program module architecture for VoIP systems. The second figure shows an improved architectural diagram of the communication program module architecture for the VoIP system of the present invention. The third figure shows a state transition diagram of the state machine of the operating interface module of the present invention. The fourth figure shows a state transition diagram of the state machine of the communication protocol module of the present invention. The fifth figure shows an example of the operation of the state machine of the communication program module architecture of the present invention. Main component number 10 Communication program 10 1 Communication protocol module 103 Operation interface module 20 Communication program module 201 Operation interface module 2 0 3 Communication protocol module 2 0 5 Program internal communication mechanism (Inter-Process

Communication Mechanism)Communication Mechanism)

第14頁Page 14

Claims (1)

1273490 案號 94142499 IL 年 月 日 一修正 六、申請專利範圍 1 . 一種用於網路電話系統的通信程式模組架構,包括: 一至少一個以上的通訊協定模組,且每個通訊協定 模組係分別對應不同的通信協定;以及一操作介面模組, 係作為人機界面,以及係用於與該些通訊協定模組進行互 動;其特徵在於: 該通訊協定模組,係包含一第一狀態機器,且該通訊 協定模組係依據該第一狀態機器運作; 該操作介面模組,係包含一第二狀態機器,且該操作 介面模組係依據該第二狀態機器運作; 以及該通訊協定模組與該操作介面模組係經由一程序内部 訊機制(Inter- Process Communication Mechanism)來 Γ^進行溝通,且該第一狀態機器與該第二狀態機器,係為各 自獨立的狀態機器。 2 .如申請專利範圍第1項所述之通信程式模組架構,其中 該第一狀態機器的狀態,係包含:閒置、等待操作介面模 組回應訊息、嘗試建立連線、資料傳輸中。 3 .如申請專利範圍第1項所述之通信程式模組架構,其中 該第二狀態機器的狀態,係包含:閒置、處理電話鈐響、 等候對方接聽、嘗試建立連線、通話中。 4.如申請專利範圍第1項所述之通信程式模組架構,其中 該通訊協定,係一 Η 3 2 3通信協定、一 S I Ρ通信協定、一其 它通信協定的其中一種。 5 ·如申請專利範圍第1項所述之通信程式模組架構, 其中該些通訊協定模組與該操作介面模組,係施作成1273490 Case No. 94142499 IL Year Month Day Correction VI. Patent Application Area 1. A communication program module architecture for a network telephone system, comprising: one or more communication protocol modules, and each communication protocol module Corresponding to different communication protocols; and an operation interface module, as a human-machine interface, and for interacting with the communication protocol modules; the communication protocol module includes a first a state machine, wherein the communication protocol module operates according to the first state machine; the operation interface module includes a second state machine, and the operation interface module operates according to the second state machine; and the communication The protocol module and the operation interface module communicate via an Inter-Process Communication Mechanism, and the first state machine and the second state machine are independent state machines. 2. The communication program module architecture of claim 1, wherein the state of the first state machine comprises: idle, waiting for an operation interface module response message, attempting to establish a connection, and data transmission. 3. The communication program module architecture according to claim 1, wherein the state of the second state machine comprises: idle, processing a telephone call, waiting for the other party to answer, attempting to establish a connection, and in a call. 4. The communication program module architecture of claim 1, wherein the communication protocol is one of a communication protocol, a SIP communication protocol, and another communication protocol. 5) The communication program module architecture described in claim 1 wherein the communication protocol modules and the operation interface module are configured 第15頁 1273490 j ,正替換, ί j 案號 94142499 Ln 冬——-一^ 一一一"% 正_ _六、申請專利範圍 (Implement) — 韋刃體(Firmware) 〇 6.如申請專利範圍第1項所述之通信程式模組架構,其中 - 該些通訊協定模組與該操作介面模組,係施作成 (Implement) —應用程式(Application Program) 〇 -7.如申請專利範圍第1項所述之通信程式模組架構,其中 該程序内部通訊機制,係一訊息貯列(M e s s a g e Q u e u e )、 一號諸(Semaphore)、一共享記憶體(Shared Memory)、一 管道(Pipe)的其中一種。 8 ·如申請專利範圍第7項所述之通信程式模組架構,其中 該訊息貯列,係用來儲存至少一個以上的訊息。 _(L如申請專利範圍第8項所述之通信程式模組架構,其中 該訊息,係由該通訊協定模組所發送。 1 0 .如申請專利範圍第8項所述之通信程式模組架構,其中 該訊息,係由該操作介面模組所發送。 1 1 .如申請專利範圍第7項所述之通信程式模組架構,其中 該訊息貯列,係能夠被該通訊協定模組存取(Access )。 1 2.如申請專利範圍第7項所述之通信程式模組架構,其中 該訊息貯列,係能夠被該操作介面模組存取(A c c e s s )。Page 15 1273490 j , positive replacement, ί j Case number 94142499 Ln Winter --- one ^ one by one "% positive _ _ six, the scope of application for patent (Implement) - Weierware (Firmware) 〇 6. If applied The communication program module architecture described in the first aspect of the patent, wherein - the communication protocol module and the operation interface module are implemented - Application Program 〇-7. The communication program module architecture described in the first item, wherein the internal communication mechanism of the program is a message queue, a Semaphore, a shared memory, and a pipeline ( One of the Pipes. 8. The communication program module architecture of claim 7, wherein the message storage is used to store at least one message. _ (L is the communication program module architecture described in claim 8 of the patent application, wherein the message is sent by the communication protocol module. 10. The communication program module as described in claim 8 The architecture, wherein the message is sent by the operation interface module. 1 1. The communication program module architecture described in claim 7 wherein the message is stored by the communication protocol module. 1. The communication program module architecture described in claim 7, wherein the message storage can be accessed by the operation interface module (A ccess ). 第16頁 1273490 r 案號 94142499 f: '六、指定代表圖 (一)、本案代表圖為:第二圖 β (二)、本案代表圖之元件代表符號簡單說明 2 0 通信程式模組 2 0 1 操作介面模組 2 0 3 通信協定模組 2 0 5 程序内部通訊機制 ΦPage 16 1273490 r Case No. 94142499 f: 'Six, the representative representative figure (1), the representative figure of the case is: the second figure β (two), the representative figure of the case representative symbol simple description 2 0 communication program module 2 0 1 Operation interface module 2 0 3 Communication protocol module 2 0 5 Program internal communication mechanism Φ 第3頁Page 3
TW094142499A 2005-12-02 2005-12-02 Communication program module structure for network telephone system TWI273490B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW094142499A TWI273490B (en) 2005-12-02 2005-12-02 Communication program module structure for network telephone system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW094142499A TWI273490B (en) 2005-12-02 2005-12-02 Communication program module structure for network telephone system

Publications (2)

Publication Number Publication Date
TWI273490B true TWI273490B (en) 2007-02-11
TW200723097A TW200723097A (en) 2007-06-16

Family

ID=38621556

Family Applications (1)

Application Number Title Priority Date Filing Date
TW094142499A TWI273490B (en) 2005-12-02 2005-12-02 Communication program module structure for network telephone system

Country Status (1)

Country Link
TW (1) TWI273490B (en)

Also Published As

Publication number Publication date
TW200723097A (en) 2007-06-16

Similar Documents

Publication Publication Date Title
TW457823B (en) Radio communications device and method with API between user application program and telephony program and method
US8787533B2 (en) System and method for placing a phone call through a selected telecommunications network
CN1968123B (en) Automatic orchestration of dynamic multiple party, multiple media communications
TW201013510A (en) Communication method and communication device therefor
CN102694665A (en) Notifying participants that a conference is starting
CN102694932B (en) Method and system for intelligently accessing call center through mobile internet
US8325738B2 (en) Apparatus system and method for web-based phone services
US20060274724A1 (en) Method of providing a parallel voice and data connection with a call center and a device for the same
CN106330683A (en) Multimedia seating system
US7406167B2 (en) Exchange system and method using icons for controlling communications between plurality of terminals
US20080010124A1 (en) Managing commitments of time across a network
CN108809902A (en) Terminal, server and its audio/video conference implementation method, device and system
WO2020147399A1 (en) Unified routing method, apparatus, and system based on data attribute matching
TWI273490B (en) Communication program module structure for network telephone system
CN102035950A (en) Seat service processing method and IP (Internet Protocol) seat terminal
CN102572145A (en) Multimodal telephone calls
KR100965090B1 (en) System and method for the call agent connection service using video information menu based on VRS
JP2007318232A (en) Ip phone system and ip phone
JPH0738628A (en) Telephone set with schedule function
JP2009081626A (en) Customer reception support device
JPH118715A (en) Method and device for multi-media commercial transaction
JPH11136368A (en) Electronic conference system
JP2006229418A (en) Cti multisite system
CN101505343A (en) Method, system and apparatus for implementing voice call
JP2002142023A (en) Server system and communication data transmission method

Legal Events

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