CN1180594C - Authentication and Accounting Method in Internet Personal Number Service - Google Patents
Authentication and Accounting Method in Internet Personal Number Service Download PDFInfo
- Publication number
- CN1180594C CN1180594C CNB011416475A CN01141647A CN1180594C CN 1180594 C CN1180594 C CN 1180594C CN B011416475 A CNB011416475 A CN B011416475A CN 01141647 A CN01141647 A CN 01141647A CN 1180594 C CN1180594 C CN 1180594C
- Authority
- CN
- China
- Prior art keywords
- server
- call
- personal number
- number service
- user
- Prior art date
- Legal status (The legal status 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 status listed.)
- Expired - Fee Related
Links
Images
Landscapes
- Data Exchanges In Wide-Area Networks (AREA)
- Telephonic Communication Services (AREA)
Abstract
本发明涉及一种互联网个人号码业务(ONLY:One Number Link You)中的认证与计费方法,用于实现ONLY业务中的注册与注销、维持心跳连接、计费与认证等多种功能,保证数据报文的可靠传输。是采用传输控制协议(TCP)在互联网个人号码业务(ONLY)服务器与用户服务器(US)间传输登录请求/注销及应答报文、心跳及回应心跳应答报文、呼叫请求及应答报文、ONLY服务器通知及应答报文和计费请求及应答报文,实现ONLY服务器与US间的多种交互,满足在ONLY业务中,被叫用户只需申请一个ONLY号码,其它用户就可使用该ONLY号码随时随地地联系到他。
The invention relates to an authentication and billing method in an Internet personal number service (ONLY: One Number Link You), which is used to realize multiple functions such as registration and cancellation, heartbeat connection maintenance, billing and authentication in the ONLY service, and ensures Reliable transmission of datagrams. It uses Transmission Control Protocol (TCP) to transmit login request/logout and response messages, heartbeat and response heartbeat response messages, call request and response messages, ONLY The server notification and response message and the billing request and response message realize multiple interactions between the ONLY server and the US, satisfying that in the ONLY service, the called user only needs to apply for an ONLY number, and other users can use the ONLY number Reach him anytime, anywhere.
Description
技术领域technical field
本发明涉及IP(国际互联网协议:Internet protocol)通信技术领域,更确切地说是涉及一种新的互联网个人号码业务(ONLY:One Number Link You)中的认证与计费方法,可以用于ONLY业务等IP通信新业务中。The present invention relates to the field of IP (Internet Protocol: Internet protocol) communication technology, and more precisely relates to a new authentication and billing method in the Internet personal number service (ONLY: One Number Link You), which can be used in ONLY business and other new IP communication services.
背景技术Background technique
随着国际互联网的发展,互联网用户越来越迫切地需要有一种能随时随地相互交流和获取信息的便捷手段,ONLY业务正是为了满足用户的这一需求,在融合传统电信技术和IP技术的基础上,所开发的一种创新性业务。ONLY业务的核心构思是给每个用户分配一个ONLY号码,不管他是电话用户还是PC用户,也不管此用户是否正在上网,通过ONLY系统和使用ONLY号码就可将呼叫与该ONLY用户的固定电话(办公点电话、家庭电话)、移动电话(手机)、呼机、PC机等连接起来,即实现phone to phone、phone to PC、PC to phone、Pc to PC四种业务。With the development of the Internet, Internet users are increasingly demanding a convenient means of communicating with each other and obtaining information anytime and anywhere. The ONLY service is designed to meet the needs of users by integrating traditional telecommunications technology and IP technology. An innovative business developed on the basis of The core idea of the ONLY service is to assign an ONLY number to each user, regardless of whether he is a telephone user or a PC user, and regardless of whether the user is surfing the Internet, through the ONLY system and using the ONLY number, the call can be made to the fixed line of the ONLY user. (office phone, home phone), mobile phone (mobile phone), pager, PC, etc. are connected to realize four services: phone to phone, phone to PC, PC to phone, and PC to PC.
ONLY业务解决的是PC用户、普通电话用户互通时的号码问题、计费问题、多个电话号码的映射问题及用户移动等问题。使用ONLY业务,用户只需要申请一个ONLY号码(一种虚拟号码,如一特服号码166再加上包括区号的8位数字××××××××),此后无论该用户走到哪里,其他用户都可以通过使用电话机、PC机等设备并通过使用该ONLY号码的手段联系到他。ONLY用户接收信息的手段可以根据用户自己的设定,以电话、PC的方式与主叫用户建立实时联系,也可以以语音邮箱的方式收听留言。The ONLY service solves the number problems, billing problems, mapping problems of multiple phone numbers, and user mobility problems when PC users and ordinary phone users communicate with each other. To use the ONLY service, the user only needs to apply for an ONLY number (a virtual number, such as a special service number 166 plus an 8-digit number ×××××××× including the area code), and no matter where the user goes, other Users can use the ONLY number to contact him by using equipment such as telephones and PCs. The method for ONLY users to receive information can be based on the user's own settings, establish real-time contact with the calling user by telephone or PC, or listen to the message by voice mailbox.
实现ONLY业务,需要设置一ONLY服务器(ONLY Server)和一用户服务器(User Server,可缩简为US),ONLY服务器用于完成所有业务用户的接续控制,不管是电话用户还是PC用户,只要拨打了被叫用户的ONLY号码,该呼叫就将先接续到ONLY服务器上,再由ONLY服务器进行后续的接续操作,以确保PC用户与Phone用户的统一管理;用户服务器(US)负责进行呼叫的策略控制,策略控制可以由用户定制(如遇忙转移的规则),并保存在ONLY数据库中。有ONLY呼叫到来时,ONLY服务器向用户服务器查询,用户服务器通过访问数据库,获得该用户预先定制的呼叫路径,再转移到相应的通话设备上。若是呼叫到普通电话或者移动电话上,则ONLY服务器向被叫号码所在地的IP电话网关(GW)发起呼叫;若是呼叫到PC客户端,则ONLY服务器直接向被叫用户端发起呼叫;若是需要留言,则ONLY服务器将呼叫转移到用户的语音信箱上。To realize ONLY business, it is necessary to set up an ONLY server (ONLY Server) and a user server (User Server, which can be shortened to US). The ONLY server is used to complete the connection control of all business users. Once the ONLY number of the called user is obtained, the call will be connected to the ONLY server first, and then the ONLY server will perform subsequent connection operations to ensure the unified management of PC users and Phone users; the user server (US) is responsible for the calling strategy Control, policy control can be customized by the user (for example, rules for transfer in case of busy), and stored in the ONLY database. When an ONLY call comes, the ONLY server queries the user server, and the user server obtains the user's pre-customized call path by accessing the database, and then transfers it to the corresponding call device. If the call is made to an ordinary phone or a mobile phone, the ONLY server initiates a call to the IP telephony gateway (GW) where the called number is located; if the call is made to a PC client, the ONLY server initiates a call directly to the called user end; , the ONLY server transfers the call to the user's voice mailbox.
图1中示出实现ONLY业务的组网结构及呼叫流程,主叫方用户呼叫ONLY号码,所有呼叫ONLY号码的呼叫会经网关(GW)102或103全部路由到ONLY服务器104上,ONLY服务器104向用户服务器(US)105发请求,用户服务器(US)105查询数据库,根据被叫用户当前状态与注册数据获取当前应该接续的实际电话号码或者IP地址,并返回给ONLY服务器104,ONLY服务器104在网守(GK)101的支持下经网关(GW)102或103、公众电话网(PSTN)109或123向被叫用户的实际电话号码或者直接向IP地址发起呼叫。用户服务器(US)105向ONLY服务器104返回的是根据被叫用户预先定制的一个或多个电话号码、IP地址。Shown in Fig. 1 is to realize the networking structure and call flow of ONLY business, the calling party user calls the ONLY number, and the call of all calling ONLY numbers can be all routed on the
认证与计费是ONLY业务中一个很重要的功能部分,发生在ONLY服务器与用户服务器(US)之间。当前有关认证与计费的国际标准协议有RFC2138、RFC2139,现有的远程拨号接入服务认证协议(RADIUS:Remote Authentication Dial inUser Sevice)主要用于满足接入和传统IP通信业务中AAA(是验证,授权和记账功能的简称:Authentication,Authorization and Accouhting)功能的实现,但由于该协议是基于用户数据报协议(UDP:user datagram protocol)进行数据报文传输,虽有实现简单的优点,但不能保证数据报文传输的可靠性,而且无法实现向服务器进行登记(注册)与注销、维持服务器与客户端之间心跳等多种功能,因而无法满足ONLY业务的需要,即不能满足ONLY业务多功能的认证与计费要求。Authentication and billing is a very important functional part of the ONLY service, which occurs between the ONLY server and the user server (US). The current international standard protocols for authentication and billing include RFC2138 and RFC2139. The existing RADIUS: Remote Authentication Dial inUser Service is mainly used to meet the requirements of AAA (authentication authentication) in access and traditional IP communication services. , the abbreviation of authorization and accounting function: Authentication, Authorization and Accouhting) function realization, but because the protocol is based on the user datagram protocol (UDP: user datagram protocol) for data message transmission, although it has the advantage of simple implementation, but The reliability of data message transmission cannot be guaranteed, and various functions such as registration (registration) and logout to the server, and heartbeat between the server and the client cannot be realized, so it cannot meet the needs of ONLY business, that is, it cannot meet the needs of ONLY business. Authentication and accounting requirements for the function.
发明内容Contents of the invention
本发明的目的是为了实现ONLY业务中的多功能认证与计费要求,而设计一种互联网个人号码业务(ONLY)中的认证与计费方法,可满足ONLY业务中所需要的注册、登记或注销、维持心跳连接、计费与认证等的功能,保证数据报文的可靠性传输。The purpose of the present invention is to design an authentication and billing method in the Internet personal number service (ONLY) in order to realize the multi-functional authentication and billing requirements in the ONLY business, which can satisfy the required registration, registration or billing in the ONLY business. Functions such as logout, maintaining heartbeat connection, billing and authentication, etc., ensure the reliable transmission of data packets.
本发明的互联网个人号码业务(ONLY)中的认证与计费方法,是采用传输控制协议(TCP)在互联网个人号码业务(ONLY)服务器与用户服务器间传输登录请求/注销及应答报文、心跳及回应心跳应答报文、呼叫请求及应答报文、互联网个人号码业务(ONLY)服务器通知及应答报文和计费请求及应答报文进行的。The authentication and billing method in the Internet personal number service (ONLY) of the present invention is to use the transmission control protocol (TCP) to transmit login request/logout and response message, heartbeat between the Internet personal number service (ONLY) server and the user server. and responding to heartbeat response messages, call request and response messages, Internet personal number service (ONLY) server notification and response messages, and charging request and response messages.
实现本发明目的的技术方案是这样的:一种互联网个人号码业务中的认证与计费方法,其特征在于包括以下步骤:The technical solution for realizing the object of the present invention is as follows: an authentication and charging method in Internet personal number service, which is characterized in that it includes the following steps:
A.互联网个人号码业务服务器与用户服务器间建立起传输控制协议连接后,互联网个人号码业务服务器向用户服务器发送登录请求报文,用户服务器判断登录信息合法且系统不忙时向互联网个人号码业务服务器发送回应登录应答报文,用户服务器在判断登录信息不合法或系统忙时向互联网个人号码业务服务器发送登录拒绝的应答报文;A. After the transmission control protocol connection is established between the Internet personal number service server and the user server, the Internet personal number service server sends a login request message to the user server. When the user server judges that the login information is legal and the system is not busy, the Internet personal number service server Sending a response login response message, the user server sends a login rejection response message to the Internet personal number service server when judging that the login information is illegal or the system is busy;
B.互联网个人号码业务服务器向用户服务器登录成功后,互联网个人号码业务服务器启动心跳定时器开始计时,在心跳时间间隔内,互联网个人号码业务服务器收到用户服务器的任何回应报文时,复位心跳定时器,和在心跳定时器的计时时间达到心跳时间间隔后,互联网个人号码业务服务器没有收到用户服务器的任何回应报文时,向用户服务器发送心跳报文,并由用户服务器向互联网个人号码业务服务器发送回应心跳应答报文;B. After the Internet personal number service server logs in to the user server successfully, the Internet personal number service server starts the heartbeat timer to start counting, and within the heartbeat time interval, when the Internet personal number service server receives any response message from the user server, resets the heartbeat timer, and after the heartbeat timer time reaches the heartbeat time interval, when the Internet personal number service server does not receive any response message from the user server, it sends a heartbeat message to the user server, and the user server sends a message to the Internet personal number The business server sends a response heartbeat response message;
C.互联网个人号码业务服务器接收到来自网关的呼叫请求时,向用户服务器发送呼叫请求报文,用户服务器在判断呼叫请求信息合法且系统不忙时向互联网个人号码业务服务器发送回应呼叫应答报文,用户服务器在判断呼叫请求信息不合法或系统忙时向互联网个人号码业务服务器发送呼叫拒绝的应答报文;C. When the Internet personal number service server receives the call request from the gateway, it sends a call request message to the user server, and the user server sends a response call response message to the Internet personal number service server when it judges that the call request information is legal and the system is not busy , when the user server judges that the call request information is illegal or the system is busy, it sends a call rejection response message to the Internet personal number service server;
D.互联网个人号码业务服务器接收到来自用户服务器的回应呼叫应答报文后,互联网个人号码业务服务器直接向被叫用户发起呼叫,在呼叫被叫个人计算机不成功的情况下,互联网个人号码业务服务器向用户服务器发送互联网个人号码业务服务器通知报文,再顺序由用户服务器向被叫个人计算机发出通知信息、被叫个人计算机向用户服务器发出通知回应信息,和由用户服务器向互联网个人号码业务服务器发送通知应答报文;D. After the Internet personal number service server receives the response call response message from the user server, the Internet personal number service server directly initiates a call to the called user. If the call to the called personal computer is unsuccessful, the Internet personal number service server Send an Internet personal number service server notification message to the user server, and then the user server sends a notification message to the called personal computer, the called personal computer sends a notification response message to the user server, and the user server sends a notification message to the Internet personal number service server. notification response message;
E.呼叫停止时,由互联网个人号码业务服务器向用户服务器发送计费请求报文,供用户服务器生成计费话单,用户服务器接收到计费请求报文,向互联网个人号码业务服务器发送计费应答报文,供互联网个人号码业务服务器删除对应的计费请求报文;E. When the call stops, the Internet personal number service server sends a billing request message to the user server for the user server to generate a billing bill, and the user server receives the billing request message and sends the billing request message to the Internet personal number service server A response message for the Internet personal number service server to delete the corresponding charging request message;
F.互联网个人号码业务服务器停止运行时,向用户服务器发送注销请求报文,用户服务器不对接收到的注销请求报文作出响应。F. When the Internet personal number service server stops running, it sends a logout request message to the user server, and the user server does not respond to the received logout request message.
所述步骤A中的登录请求报文中至少包括有互联网个人号码业务服务器的标识号和密码;所述的回应登录应答报文中至少包括有心跳时间间隔及最大重试次数,所述登录拒绝的应答报文中至少包括有登录失败的原因信息。The login request message in the step A includes at least the identification number and password of the Internet personal number service server; the response login response message includes at least the heartbeat time interval and the maximum number of retries, and the login rejection The response message at least includes information about the reason for the login failure.
所述步骤B中,任何回应报文包括任何数据报文及回应心跳应答报文。In the step B, any response message includes any data message and heartbeat response message.
所述步骤C中,呼叫请求报文中至少包括有主叫方和被叫方的号码信息;所述的回应呼叫应答报文至少包括有被叫方预先定制的全部被叫号码;所述的呼叫拒绝的应答报文至少包括有呼叫失败的原因信息。In the step C, the call request message includes at least the number information of the calling party and the called party; the response call response message includes at least all called numbers pre-customized by the called party; the The response message of call rejection includes at least the reason information of call failure.
所述步骤E中,计费请求报文中至少包括有计费标识,是根据呼叫标识生成的,计费标识绝对唯一且可打印。In the step E, the charging request message at least includes a charging ID, which is generated according to the calling ID, and the charging ID is absolutely unique and printable.
所述的根据呼叫标识生成计费标识,进一步包括:The described generation of charging identification according to the call identification further includes:
a.将计费标识设置成由32个可打印的字符组成,计费标识的每一个字符用4个二进制位表示;a. Set the charging identification to be composed of 32 printable characters, and each character of the charging identification is represented by 4 binary digits;
b.取由16个字符组成的呼叫标识,呼叫标识的每一个字符用8个二进制位表示;b. Take the call identification composed of 16 characters, and each character of the call identification is represented by 8 binary bits;
c.让每一个呼叫标识字符与两个计费标识字符对应,用一个呼叫标识字符的8个二进制位中的高4位对应表示一个计费标识字符的4个二进制位,用该呼叫标识字符的8个二进制位中的低4位对应表示另一个计费标识字符的4个二进制位。c. Let each call identification character correspond to two billing identification characters, use the high 4 bits in the 8 binary bits of a call identification character to correspond to represent 4 binary positions of a charging identification character, use this call identification character The lower 4 bits of the 8 binary bits correspond to the 4 binary bits representing another charging identification character.
本发明的多功能的认证与计费方法,参考了有关认证与计费的国际标准协议RFC2138、RFC2139,报文的传输采用传输控制协议(TCP:Transfer ControlProtocol),满足了ONLY业务中所需要的注册、注销、维持心跳连接、计费与认证的功能,保证了数据报文的可靠性传输。The multifunctional authentication and billing method of the present invention refers to the international standard protocols RFC2138 and RFC2139 about authentication and billing, and the transmission of the message adopts the Transmission Control Protocol (TCP: Transfer Control Protocol), which meets the requirements of ONLY business. The functions of registration, logout, maintaining heartbeat connection, billing and authentication ensure the reliable transmission of data packets.
附图说明Description of drawings
图1是实施ONLY业务的一种ONLY业务组网结构示意图。FIG. 1 is a schematic diagram of an ONLY service network structure for implementing the ONLY service.
图2是利用图1所示组网结构实现ONLY业务的流程示意图。FIG. 2 is a schematic flow diagram of realizing the ONLY service by using the networking structure shown in FIG. 1 .
图3是ONLY服务器与用户服务器之间的TCP连接流程示意图。FIG. 3 is a schematic diagram of a TCP connection flow between the ONLY server and the user server.
具体实施方式Detailed ways
参见图1,从原则上讲,实现ONLY业务与具体的网络环境无关,即可在不同的网络下实现,但为了能最大限度地利用目前已有的IP网关功能,可采用如图1所示的组网结构(ONLY系统组网结构之一),在Internet上实现ONLY业务,实施本发明的新的多功能的认证与计费方法。图中各功能构件的作用是:See Figure 1. In principle, the ONLY service has nothing to do with the specific network environment, and can be implemented under different networks. However, in order to maximize the use of the existing IP gateway functions, it can be used as shown in Figure 1. The network structure of the ONLY system (one of the network structures of the ONLY system), realizes the ONLY business on the Internet, and implements the new multifunctional authentication and charging method of the present invention. The function of each functional component in the figure is:
网关(GW:Gateway)102、103,完成公众电话交换网(PSTN)与国际互联网(IP)之间信令和语音的转换;Gateways (GW: Gateway) 102, 103 complete the conversion of signaling and voice between the public switched telephone network (PSTN) and the Internet (IP);
网守(GK:Gatekeeper)101,完成接入控制、路由查找、带宽控制等功能,主要完成根据电话号码查询到相应的被叫的GW;Gatekeeper (GK: Gatekeeper) 101 completes functions such as access control, routing search, bandwidth control, etc., and mainly completes querying the corresponding called GW according to the telephone number;
ONLY服务器(ONLY server)104,用于完成H·323、SIP(IP语音协议)和MGCP(媒体网关控制协议)协议之间的转换,ONLY server与GW之间一般采用H·323协议,ONLY server与IVR MS、VoiceMsg MS、Resident GW、Fax S&F、PCC之间采用SIP或者MGCP协议,ONLY server同时负责与User server进行交互完成认证与计费功能,ONLY server完成IP网络中呼叫控制的功能,功能相当于PSTN网络中的交换机,只不过位于IP网络中,采用的技术都与IP相关,ONLYserver仅处理信令,不处理语音媒体流;ONLY server (ONLY server) 104 is used to complete the conversion between H.323, SIP (Voice over IP protocol) and MGCP (Media Gateway Control Protocol) protocols. H.323 protocol is generally adopted between ONLY server and GW, and ONLY server It adopts SIP or MGCP protocol with IVR MS, VoiceMsg MS, Resident GW, Fax S&F, and PCC. The ONLY server is also responsible for interacting with the User server to complete the authentication and billing functions. The ONLY server completes the function of call control in the IP network. It is equivalent to the switch in the PSTN network, but it is located in the IP network, and the technologies used are all related to IP. ONLYserver only processes signaling and does not process voice media streams;
用户服务器(User Service)105,接收ONLY server 104的请求,完成认证和计费功能,包括用户信息登记、查询、修改、删除等;User server (User Service) 105, receives the request of
目录服务器(Index Server)106,是一个数据库系统,完成用户信息的保存;Directory server (Index Server) 106 is a database system, which completes the preservation of user information;
Web服务器(Web Server)107,给用户提供一种可以通过Web进行周户信息登记、查询、修改、删除街道等的方法;Web server (Web Server) 107, provides a kind of method that can carry out weekly household information registration, inquiry, modification, deletion street etc. by Web to the user;
交互式语音应答媒体服务器(IVR MSI:nteractive Voice Response MediaServer)114,能够接收用户的按键输入与语音输入,根据不同的应用做出不同的响应,如完成电话银行功能;Interactive Voice Response Media Server (IVR MSI: interactive Voice Response MediaServer) 114, can receive the user's key input and voice input, and make different responses according to different applications, such as completing the telephone banking function;
语音信箱媒体服务器(VoiceMsg MS:Voice Mes sage Media Server)115,能够完成IP网络上的语音信箱功能,108是语音存储服务器(Content Server),为114、115提供语音存取服务;Voice Mail Media Server (VoiceMsg MS: Voice Message Media Server) 115 can complete the voice mail function on the IP network, and 108 is a voice storage server (Content Server), which provides voice access services for 114 and 115;
驻体网关(Resident GW:Resident Gateway)117,这种网关的特点是能够直接接电话线,连接普通电话,不需要交换机等设备;Resident Gateway (Resident GW: Resident Gateway) 117, the feature of this gateway is that it can directly connect to the telephone line and connect to ordinary telephones, without the need for switches and other equipment;
存储转发传真媒体服务器(Fax S&F:Fax Store and Forward Media Server)116,能够接收从GW或者其它IP终端来的传真数据,并将它以适当的方式,如E-mail、普通传真等,转发出去;Store and forward fax media server (Fax S&F: Fax Store and Forward Media Server) 116, which can receive fax data from GW or other IP terminals, and forward it in an appropriate way, such as E-mail, ordinary fax, etc. ;
PC客户端(PCC:PC Client)118,是运行在PC机上的一个软件,是实现PC客户端语音通讯的软件,能够与其它设备进行语音通话。The PC client (PCC: PC Client) 118 is a software running on the PC, which is the software for realizing the voice communication of the PC client, and can carry out voice communication with other devices.
图中示出的电话机(Telephone)110、119,传真机(Fax)111、120,便携式电脑(Laptop computer)113、122及调制解调器(Modem)112、121均为用户端设备。The telephones (Telephone) 110, 119 shown in the figure, the facsimile machines (Fax) 111, 120, the portable computers (Laptop computer) 113, 122 and the modem (Modem) 112, 121 are all client equipments.
参见图2,并结合参见图1,图中示出该ONLY业务网的一种基本流程。Referring to FIG. 2 and referring to FIG. 1 together, the figure shows a basic flow of the ONLY service network.
(1)主叫用户拿起电话,拨打被叫ONLY用户的ONLY号码,如16612345678,PSTN交换机接收到该ONLY号码16612345678后,根据该ONLY号码用户预先设定的路由,将此电话接续到GW上;(1) The calling user picks up the phone and dials the ONLY number of the called ONLY user, such as 16612345678. After the PSTN switch receives the ONLY number 16612345678, it connects the call to the GW according to the route preset by the ONLY number user ;
(2)GW收到此呼叫,将16612345678号码送给GK,请求路由解析;(2) GW receives the call, sends the number 16612345678 to GK, and requests route analysis;
(3)GK向GW返回ONLY Server的IP地址;(3) GK returns the IP address of ONLY Server to GW;
(4)GW向ONLY Server发起呼叫;(4) GW initiates a call to ONLY Server;
(5)ONLY Server收到呼叫,向US发送呼叫请求报文,即将16612345678ONLY号码送给US进行号码变换;(5) ONLY Server receives the call and sends a call request message to the US, that is, the 16612345678ONLY number is sent to the US for number change;
(6)US将虚拟的ONLY号码变换成实际存在的可以联系到被叫用户的号码,假设此用户在定制时首先将16612345678对应到他的PC机,则US返回ONLY Server的回应呼叫应答报文中含有用户PC机的IP地址和端口号;(6) The US transforms the virtual ONLY number into an actual number that can be used to contact the called user. Assuming that the user first corresponds 16612345678 to his PC when ordering, the US returns the ONLY Server's response call response message Contains the IP address and port number of the user's PC;
(7)ONLY Server判断返回的号码为PCC后,向PCC发起呼叫;(7) After the ONLY Server judges that the returned number is PCC, it initiates a call to PCC;
(8)若PCC此时恰在防火墙内,则本次呼叫失败;(8) If the PCC is inside the firewall at this time, the call fails;
(9)ONLY SERVER向US发出一个通知报文;(9) ONLY SERVER sends a notification message to the US;
(10)US将根据此消息及用户的设定向PCC发出通知,发送相应的消息;(10) US will send a notification to PCC according to the message and the user's settings, and send the corresponding message;
(11)PCC向US发送通知回应;(11) PCC sends notification response to US;
(12)US根据PCC用户的通知回应向ONLY Server发出通知回应报文(应答消息),假设此时用户的响应是要求呼叫他的临时手机电话01082881234;(12) The US sends a notification response message (response message) to the ONLY Server according to the PCC user's notification response, assuming that the user's response at this time is to call his temporary mobile phone 01082881234;
(13)ONLY Server判断返回的号码为普通手机电话号码后,将此号码送给GK进行路由解析;(13) After the ONLY Server judges that the returned number is an ordinary mobile phone number, it sends the number to GK for routing analysis;
(14)GK进行路由解析,并向ONLY Server返回路由解析结果,是一个北京的GW的手机号;(14) GK performs routing analysis, and returns the routing analysis result to ONLY Server, which is a mobile phone number of GW in Beijing;
(15)ONLY Server向北京的GW发起呼叫,GW再向PSTN网络呼出,使号码为01082881234的被叫用户电话开始振铃,网关连接建立;(15) ONLY Server initiates a call to the GW in Beijing, and the GW calls out to the PSTN network again, so that the called user's phone with the number 01082881234 starts ringing, and the gateway connection is established;
(16)当被叫用户摘机后,话路建立,双方可以进行通话;(16) After the called user picks up the phone, the conversation path is established, and both parties can talk;
(17)双方通话过程;(17) The conversation between the two parties;
(18)当被叫挂机时,话路断开、网关撤线;(18) When the called party hangs up, the voice channel is disconnected and the gateway withdraws the line;
(19)此时ONLY SERVER向US发送一个计费请求报文,在生成计费报文时生成计费标识(ID);(19) At this time, ONLY SERVER sends a billing request message to the US, and generates a billing identification (ID) when generating the billing message;
(20)US向ONLY SERVER发送计费回应报文;(20) US sends a billing response message to ONLY SERVER;
(21)主叫挂机。(21) The caller hangs up.
在上述过程中,共涉及三种报文:ONLY SERVER与US间的呼叫请求及应答报文;ONLY SERVER、US与PCC间的通知及应答报文;和ONLY SERVER与US间的计费请求及应答报文。报文的传输采用TCP协议。In the above process, three kinds of messages are involved: call request and response message between ONLY SERVER and US; notification and response message between ONLY SERVER, US and PCC; and billing request and response message between ONLY SERVER and US. reply message. The transmission of the message adopts the TCP protocol.
关于呼叫请求及应答报文。About call request and reply message.
ONLY Server向User Server发出呼叫请求,请求信息中包含了主、被叫号码,User Server如果认为该呼叫请求信息合法,并且无其它异常情况(如系统忙),应该返回应答(Ack)信息,应答信息含有根据被叫号码翻译的列表,该列表中顺序列出被叫在申请ONLY业务时定制的呼叫遇忙转移路由,如固定电话1的电话号码、固定电话2的电话号码…移动电话号码…呼机号码…PC机的IP地址和端口号等;User Server如果认为该呼叫请求信息不合法,或者有其它异常情况(如系统忙),则向ONLY Server返回拒绝信息(Rej),拒绝ONLY Server的呼叫请求,该返回拒绝信息(Rej)中应包括呼叫请求失败的原因。The ONLY Server sends a call request to the User Server, and the request information contains the calling and called numbers. If the User Server thinks that the call request information is legal and there are no other abnormal conditions (such as the system is busy), it should return an Ack message. The information contains a list translated according to the called number. The list lists the call forwarding routes customized by the called party when applying for the ONLY service, such as the phone number of fixed
关于通知及应答报文。Regarding notification and response messages.
当ONLY Server向User Server发出呼叫请求并收到User Server相应的呼叫请求通过应答(Ack)报文后,ONLY Server将直接对被叫用户(包括电话用户或PC用户)进行呼叫,在向PC用户呼叫不成功的情况下,如PC用户的防火墙阻止了ONLY Server的信令呼入时,此时ONLY Server应向User Server发出一个通知消息,User Server将根据此消息及被叫用户的预先设定向User ServerClient发出相应的消息,并根据被叫用户的响应向ONLY Server发出应答消息。When the ONLY Server sends a call request to the User Server and receives the corresponding call request from the User Server through the response (Ack) message, the ONLY Server will directly make a call to the called user (including the telephone user or PC user), and then to the PC user If the call is unsuccessful, if the firewall of the PC user blocks the ONLY Server's incoming signaling, then the ONLY Server should send a notification message to the User Server, and the User Server will use this message and the preset settings of the called user Send a corresponding message to User ServerClient, and send a reply message to ONLY Server according to the response of the called user.
关于计费请求及应答报文。Regarding accounting request and response messages.
当呼叫停止时,ONLY Server向User Server发送计费请求报文,供UserServer生成计费话单,该计费请求报文中含有计费标识(ID),该计费ID是利用网关的呼叫ID生成的唯一的可打印的计费ID。呼叫ID是根据H323协议产生的,由16个不一定可以打印的字符组成,本发明的计费ID根据呼叫ID的16个字符产生32个可以打印的计费ID字符,用每个呼叫ID的1个字符对应两个计费ID字符,其对应关系是:每个呼叫ID的字符由8个二进制位表示,用其高4位对应一个计费ID字符,用其低4位对应一个计费ID字符,两个计费ID的字符共4个二进制位表示的范围从0至15,刚好能与字符0-7、A-F对应建立起一一对应的关系。User Server收到ONLYServer发来的计费请求报文后,会向ONLY Server回应计费报文,供ONLYServer删除对应的计费请求报文。When the call stops, the ONLY Server sends a billing request message to the User Server for the User Server to generate a billing bill. The billing request message contains a billing identification (ID), and the billing ID is the call ID of the gateway Generate a unique printable Billing ID. The call ID is generated according to the H323 protocol, and is composed of 16 characters that may not be printed. The billing ID of the present invention produces 32 billable ID characters that can be printed according to the 16 characters of the call ID. One character corresponds to two billing ID characters, and the corresponding relationship is: each call ID character is represented by 8 binary bits, its high 4 bits correspond to a billing ID character, and its low 4 bits correspond to a billing ID character. ID characters, the characters of the two billing IDs have a total of 4 binary digits ranging from 0 to 15, which can just establish a one-to-one correspondence with the characters 0-7 and A-F. After User Server receives the accounting request message from ONLYServer, it will respond the accounting message to ONLY Server for ONLYServer to delete the corresponding accounting request message.
参见图3,图中示出ONLY server与User server进行交互完成TCP连接的流程。Referring to Figure 3, the figure shows the process of the ONLY server interacting with the User server to complete the TCP connection.
(1)当ONLY SERVER与US间建立起TCP连接后,ONLY SERVER向US发送登录(注册)请求报文;(1) When a TCP connection is established between ONLY SERVER and US, ONLY SERVER sends a login (registration) request message to US;
(2)US根据用户标识(ID)和密码进行合法性判断,并返回相应的应答报文;(2) US judges the legality according to the user identification (ID) and password, and returns the corresponding response message;
(3)ONLY SERVER注册成功后,向US发送心跳报文;(3) After the ONLY SERVER registers successfully, it sends a heartbeat message to the US;
(4)US向ONLY SERVER回应心跳应答报文;(4) US responds to ONLY SERVER with a heartbeat response message;
(5)ONLY SERVER停止运行时,向US发送注销请求报文。(5) When the ONLY SERVER stops running, it sends a logout request message to the US.
上述报文的传输采用TCP协议。The transmission of the above message adopts the TCP protocol.
在ONLY Server启动时,ONLY Server向User Server发出登录请求,请求信息中包含了ONLY Server的标识(ID)号和密码;User Server如果认为该登录请求信息合法,并且无其它异常情况,如系统不忙时,应该返回登录通过的应答报文,其中含有心跳时间间隔及最大重试次数,系统进入心跳信号流程和呼叫流程(步骤202);User Server如果认为该登录请求信息不合法,或者有其它异常情况,如系统忙,则向ONLY Server返回拒绝登录的应答报文,拒绝ONLYServer的登录,该应答报文中应同时提供登录请求失败的原因。When the ONLY Server starts, the ONLY Server sends a login request to the User Server, and the request information contains the identification (ID) number and password of the ONLY Server; When busy, should return the response message that login passes, wherein contain heartbeat time interval and maximum number of retries, system enters heartbeat signal process and call process (step 202); If User Server thinks that this login request information is illegal, or has other In abnormal circumstances, such as the system is busy, a response message of denial of login will be returned to the ONLY Server, and the login of the ONLYServer will be rejected. The response message should also provide the reason for the failure of the login request.
ONLY Server应在ONLY Server与User Server间的通信链路空闲一定时间间隔后,发送心跳报文。系统进入心跳信号流程后,启动心跳定时器开始计时,心跳时间间隔及最大重试次数在User Server向ONLY Server提供的登录请求应答报文中指定给出,如缺省值为10秒发送一次,最大重试次数为5,在心跳定时器开始计时至10秒内,若ONLY Server没有收到来自User Server的任何消息,则发送心跳报文,发送5次仍没有收到应答则认为User Server有故障,在心跳定时器开始计时至10秒内,若ONLY Server收到来自User Server的任何消息,则复位心跳定时器,重新开始计时。ONLY Server should send a heartbeat message after the communication link between ONLY Server and User Server is idle for a certain period of time. After the system enters the heartbeat signal process, start the heartbeat timer to start timing. The heartbeat time interval and the maximum number of retries are specified in the login request response message provided by the User Server to the ONLY Server. For example, the default value is sent once every 10 seconds. The maximum number of retries is 5. If the ONLY Server does not receive any message from the User Server within 10 seconds from the start of the heartbeat timer, it will send a heartbeat message. If no response is received after sending 5 times, it is considered that the User Server has Fault, within 10 seconds from the start of the heartbeat timer, if the ONLY Server receives any message from the User Server, it will reset the heartbeat timer and start timing again.
当ONLY Server停止运行时,ONLY Server向User Server发出注销请求,User Server收到该消息后应认为ONLY Server已经脱离登录状态,此时UserServer不需要再向ONLY Server发出响应信息。When the ONLY Server stops running, the ONLY Server sends a logout request to the User Server. After receiving the message, the User Server should consider that the ONLY Server has left the login state. At this time, the User Server does not need to send a response message to the ONLY Server.
本发明通过这种包括注册、注销、心跳等在内的多功能的认证与计费过程,实现了ONLY业务中ONLY Server与User Server之间的信息交互,有传输可靠、快速高效的优点。The present invention realizes the information interaction between the ONLY Server and the User Server in the ONLY service through the multifunctional authentication and billing process including registration, logout, heartbeat, etc., and has the advantages of reliable, fast and efficient transmission.
本发明的多功能的认证与计费方法,采用TCP协议作为传输协议,和使用六种类型的报文实现ONLY Server与User Server之间的多种交互,应用于ONLY业务中,具有极好的实用性。同时还可应用于IP通信新业务中。The multifunctional authentication and billing method of the present invention adopts the TCP protocol as the transmission protocol, and uses six types of messages to realize multiple interactions between the ONLY Server and the User Server, and is applied in the ONLY business, which has excellent practicality. At the same time, it can also be applied to new IP communication services.
Claims (6)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CNB011416475A CN1180594C (en) | 2001-09-29 | 2001-09-29 | Authentication and Accounting Method in Internet Personal Number Service |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CNB011416475A CN1180594C (en) | 2001-09-29 | 2001-09-29 | Authentication and Accounting Method in Internet Personal Number Service |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN1411245A CN1411245A (en) | 2003-04-16 |
| CN1180594C true CN1180594C (en) | 2004-12-15 |
Family
ID=4676302
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CNB011416475A Expired - Fee Related CN1180594C (en) | 2001-09-29 | 2001-09-29 | Authentication and Accounting Method in Internet Personal Number Service |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN1180594C (en) |
Families Citing this family (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN100344099C (en) * | 2004-03-24 | 2007-10-17 | 华为技术有限公司 | Method for realizing small window of customer end in wideband data intelligent network |
| CN105516123B (en) * | 2015-12-07 | 2019-10-25 | 贵阳朗玛信息技术股份有限公司 | The method and landing telephone service server of the networking telephone and telephone network telephone communication |
-
2001
- 2001-09-29 CN CNB011416475A patent/CN1180594C/en not_active Expired - Fee Related
Also Published As
| Publication number | Publication date |
|---|---|
| CN1411245A (en) | 2003-04-16 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN1251441C (en) | Computer network telephone system | |
| CN1170393C (en) | Method and system for realizing IP voice service in private network | |
| WO2001022670A1 (en) | Virtual second line hybrid network communication system | |
| WO2001022720A9 (en) | Method of and system for providing intelligent network control services in ip telephony | |
| EP1949649B1 (en) | Using pstn to communicate ip addresses for point-to-point text, voice, video, or data communication | |
| CN1298181C (en) | System and method for short message and instant message service intercommunication based on soft switch system | |
| CN1177450C (en) | Implementation method of "heartbeat" technology in Internet personal number service | |
| JP2005303679A (en) | IP telephone system, IP telephone apparatus and calling method | |
| CN1228941C (en) | Speech business method based on Internet | |
| CN1968327A (en) | System and method of proxy independent hunt group function in a packet based network | |
| CN1167245C (en) | A Method for Conveniently Realizing Personal Multimedia Communication Service | |
| CN1418420A (en) | Information providing system | |
| CN1190047C (en) | Method and system for realizing personal number servie of blended telephone net and IP net user service | |
| CN1298146C (en) | Method for notifying busy status to session initiating protocol network from end user | |
| CN1353902A (en) | Telecommunication gateway between private network and mobile network | |
| TWI426770B (en) | Voip gateway and mothod for establishing call using the voip gateway | |
| CN1180594C (en) | Authentication and Accounting Method in Internet Personal Number Service | |
| CN1863131A (en) | Service apparatus exchange network and exchange method | |
| CN100588213C (en) | System and method for fixed direct dial network telephone | |
| CN1820474A (en) | Shared dedicated access line (DAL) gateway routing discrimination | |
| CN1172504C (en) | Method for generating charging identification in Internet personal number service | |
| CN1115836C (en) | Indication method of network user's coming call | |
| CN1533145B (en) | A Routing Method for Call Control in IP Telephone System | |
| CN1716948A (en) | VoIP Gateway Communication Protocol | |
| KR100398350B1 (en) | Internet Telephone Numbering Method capable of calling IP Phone from PSTN Phone on IP network |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| C10 | Entry into substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| C14 | Grant of patent or utility model | ||
| GR01 | Patent grant | ||
| C17 | Cessation of patent right | ||
| CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20041215 Termination date: 20110929 |