1321420 九、發明說明: 【發明所屬之技術領域】 本發明係有關於電話通訊,尤指一種電話閘道器、包 含其之電話系統及其執行閘道功能的方法。 【先前技術】 對於經常到國外出差或旅遊的人而言,若常以電話和 國内聯絡,需要化費大量的國際通訊費用。例如,若是使 用行動電話,則不論是打電話回國内,或是接國内打來的 電話,皆需支付國際漫遊費;若是使用國外的固網服務, 則就打回國内的部分,亦須支付國際電話費。雖然,現在 已有網際網路協定(Internet Protocol,簡稱IP)電話(Voice over IP ’簡稱VoIP)的服務’可在國外使用Ip電話,經由 網際網路和國内亦使用IP電話之通話者聯絡,以節省話 費。然而,若國内通話者沒有IP電話或不方便使用Ip電 話時,國外通話者仍需撥打國内通話者的行動電話或固網 電話。此時,國外通話者若要藉由IP電話和國内通話, 則需另外花錢申請IP電話業者的服務,例如,以目前常 用的IP電話Skype為例,若要從國外利用skype打回國 内之行動電話或固網電話,則需申請Skype0ut的服務; 右要在國外接國内之行動電話或固網電話打來的電話,則 需申請Skypeln服務。如此,仍須支付skype業者服務費 用。此外’當我方在國外時,若對方撥打我方國内家裡或 公司的固網電話’並無法轉接到我方在國外所使用之ιρ 6 電話,而造成漏接電話。 【發明内容】 有鑑於此’本發明之一目的’在於提供一種電話閉道 器(telephony gateway)、包含其之電話系統及其執行閘道 功能的方法,可利用IP電話節省話費,且當通話對方非 為IP電話時,亦無須另外支付服務費用給IP電話業者。 本發明之另一目的,在於提供一種電話閘道器、包含 其之電話系統及其執行閘道功能的方法,可將對方撥打至 我方的固網電話或行動電話但我方無法接聽之電話,經由 一 IP網路(例如網際網路)轉接至我方的IP電話。如此, 當我方在世界任何地方,只要可利用IP電話裝置連上該 IP網路,就可不漏接電話。 在本發明之一實施例中,揭露了一種電話閘道器,其 連接於一電話網路與一 IP網路間。該電話閘道器包含: 一電話網路介面,對應於一電話號碼,並從該電話網路接 收來話(incoming call)訊號,其中該來話訊號之目的電 話號碼為該電話絲;—定料元,賴觸_ ιρ電話 裝置是否連接於該IP網路,其中該Ip電話裝置具有第一 =位址,且支援第一 Ip電話協定;一轉碼 單το ’輕接至該電話網路介面與該定位單元用以在該ιρ 電話裝置連接於該IP轉時’將絲规賴碼為符合 HP 1:話協定之第—Ip電話峨,其中該第一 ιρ電 話1之目的正位址為第—IP位址;以及-IP介面, 輕接至該轉碼單元與該定位單元 位址,並經由該JP網路將第一1321420 IX. Description of the Invention: [Technical Field] The present invention relates to telephone communication, and more particularly to a telephone gateway, a telephone system including the same, and a method for performing the same. [Prior Art] For those who travel frequently or travel abroad, if you frequently contact the phone by phone, you will need to spend a lot of international communication fees. For example, if you use a mobile phone, you will have to pay the international roaming fee whether you call back to China or receive a call from the country. If you use a foreign fixed-line service, you will get back to the domestic part. An international telephone fee is required. Although there is now Internet Protocol (IP) telephone (Voice over IP (VoIP) service], Ip phones can be used abroad, and IP phone callers are also used via the Internet and domestically. Contact to save money. However, if the domestic caller does not have an IP phone or is inconvenient to use the Ip phone, the foreign caller still needs to call the domestic caller's mobile phone or fixed line phone. At this time, if foreign callers want to use IP phones and domestic calls, they need to pay for IP phone operators' services. For example, take the current popular IP phone Skype as an example. If you want to use skype from abroad, If you want to return to the domestic mobile phone or fixed-line phone, you need to apply for Skype0ut service. If you want to pick up the domestic mobile phone or fixed-line phone call from abroad, you need to apply for Skypeln service. In this way, the skype operator service fee is still payable. In addition, when we are abroad, if the other party calls the fixed-line telephone of our domestic home or company, we cannot transfer to the ιρ 6 telephone used by us abroad, which will result in missed calls. SUMMARY OF THE INVENTION In view of the present invention, it is an object of the present invention to provide a telephony gateway, a telephone system including the same, and a method for performing the same, which can save money by using an IP telephone, and when the call is made When the other party is not an IP phone, there is no need to pay the service fee to the IP phone operator. Another object of the present invention is to provide a telephone gateway, a telephone system including the same, and a method for performing the same, which can call the other party to our fixed line telephone or mobile phone but cannot answer the call. Transfer to our IP phone via an IP network (such as the Internet). In this way, when we are in the world, as long as the IP phone can be connected to the IP network, we can not miss the call. In one embodiment of the invention, a telephone gateway is disclosed that is coupled between a telephone network and an IP network. The telephone gateway includes: a telephone network interface corresponding to a telephone number and receiving an incoming call signal from the telephone network, wherein the destination telephone number of the incoming signal is the telephone line; The material element is connected to the IP network, wherein the IP telephone device has a first address and supports the first IP telephone protocol; a transcoding single το 'lights to the telephone network The interface and the positioning unit are configured to: when the IP phone device is connected to the IP switch, the code is determined to be in accordance with the HP-voice agreement, and the first positive address of the first mobile phone 1 is For the first-IP address; and the -IP interface, lightly connect to the transcoding unit and the positioning unit address, and the first through the JP network
L元,該IP介面對應第二IP ~ IP電話訊號傳送至該IP 電話裝置,以建立—電話連線。L element, the IP interface corresponding to the second IP ~ IP phone signal is transmitted to the IP telephone device to establish a telephone connection.
在本發明之另一實施例中,揭露了-種電話系統,其 匕3 ’ Ip<®話震置,連接至-IP網路,且具有第-IP 於一電話網路與該IP網路間 位址,支援第-ip電話财;m細道器,連接 Y二立址:且將接收自該電話網路之—來話訊號轉碼為符In another embodiment of the present invention, a telephone system is disclosed, in which a 3' Ip<® session is placed, connected to an IP network, and has a -IP over a telephone network and the IP network. Inter-address, support for the first-ip phone; m-channel device, connect Y two-site: and will receive the incoming call signal from the telephone network
’對應於一電話號碼及第二 話訊號之目的電城碼紐電雜HIP電話訊號 之目的IP位址為第一 IP位址β 在本發明之又一實施例中,揭露了一種執行電話閘道 功能的方法,係用於一電話閘道器,該電話閘道器連接於 一電話網路與一 IP網路間,且對應於一電話號碼及第二 IP位址。該方法包含下列步驟:從該電話網路接收一來 話訊號,其中該來話訊號之目的電話號碼為該電話號碼; 判斷一 IP電話裝置是否連接於該IP網路,其中該Ip電 話裝置具有第一 IP位址,且支援第一 IP電話協定;當該 IP電話裝置連接於該IP網路時,將該來話訊號轉碼為符 合第一 IP電話協定之第一 IP電話訊號,其中第一 IP電 話訊號之目的IP位址為第一 IP位址;以及經由該让網 路將第一 IP電話訊號傳送至該IP電話裝置,以建立—電 話連線。 1321420 【實施方式】 第1圖係本發明之電話系統之第一實施例的架構 圖。如圖所示,電話系統ίο包含一 ip電話裝置u及一 電話閘道器12。IP電話裝置11係經由一 ip網路I]連接 至電話閘道器12,且具有第一 IP位址,支援第一 Ip電話 協定(VoIP protocol)。IP網路π泛指任何使用IP位址來 定址與溝通的網路’例如網際網路或使用IP位址之區域 網路(LAN) ^第一 IP電話協定並無限定,可泛指任何可 控制管理IP網路上之語音訊號傳輸的通訊協定,例如已 成為業界彳示準之會議發起協定(Session Initiation Protocol ’簡稱SIP)與H.323,或是其他業者自行開發之 協定。另外,IP電話裝置11可為任何類型之電子裝置, 只要其可以有線或無線方式連上IP網路13且支援第一 Ip 電話協定。例如,可攜式裝置(行動電話、筆記型電腦、 個人數位助理(PDA)等等)、個人電腦(PC)、附有整合存取 裝置(integrated access device,簡稱 IAD)之傳統電話(p丨ain old telephone ’簡稱pot)等等。電話閘道器12係連接於 一公共電話父換網路(public switehed telephone uetwotk, 簡稱PSTN)14與IP網路13間,且對應於一 pSTN電話 號碼及第二IP位址。電話閘道器12可執行以下幾種閘道 功能··接收PSTN網路Η之來話、接收ip網路]3之來 話、經由PSTN網路14發話至一受話端裝置(圖未顯示) 以及經由IP網路13發話至另一 jp電話裝置ι5。以下分 9 別敘述各閘道功能的執行方式·· (1) 接收PSTN網路14之來話:當電話閘道器12從 PSTN網路14接收到一 pstn來話訊號(其目的電話號碼 為電話閘道器12之PSTN電話號碼)時,會將其轉碼為符 合第一 IP電話協定之第一 IP電話訊號(其目的IP位址為 IP電話裝置11之第一 IP位址),並經由IP網路13傳送 至IP電話裝置11,以建立一電話連線。 (2) 接收IP網路13之來話:當電話閘道器12從ip 網路13接收到一 IP電話來話訊號(其目的IP位址為電話 閘道器12之第二IP位址)時,會將其轉碼為符合第一 Ip 電話協定之第二IP電話訊號(其目的IP位址為第一 Ip位 址)’經由IP網路13傳送至第一 IP電話裝置^,以建立 一電話連線。 換言之,當電話閘道器12是設在使用者國内的家或 辦公室中,則藉由前述(1)及(2)的閘道功能,可將pSTN 網路14或IP網路13之來話轉接至Ip電話裝置u。因此, 當使用者不在豕或辦公室時,不論他位於哪個地方(國内 或國外)’只要他能藉由IP電話裝置u連上Ip網路13, 就能接到原本打到他家或辦公室的電話,並且無須支付任 何通話費用。另外,電話閘道器12亦可連接—傳統電話 裝置,當使用者在家或辦公室裡時,可直接利用該傳統電 話裝置接聽PSTN網Η之來話,而不需轉接。 在一第一較佳實施财,當ip電話裝置u收到前述 第-或第二IP電話訊號時,會執行—認證動作,以決定 1321420 是否准許建立電話連線。該認證動作係用於择認第一或第 二IP電話訊號是由電話閘道器12所發出,以過濾來源不 明之來話。該認證動作之實施方式並無限制,例如,可藉 由判斷第一或第二IP電話訊號是否包含電話閘道器12之 一特定識別碼來認證,若是則准許建立電話連線,若否則 不准許。 (3) 經由PSTN網路14發話至一受話端裝置··當電 話閘道器12從IP網路13收到IP電話裝置11所發出之 第一 IP電話發話訊號(其目的IP位址與目的電話號碼分 別為電話閘道器12之第二IP位址與一受話端電話號碼) 時,會將第一 IP電話發話訊號轉碼為一 PSTN訊號,經 由PSTN網路14傳至該受話端電話號碼所對應之受話端 裝置’以建立一電話連線。請注意,由於PSTN網路14 可與公共陸地行動網路(public land mobile network,簡稱 PLMN)互連,所以該受話端裝置除了可以是psTN電話裝 置,亦可以是行動電話。 (4) 經由IP網路13發話至IP電話裝置15 :此處ip 電話裝置15係對應一 ip電話代碼(註:ιρ電話不一定使 用號碼來識別,所以此處以代碼來涵蓋各種形式之識別 碼)’且支援第二IP電話協定。第二ιρ電話協定並無限 定,可泛指任何可控制管理Ip網路上之語音訊號傳輸的 通訊協定。當電話閘道器12從正網路13收到π>電話裝 置Π所發出之第二IP電話發話訊號(其目的圯位址與目 的電話代碍分別為電話閘道器12之第二ip位址與ip電 11 1321420 話裝置15之ip電話代碼)時,會將第二IP電話發話訊號 轉碼為符合第二IP電話協定之第三IP電話訊號,經由jp 網路13傳送至IP電話裝置15,以建立一電話連線。 換吕之’當電話閘道器12是設在使用者國内的家或 辦公室中’則藉由前述(3)及(4)的閘道功能,當使用者不 在家或辦公室時’不論他位於哪個地方’只要他能藉由jp 電話裝置11連上IP網路13,就能透過電話閘道器a撥 打至其他PSTN電話裝置、行動電話或IP電話裝置。當 使用者位於國外而撥打至國内時,由於係先藉由Ip網路 13連至國内的電話閘道器12再轉接出去,因此使用者僅 需負擔國内部分的話費,而可省下國際部分的話費。 在一第二較佳實施例中,當電話閘道器12收到前述 第一或第二IP電話發話訊號時,會執行一認證動作,以 決定是否准許IP電話裝置u與前述受話端裝置或IP電 話裝置15建立電話連線。該認證動作係用於確認第一或 第二IP電話發話訊號是由IP電話裝置u所發出,以避 免其他未經認證之IP電話裝置盜用電話閘道器12來撥打 電話。該認證動作之實施方式並無限制,例如,可藉由判 斷第或第二IP電話發話訊號是否包含jp電話裝置η 之一特定識別碼來認證,若是則准許建立電話連線,若否 則不准許。 第2圖係本發明之電話祕之第二實施例的架構 圖,其與第1圖之主要差別在於,電話系統2〇所包含之 電話閘道1 22係連胁—PLMN鱗24與Ιρ網路13 12 1321420 間,且對應於一行動電話號碼(電話閘道器22則仍對應於 第二ip位址)。至於前述(1)與(3)的閘道功能,則分別改變 為接故PLMN網路24之來話與經由pl_網路24發話 至一受話端裝置,(2)與(4)的閘道功能則維持不變。在接 收PLMN網路24之來話時,電話閘道器22係從 網路24接收到—plmn來話訊號(其目的電話號碼為電 話閘道器22之行動電話號碼),並將其轉碼為符合第一圯 電話協定之第四IP電話訊號(其目的圯位址為第一正位 址),經由IP網路13傳送至IP電話裝置n,以建立一電 話連線。在經由PLMN網路24發話至一受話端裝置時, 電話閘道器22係從ip網路π收到ip電話裝置u所發 出之第二IP電話發話訊號(其目的jp位址與目的電話號 碼分別為第二IP位址與一受話端電話號碼),並將第三正 電話發話訊號轉碼為一 plmn訊號,經由PLMN網路24 傳至該爻話端電話號碼所對應之受話端裝置,以建立一電 話連線。 第3圖係本發明之電話系統之第三實施例的架構 圖’其與第1圖之主要差別在於,電話系統30除了包含 電話閘道器32與IP電話裝置31外,還包含一連接於IP 網路丨3之定位伺服器36。在此第三實施例中’ IP電話裝 置31與電話閘道器32係分別對應於第一與第二IP位 址。IP電話裝置31與電話閘道器32在進行溝通前,需 先互相得知對方的IP位址。當雙方都是固定IP位址時, 可將對方之固定IP位址預先記錄於我方,以便要與對方 13 1321420 溝通時使用,而,若有任何—方為浮動Ip位址(触㈣ IP add咖)時’另—方便難以如_Ip位址般預先記錄。 因此,定位伺服器36之功能在於,當第一與第二圯位址 至少有其一為浮動IP位址時,可於Ip _㈣機時,使細 方所,位,亦即另-方可得知該浮動IP位址為何。 足位伺服器36包含一對應表361,可記錄具浮動IP 位址之方之特定識別碼與該浮動Ip位址間的對應關 係如此’只要另一方預先記錄有該特定識別碼,就可依 據該特定朗碼查觸絲3(51,崎知料動ιρ位址。 例如,當0>電話裝置31之第一 IP位址為浮動Ip位址時, IP電話裳置31即於定位伺服器36進行註冊,以使對應 表361記錄有第一 IP位址與Ip電話裝置3〗之第一識別 碼間之對應_係。帛-識別碼係預^記錄於電話間道器 32 ’而電話閘道II 32便可依據第—識別碼查詢對絲 361 ’以得知第一 IP位址。再例如,當電話閘道器32之 第二IP位址為浮動IP位址時,電話閘道器32即於定位 伺服器36進行註冊,以使對應表361記錄有第二位址 與電話閘道II 32之第二削剩之對應_。同樣地, 第二識別碼係預先記錄於IP電話裝置31,而ip電話裝置 31便可依據第一識別碼查詢對應表361 ,以得知第二正 位址。前述第一與第二識別碼之形式並無限制,例如,可 使用每個IP網路裝置皆具有之齡存取位址㈣伽 access address,簡稱 mac address),作為識别碼。 第4圖係第1圖之電話閘道器12之一較佳實施例的 方塊圖。如第4圖所示,電話閘道器12包含一 pstn介 面12卜一定位單元〗22、一轉碼單元123、一認證單元 124、一通話拒絕(caii rejecti〇n)處理單元125、一延伸功 能單元126及一 IP介面127。其中,PSTN介面121係連 接至PSTN網路14,且對應於電話閘道器12之pstn電 話號碼;定位單元122用以判斷IP電話裝置1丨是否連接 於IP網路13;轉碼單元123用以進行PSTN訊號與ip電 話訊號間、或不同IP電話協定之IP電話訊號間之轉碼; 認證單元124用以執行前述第二較佳實施例中所述之認 證動作,通話拒絕處理單元125用以在電話連線無法建 立時,執行一通話拒絕程序;IP介面係連接至jp網路 13,且對應電話閘道器12之第二ip位址。延伸功能單元 126則用以提供下列附加功能至少其一:通話錄音、顯示 來話號碼(caller ID)、過濾來話、分機功能、會議通話 (conference call)、來話保留、快速撥號及通話資訊統計。 以下分別敘述電話閘道器12在執行前述(1)至(4)的閘 道功能時,其内部的運作方式: (A)在接收PSTN網路14來話時,PSTN介面121 從PSTN網路14接收該PSTN來話訊號,而轉瑪單元123 在定位單元122判斷IP電話裝置u係連接於正網路13 時’將該PSTN來話訊號轉碼為前述之第一 jp電話訊號, IP介面127則經由IP網路13將第一 Ip電話訊號傳送至 IP電話裝置11,以建立電話連線。 1321420 (B) 在接收IP網路13之來話時,π>介面127係從顶 網路13接收該IP電話來話訊號,而轉碼單元123在定位 單元122判斷IP電話裝置11係連接於IP網路13時,將 該IP電話來話訊號轉碼為前述之第二ip電話訊號,ip介 面127則將第二IP電話訊號經由P網路J3傳送至Ip電 話裝置11,以建立電話連線。 (C) 在經由PSTN網路14發話至一受話端裝置時, IP介面127係從IP網路13接收第一 IP電話發話訊號, 而轉碼單元123在經過認證單元124認證後,將第一 jp 電話發話訊號轉碼為前述之PSTN訊號,PSTN介面121 則經由PSTN網路14傳送該PSTN訊號至該受話端裝 置,以建立電話連線。 (D) 在經由IP網路13發話至IP電話裝置15時,逆 介面127係從IP網路13接收第二Ip電話發話訊號,而 轉碼單元123在經過認證單元124認證後,將第二Ip電 話發話訊號轉碼為前述之第三IP電話訊號,IP介面127 則經由IP網路13傳送第三ip電話訊號至電話裝置 15,以建立電話連線。 在前述(A)至(D)中’當電話連線無法建立時,通話拒 絕處理單元125即執行通話拒絕程序,例如記錄發話端裝 置所傳送之語音訊息,或是將來話訊號轉接至一預設之受 話端裝置。 以下第5圖至第8圖所敘述的,係分別為本發明執行 用述(1)至(4)閘道功能之方法的實施例。第5圖係執行接 1321420 收PSTN 14來話之閘道雜之_實施綱流程圖。 如第5圖所示,此流程包含下列步驟: 步驟50 ··從PSXN網路14接收前述⑴之psTN來話 訊號; 步驟5丨:判斷IP電話裝置1丨是否連接於ιρ網路13, 若否則跳至步驟55,若是則跳至步驟52; 步驟52 .將該PSXN來話訊號轉碼為第一圯電話訊 號; 步驟53 ·經由IP網路13將第一正電話訊號傳送至 IP電話裝置11,以建立電話連線; 步驟54 .騎電話連線是否建立,若侧跳至步驟 55,若是則跳至步驟56; 2二執行通話拒絕程序’並結束流程;以及 ’ •維持電話連線,直至通話結束。 第ό圖係執行接收ip 施例的流程圖。如第6圖所_ ^之閘道功奴一實 紐广 所不,此流程包含下列步驟: ’ •從1P網路13接故前述(2)之IP電話來話訊 號; 步賴:判斷π>電話裝Μ是否連接於ιρ網路13, 步驟63,將第二IP電話訊號經由IP網路13傳送至 IP_置urn電話連線;#虹 17 步驟64 :_賴猶衫建立,若频跳至步驟 65 ’若是則跳至步驟66; 2二執行通話拒絕程序,並結衫m 步驟66 .維持電話連線,直至通話結束。 =,執行經由_網路14發話至—受話端裝 置之閘道舰之-實施·流程圖。如第7騎示此 程包含下列步驟: 步驟70 ·從ip網路13接收前述⑶之第一犯電話發 話訊號; 步驟71 ··決定是否准許Ip電話裝置u與該受話端 裝置建立電話連線,若准許則跳至步驟 73 ’若不准許則跳至步驟72; 步驟72 :執行通話拒絕程序,並結束流程; 步驟73:將第一 IP電話發話訊號轉碼為PSTN訊號; 以及 步驟74 ·•經由PSXN網路14傳送該pSTN訊號至該 受話端裝置,以建立電話連線。 步驟71中,係依據第一 ip電話發話訊號是否包含ip 電話裝置11之特定識別碼,決定是否准許IP電話裝置11 與該受話端裝置建立電話連線。 第8圖係執行經由IP網路13發話至IP電話裝置15 之閘道功能之一實施例的流程圖。如第8圖所示,此流程 包含下列步驟: 步驟80 :從ip網路13接收前述(4)之第二IP電話發 話訊號; 步驟81 .決疋疋否准許IP電話裝置11與IP電話裝 置15建立電話連線,若准許則跳至步驟 83 ’若不准許則跳至步驟82; 步驟82 :執行通話拒絕程序,並結束流程; 步驟83:將第二IP電話發話訊號轉碼為第三IP電話 訊號;以及 步驟84:經由1p網路η傳送第三IP電話訊號至ϊρ 電話裝置15,以建立電話連線。 步驟81中’係依據第二正電話發話訊號是否包含正 電話裝置11之特定識別碼,決定是否准許正電話裝置u 與IP電話裝置15建立電話連線。 以上所述係利用較佳實施例詳細說明本發明,而非限 制本發明之範圍。凡熟知此類技藝人士皆能明瞭,可根據 以上實施例之揭示而做出諸多可能變化,仍不脫離本發明 之精神和範圍。 【圖式簡單說明】 第1圖係本發明之電話系統之第一實施例的架構圖。 第2圖係本發明之電話系統之第二實施例的架構圖。 第3圖係本發明之電話系統之第三實施例的架構圖。 第4圖係第1圖之電話閘道器之一較佳實施例的方塊圖。 第5圖係執行接收PSTN網路來話之閘道功能之一實施例 的流程圖。 1321420 第6圖係執行接收ip網路來話之閘道功能之一實施例的 流程圖。 第7圖係執行經由PSTN網路發話至/受話端裝置之閘道 功能之一實施例的流程圖。 第8圖係執行經由IP網路發話至另一 IP電話裝置之閘道 功能之一實施例的流程圖。The destination IP address corresponding to the purpose of a telephone number and the second voice signal is the first IP address β. In still another embodiment of the present invention, an implementation of the telephone gate is disclosed. The method of channel function is used for a telephone gateway connected between a telephone network and an IP network, and corresponding to a telephone number and a second IP address. The method comprises the steps of: receiving an incoming signal from the telephone network, wherein the destination telephone number of the incoming signal is the telephone number; determining whether an IP telephone device is connected to the IP network, wherein the IP telephone device has a first IP address and supporting a first IP telephony protocol; when the IP telephony device is connected to the IP network, the incoming signal is transcoded into a first IP telephony signal conforming to the first IP telephony protocol, wherein The destination IP address of an IP telephone signal is the first IP address; and the first IP telephone signal is transmitted to the IP telephone device via the transmission network to establish a telephone connection. 1321420 [Embodiment] Fig. 1 is a block diagram showing a first embodiment of a telephone system of the present invention. As shown, the telephone system ίο includes an ip telephone device u and a telephone gateway 12. The IP telephone device 11 is connected to the telephone gateway 12 via an IP network I] and has a first IP address to support the first IP telephone protocol (VoIP protocol). IP network π refers to any network that uses IP addresses to address and communicate 'such as the Internet or a local area network (LAN) using IP addresses. ^ The first IP telephony agreement is not limited and can refer to any A communication protocol that controls the transmission of voice signals over an IP network, for example, has become an industry-sponsored Session Initiation Protocol (SIP) and H.323, or an agreement developed by other operators. In addition, the IP telephone device 11 can be any type of electronic device as long as it can be connected to the IP network 13 in a wired or wireless manner and supports the first IP telephone protocol. For example, portable devices (mobile phones, notebook computers, personal digital assistants (PDAs), etc.), personal computers (PCs), and traditional telephones with integrated access devices (IAD) (p丨Ain old telephone 'short for pot) and so on. The telephone gateway 12 is connected between a public telephone exchange network (PSTN) 14 and the IP network 13, and corresponds to a pSTN telephone number and a second IP address. The telephone gateway device 12 can perform the following types of gateway functions: receiving an incoming call of the PSTN network, receiving an incoming voice of the ip network, and transmitting a call to the receiving terminal device via the PSTN network 14 (not shown). And speaking via the IP network 13 to another jp telephone device ι5. The following is a description of the execution of each gateway function. (1) Receiving incoming PSTN network 14: When the gateway 1 receives a pstn incoming signal from the PSTN network 14, its destination telephone number is When the PSTN telephone number of the telephone gateway 12 is transcoded, it is transcoded into the first IP telephone signal conforming to the first IP telephone protocol (the destination IP address is the first IP address of the IP telephone device 11), and It is transmitted to the IP telephone device 11 via the IP network 13 to establish a telephone connection. (2) Receiving an incoming call from the IP network 13: When the gateway 1 receives an IP telephone incoming signal from the ip network 13 (the destination IP address is the second IP address of the telephone gateway 12) When it is transcoded into a second IP telephone signal conforming to the first IP telephone protocol (its destination IP address is the first IP address), it is transmitted to the first IP telephone device ^ via the IP network 13 to establish A telephone connection. In other words, when the telephone gateway 12 is located in the home or office of the user, the pSTN network 14 or the IP network 13 can be brought in by the gateway functions of the above (1) and (2). The call is transferred to the Ip telephone device u. Therefore, when the user is not in the office or office, no matter where he is located (domestic or foreign), as long as he can connect to the IP network 13 via the IP telephone device, he can receive the original call to his home or The office phone does not have to pay for any calls. In addition, the telephone gateway 12 can also be connected to a conventional telephone device. When the user is at home or in the office, the conventional telephone device can be directly used to answer the incoming call of the PSTN network without switching. In a first preferred implementation, when the IP telephone device u receives the aforementioned first or second IP telephone signal, an authentication action is performed to determine whether 1321420 permits the establishment of a telephone connection. The authentication action is used to select whether the first or second IP telephone signal is sent by the telephone gateway 12 to filter incoming sources of unknown origin. The implementation manner of the authentication action is not limited. For example, it may be authenticated by determining whether the first or second IP telephone signal includes a specific identification code of the telephone gateway 12, and if so, permitting the establishment of a telephone connection, if not Permitted. (3) Sending a message to the receiving terminal device via the PSTN network 14 · When the telephone gateway device 12 receives the first IP telephone calling signal from the IP telephone device 11 from the IP network 13 (its destination IP address and purpose) When the telephone number is the second IP address of the telephone gateway 12 and a telephone number of the called party, the first IP telephone call signal is transcoded into a PSTN signal and transmitted to the called telephone via the PSTN network 14. The terminating device corresponding to the number is used to establish a telephone connection. Please note that since the PSTN network 14 can be interconnected with a public land mobile network (PLMN), the terminating device can be a mobile phone in addition to the psTN phone device. (4) Sending a message to the IP telephone device 15 via the IP network 13: Here, the IP phone device 15 corresponds to an IP phone code (Note: the phone number is not necessarily identified by the number, so the code is used to cover various forms of the identification code. ) and support the second IP telephony agreement. The second ιρ telephone agreement is indefinite and can generally refer to any communication protocol that can control the transmission of voice signals on the IP network. When the telephone gateway 12 receives from the positive network 13 a second IP telephone call signal issued by the π > telephone device (the destination 与 address and destination telephone occlusion are respectively the second ip digit of the telephone gateway 12) When the IP address is 11 1321420, the IP phone signal of the device 15 is transcoded into a third IP phone signal conforming to the second IP phone protocol, and transmitted to the IP phone device via the jp network 13. 15, to establish a telephone connection. In the case of Lu's 'When the telephone gateway 12 is located in the home or office of the user', the gateway function of (3) and (4) above is used, when the user is not at home or in the office, 'regardless of him Where is it located? As long as he can connect to the IP network 13 via the jp telephone device 11, he can dial to other PSTN telephone devices, mobile phones or IP telephone devices via the telephone gateway device a. When the user is located abroad and dialed to the country, since the user first connects to the domestic telephone gateway 12 via the IP network 13, the user only needs to pay the domestic part of the call. Can save the international part of the phone bill. In a second preferred embodiment, when the telephone gateway 12 receives the first or second IP telephone call signal, an authentication action is performed to determine whether to permit the IP telephone device u and the aforementioned terminating device or The IP telephone device 15 establishes a telephone connection. The authentication action is used to confirm that the first or second IP telephone call signal is sent by the IP telephone device u to prevent other unauthenticated IP telephone devices from stealing the telephone gateway 12 to make a call. The implementation manner of the authentication action is not limited. For example, it may be authenticated by determining whether the first or second IP telephone call signal includes a specific identification code of the jp telephone device η. If yes, the telephone connection is allowed to be established, if not, the telephone connection is not permitted. . 2 is an architectural diagram of a second embodiment of the telephone secret of the present invention, and the main difference from FIG. 1 is that the telephone gateway 1 22 included in the telephone system 2 is connected to the network - PLMN scale 24 and Ιρ网Between 13 12 1321420 and corresponding to a mobile telephone number (the telephone gateway 22 still corresponds to the second ip address). As for the gateway functions of the above (1) and (3), respectively, the incoming call to the PLMN network 24 and the utterance via the pl_network 24 to the receiver, (2) and (4) The track function remains unchanged. Upon receiving an incoming call from the PLMN network 24, the telephone gateway 22 receives the -plmn incoming signal (the destination telephone number is the mobile telephone number of the telephone gateway 22) from the network 24 and transcodes it. In order to comply with the first IP telephony signal of the first telephone protocol (the destination address is the first positive address), it is transmitted to the IP telephone device n via the IP network 13 to establish a telephone connection. When transmitting to the receiving device via the PLMN network 24, the telephone gateway 22 receives the second IP telephone outgoing signal (the destination jp address and the destination telephone number) sent by the IP telephone device u from the ip network π. The second IP address and the one-end telephone number are respectively transcoded, and the third positive telephone transmission signal is transcoded into a plmn signal, and transmitted to the receiver device corresponding to the telephone number of the telephone terminal via the PLMN network 24, To establish a telephone connection. Figure 3 is a block diagram of a third embodiment of the telephone system of the present invention. The main difference from the first embodiment is that the telephone system 30 includes a telephone interface 32 and an IP telephone device 31. The positioning server 36 of the IP network 丨3. In the third embodiment, the 'IP telephone device 31 and the telephone gateway 32 correspond to the first and second IP addresses, respectively. Before the IP telephone device 31 and the telephone gateway 32 communicate, they need to know each other's IP address. When both parties are fixed IP addresses, the fixed IP address of the other party can be pre-recorded to us in order to communicate with the other party 13 1321420, and if there is any - the floating IP address (touch (4) IP Add coffee) When 'other' is convenient, it is difficult to pre-record as _Ip address. Therefore, the function of the positioning server 36 is that when at least one of the first and second addresses is a floating IP address, the Ip_(four) machine can be used to make the square, the bit, or the other Know the floating IP address. The footer server 36 includes a correspondence table 361, which can record the correspondence between the specific identification code of the party having the floating IP address and the floating IP address, so that the other party can record the specific identification code in advance. The specific ram code touches the wire 3 (51, for example, when the first IP address of the 0> telephone device 31 is a floating Ip address, the IP phone is placed at the location server. 36 is registered so that the correspondence table 361 records the correspondence between the first IP address and the first identification code of the IP telephone device 3. The identification code is pre-recorded in the telephone intercom 32' and the telephone The gateway II 32 can query the pair of wires 361' according to the first identification code to know the first IP address. For example, when the second IP address of the telephone gateway 32 is a floating IP address, the telephone gateway The device 32 registers with the positioning server 36 so that the correspondence table 361 records the second address corresponding to the second address of the telephone gateway II 32. Similarly, the second identification code is pre-recorded in the IP telephone. The device 31, and the IP telephone device 31 can query the correspondence table 361 according to the first identification code to learn the second Address. The first and the second identification code in the form of limited, for example, may be used for each IP network apparatus of age having both gamma iv access address access address, referred to as the mac address), as an identification code. Figure 4 is a block diagram of a preferred embodiment of the telephone gateway 12 of Figure 1. As shown in FIG. 4, the telephone gateway 12 includes a pstn interface 12, a positioning unit 22, a transcoding unit 123, an authentication unit 124, a call rejection processing unit 125, and an extension. The functional unit 126 and an IP interface 127. The PSTN interface 121 is connected to the PSTN network 14 and corresponds to the pstn telephone number of the telephone gateway 12; the positioning unit 122 is configured to determine whether the IP telephone device 1 is connected to the IP network 13; For performing the transcoding between the PSTN signal and the IP phone signal, or the IP phone signal of the different IP phone protocol; the authentication unit 124 is configured to perform the authentication action described in the foregoing second preferred embodiment, and the call rejection processing unit 125 uses To perform a call rejection procedure when the telephone connection cannot be established; the IP interface is connected to the jp network 13, and corresponds to the second ip address of the telephone gateway 12. The extended function unit 126 is configured to provide at least one of the following additional functions: call recording, display caller ID, filter incoming call, extension function, conference call, incoming call reservation, speed dial and call information. statistics. The following describes the internal operation of the gateway device 12 when performing the above-mentioned (1) to (4) gateway functions: (A) When receiving the PSTN network 14, the PSTN interface 121 is from the PSTN network. 14 receiving the PSTN incoming signal, and the switching unit 123 transcodes the PSTN incoming signal into the first jp telephone signal, the IP interface when the positioning unit 122 determines that the IP telephone device u is connected to the positive network 13 127 then transmits the first IP telephone signal to the IP telephone device 11 via the IP network 13 to establish a telephone connection. 1321420 (B) When receiving an incoming call from the IP network 13, the π> interface 127 receives the IP telephone incoming signal from the top network 13, and the transcoding unit 123 determines at the positioning unit 122 that the IP telephone device 11 is connected to When the IP network 13 is used, the IP telephone incoming signal is transcoded into the aforementioned second IP telephone signal, and the ip interface 127 transmits the second IP telephone signal to the IP telephone device 11 via the P network J3 to establish a telephone connection. line. (C) When transmitting to the terminating device via the PSTN network 14, the IP interface 127 receives the first IP phone call signal from the IP network 13, and the transcoding unit 123 will be authenticated after being authenticated by the authentication unit 124. The jp telephone call signal is transcoded into the aforementioned PSTN signal, and the PSTN interface 121 transmits the PSTN signal to the receiver device via the PSTN network 14 to establish a telephone connection. (D) When transmitting to the IP telephone device 15 via the IP network 13, the reverse interface 127 receives the second IP telephone call signal from the IP network 13, and the transcoding unit 123, after being authenticated by the authentication unit 124, will be the second The IP telephone call signal is transcoded into the aforementioned third IP telephone signal, and the IP interface 127 transmits the third IP telephone signal to the telephone device 15 via the IP network 13 to establish a telephone connection. In the foregoing (A) to (D), when the telephone connection cannot be established, the call rejection processing unit 125 performs a call rejection procedure, for example, recording a voice message transmitted by the source device, or transferring the future voice signal to one. The default receiver device. The following description of Figs. 5 to 8 is an embodiment of the method for carrying out the functions of the gate functions (1) to (4) of the present invention, respectively. Figure 5 is a flow chart of the implementation of the gates of the 13th and 21st receiving PSTN 14 calls. As shown in FIG. 5, the flow includes the following steps: Step 50: receiving the psTN incoming signal of (1) from the PSXN network 14; Step 5: determining whether the IP telephone device 1 is connected to the ι network 13, if Otherwise, skip to step 55, if yes, go to step 52; Step 52. Transcode the PSXN incoming signal into the first telephone signal; Step 53 • Transfer the first positive telephone signal to the IP telephone device via the IP network 13. 11, to establish a telephone connection; Step 54. Whether the telephone connection is established, if the side jumps to step 55, if yes, skip to step 56; 2) execute the call rejection procedure 'and end the process; and' • maintain the telephone connection Until the call ends. The figure is a flow chart for executing the receive ip instance. As shown in Figure 6, the gate of the sect is a virtual slave. The process consists of the following steps: ' • From the 1P network 13 to the IP phone incoming signal of the above (2); Step: judge π> Whether the telephone device is connected to the ιρ network 13, step 63, the second IP phone signal is transmitted to the IP_set urn telephone connection via the IP network 13; #虹17 Step 64: _ 赖 衫 建立 establish, if the frequency Skip to step 65 'If yes, skip to step 66; 2 2 Execute the call rejection procedure, and tie the shirt m Step 66. Maintain the phone connection until the call ends. =, the execution of the gateway through the _ network 14 to the - terminal device - implementation flow chart. Step 7 includes the following steps: Step 70: Receive the first off-calling call signal of (3) from the IP network 13; Step 71 · Determine whether to permit the IP telephone device u to establish a telephone connection with the called terminal device If yes, go to step 73 'If not, then go to step 72; Step 72: Execute the call rejection procedure, and end the process; Step 73: Transcode the first IP phone call signal into a PSTN signal; and Step 74 • Transmitting the pSTN signal to the terminating device via the PSXN network 14 to establish a telephone connection. In step 71, it is determined whether the IP telephone device 11 is permitted to establish a telephone connection with the terminating device according to whether the first ip phone call signal includes a specific identification code of the IP telephone device 11. Figure 8 is a flow diagram of one embodiment of a gateway function for performing a call to IP telephony device 15 via IP network 13. As shown in FIG. 8, the flow includes the following steps: Step 80: Receive the second IP telephone call signal of (4) from the IP network 13; Step 81. Decide whether to permit the IP telephone device 11 and the IP telephone device 15 Establish a telephone connection, if yes, skip to step 83 'If not, then go to step 82; Step 82: Perform a call rejection procedure, and end the process; Step 83: Transcode the second IP telephone transmission signal to the third IP telephone signal; and step 84: transmitting a third IP telephone signal to the telephone device 15 via the 1p network η to establish a telephone connection. In step 81, it is determined whether or not the positive telephone device u is permitted to establish a telephone connection with the IP telephone device 15 based on whether the second positive telephone transmission signal includes the specific identification code of the positive telephone device 11. The above description of the present invention is intended to be illustrative of the preferred embodiments of the invention. It is apparent to those skilled in the art that various changes may be made without departing from the spirit and scope of the invention. BRIEF DESCRIPTION OF THE DRAWINGS Fig. 1 is an architectural diagram of a first embodiment of a telephone system of the present invention. Figure 2 is a block diagram of a second embodiment of the telephone system of the present invention. Figure 3 is a block diagram of a third embodiment of the telephone system of the present invention. Figure 4 is a block diagram of a preferred embodiment of the telephone gateway of Figure 1. Figure 5 is a flow diagram of one embodiment of a gateway function for receiving incoming PSTN network calls. 1321420 Figure 6 is a flow diagram of one embodiment of a gateway function for receiving an incoming ip network. Figure 7 is a flow diagram of one embodiment of a gateway function for performing a call to/receive terminal device over a PSTN network. Figure 8 is a flow diagram of one embodiment of a gateway function for performing a call to another IP telephony device over an IP network.
【主要元件符號說明】 10、20、30 ··電話系統 12、22、32 :電話閘道器 122 :定位單元 124 :認證單元 126 :延伸功能單元 13 : IP網路 24 : PLMN 網路 361 :對應表 11、15、31 : IP電話裝置 121 : PSTN 介面 123 :轉碼單元 125 ··通話拒絕處理單元 127 ·· IP 介面 14 : PSTN 網路 36 :定位伺服器[Main component symbol description] 10, 20, 30 · · Telephone system 12, 22, 32: telephone gateway 122: positioning unit 124: authentication unit 126: extension function unit 13: IP network 24: PLMN network 361: Correspondence Tables 11, 15, 31: IP Telephone Device 121: PSTN Interface 123: Transcoding Unit 125 · Call Rejection Processing Unit 127 · IP Interface 14: PSTN Network 36: Location Server
50〜56 :執行接收PSTN網路來話之閘道功能之一實施 例流程 60-66:執行接收IP網路來話之閘道功能之一實施例流 程 70〜74 :執行經由PSTN網路發話至一受話端裝置之閘 道功能之一實施例流程 80〜84 :執行經由ip網路發話至另一 ιρ電話襞置之閘 道功能之一實施例流程 2050~56: One of the functions of the gateway function for receiving the incoming PSTN network. Flows 60-66: Performing a gateway function for receiving an incoming IP network. Embodiments 70 to 74: Executing a call via the PSTN network One of the gateway functions of a terminating device is shown in the flow 80 to 84: one of the gateway functions for performing a call to the other device via the IP network.