CN103560896A - Exchanger charging method - Google Patents

Exchanger charging method Download PDF

Info

Publication number
CN103560896A
CN103560896A CN201310527740.6A CN201310527740A CN103560896A CN 103560896 A CN103560896 A CN 103560896A CN 201310527740 A CN201310527740 A CN 201310527740A CN 103560896 A CN103560896 A CN 103560896A
Authority
CN
China
Prior art keywords
accounting server
switch
module
ticket
online signal
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.)
Granted
Application number
CN201310527740.6A
Other languages
Chinese (zh)
Other versions
CN103560896B (en
Inventor
林苏蓉
黄希顺
郭淑英
胡平金
杨爱国
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
State Grid Corp of China SGCC
State Grid Fujian Electric Power Co Ltd
Information and Telecommunication Branch of State Grid Fujian Electric Power Co Ltd
Original Assignee
State Grid Corp of China SGCC
State Grid Fujian Electric Power Co Ltd
Information and Telecommunication Branch of State Grid Fujian Electric Power Co Ltd
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 State Grid Corp of China SGCC, State Grid Fujian Electric Power Co Ltd, Information and Telecommunication Branch of State Grid Fujian Electric Power Co Ltd filed Critical State Grid Corp of China SGCC
Priority to CN201310527740.6A priority Critical patent/CN103560896B/en
Publication of CN103560896A publication Critical patent/CN103560896A/en
Application granted granted Critical
Publication of CN103560896B publication Critical patent/CN103560896B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M15/00Arrangements for metering, time-control or time indication ; Metering, charging or billing arrangements for voice wireline or wireless communications, e.g. VoIP
    • H04M15/65Off-line charging system
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M15/00Arrangements for metering, time-control or time indication ; Metering, charging or billing arrangements for voice wireline or wireless communications, e.g. VoIP
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M15/00Arrangements for metering, time-control or time indication ; Metering, charging or billing arrangements for voice wireline or wireless communications, e.g. VoIP
    • H04M15/64On-line charging system [OCS]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Meter Arrangements (AREA)

Abstract

本发明公开一种交换机计费方法,包括步骤:实时接收交换机发送的电话通话信息;分析得到相应每次通话的话单,计算出相应的话费;每隔一预设时间向另一交换机计费服务器发送联机信号;侦测另一交换机计费服务器发送的联机信号,判断是否在一预设时间段内均未接收联机信号;当其中一交换机计费服务器判定在一预设时间段内未接收到联机信号时,将宕机时间点到恢复时间点之间产生的话单和相应的话费进行缓存;以及当所述其中一交换机计费服务器再次接收到另一交换机计费服务器发送的联机信号时,将缓存的话单和相应的话费同步至另一交换机计费服务器的数据库。本发明公开一种交换机计费系统及服务器。

Figure 201310527740

The invention discloses a charging method for an exchange, which comprises the steps of: receiving the telephone call information sent by the exchange in real time; analyzing and obtaining the corresponding call bill for each call, and calculating the corresponding call fee; charging the server for another exchange every preset time Send a connection signal; detect the connection signal sent by the billing server of another switch, and judge whether the connection signal is not received within a preset time period; when one of the switch billing servers determines that the connection signal is not received within a preset time period When the online signal is generated, the bill and the corresponding call fee generated between the downtime time point and the recovery time point are cached; and when one of the exchange billing servers receives the online signal sent by another exchange billing server again, Synchronize the cached bills and corresponding bills to the database of the billing server of another exchange. The invention discloses an exchange billing system and a server.

Figure 201310527740

Description

一种交换机计费方法A charging method for a switchboard

技术领域 technical field

本发明涉及数据处理领域,尤其涉及一种交换机计费方法。 The invention relates to the field of data processing, in particular to an exchange charging method.

背景技术 Background technique

现有的话单缓存器,当计费主机宕机后,话单会被缓冲在缓存器里,当计费主机正常后,可以读取缓冲在缓存器里的话单,一定程度上保证了话单数据的完整性。然而,上述现有的话单缓存器方案由于在单计费主机宕机时用户无法查到话费数据,因此只能保证数据的完整性,不能保证业务的连续性;另外,由于缓冲器的容量大小有限制,当缓冲的话单超过缓存器的容量后,超过容量的话单依然会丢失。这样话机的计费就会市区数据依据,导致计费上错误。 In the existing bill buffer, when the billing host is down, the bills will be buffered in the buffer. When the billing host is normal, the bills buffered in the buffer can be read, which ensures the call single data integrity. However, the above-mentioned existing bill buffer scheme can only guarantee the integrity of the data and cannot guarantee the continuity of the business because the user cannot find the bill data when the single billing host is down. In addition, due to the capacity of the buffer The size is limited. When the buffered bill exceeds the capacity of the buffer, the bill will still be lost if the capacity exceeds the capacity. In this way, the billing of the phone will be based on the data in the urban area, resulting in errors in billing.

发明内容 Contents of the invention

为解决上述问题,本发明的目的是提供一种交换机计费方法。 In order to solve the above problems, the object of the present invention is to provide a charging method for an exchange.

本发明采用以下方案实现:一种交换机计费方法,其特征在于:提供一交换机计费系统,该交换机计费系统包括交换机和所述交换机分别通信连接的两个交换机计费服务器,所述两个交换机计费服务器彼此通信连接,每个交换机计费服务器包括: The present invention adopts the following solutions to realize: a charging method for a switch, which is characterized in that: a charging system for a switch is provided, and the charging system for a switch includes a switch and two switch charging servers respectively connected by communication with the switch, the two Each switch charging server is connected to each other by communication, and each switch charging server includes:

数据库; database;

监控模块,用于实时接收交换机发送的电话通话信息; The monitoring module is used to receive the telephone call information sent by the exchange in real time;

分析模块,用于按照特定的话单格式对每次通话的所有电话通话信息进行分析得到相应每次通话的话单,然后根据话单所对应的汇率计算出相应的话费,以及存储所述话单和相应的话费至数据库; The analysis module is used to analyze all telephone call information of each call according to a specific call list format to obtain a corresponding call list for each call, and then calculate the corresponding call fee according to the exchange rate corresponding to the call list, and store the call list and The corresponding call charges are sent to the database;

发送模块,用于每隔一预设时间向另一交换机计费服务器发送联机信号; A sending module, configured to send a connection signal to another exchange billing server at intervals of a preset time;

侦测模块,用于侦测另一交换机计费服务器发送的联机信号判断是否在一预设时间段内均未接收到另一交换机计费服务器发送的联机信号; The detection module is used to detect the connection signal sent by the billing server of another exchange and judge whether the connection signal sent by the billing server of another exchange has not been received within a preset period of time;

缓存模块,用于当所述侦测模块判定未在一预设时间段内接收到另一交换机计费服务器发送的联机信号时,对将宕机时间点到恢复时间点之间产生的话单和相应的话费进行缓存,所述宕机时间点是首次侦测不到联机信号时的时间点,所述恢复时间点是侦测模块到再次接收到另一交换机计费服务器发送的联机信号时的时间点;以及 A cache module, used for when the detection module determines that the online signal sent by another exchange billing server is not received within a preset time period, the bills and bills generated between the downtime time point and the recovery time point The corresponding call charge is cached, the downtime time point is the time point when the online signal is not detected for the first time, and the recovery time point is the time when the detection module receives the online signal sent by another exchange billing server again point in time; and

同步模块,用于当所述侦测模块在所述恢复时间点再次接收到另一交换机计费服务器发送的联机信号时,将所述缓存模块缓存的话单和相应的话费同步至另一交换机计费服务器的数据库,并在同步完成后清空缓存模块缓存的话单和相应的话费; Synchronization module, for when the detection module receives the online signal sent by the billing server of another exchange again at the recovery time point, synchronize the bill and the corresponding call charges cached by the cache module to the accounting server of another exchange. Bill server database, and after the synchronization is completed, clear the cached bills and corresponding bills in the cache module;

所述交换机计费方法运行于所述交换机计费系统中,包括步骤: The exchange billing method is operated in the exchange billing system, comprising the steps of:

步骤S101、两个交换机计费服务器实时接收交换机发送的电话通话信息; Step S101, the billing servers of the two switches receive the call information sent by the switches in real time;

步骤S102、两个交换机计费服务器按照特定的话单格式对每次通话的所有电话通话信息进行分析得到相应每次通话的话单,然后根据话单所对应的汇率计算出相应的话费,以及存储所述话单和相应的话费至数据库; Step S102, the billing servers of the two exchanges analyze all telephone call information of each call according to a specific bill format to obtain a corresponding bill for each call, then calculate the corresponding call fee according to the exchange rate corresponding to the bill, and store the Report the call list and corresponding call charges to the database;

步骤S103、每个交换机计费服务器每隔一预设时间向另一交换机计费服务器发送联机信号; Step S103, each switch charging server sends a connection signal to another switch charging server every preset time;

步骤S104、每个交换机计费服务器侦测另一交换机计费服务器发送的联机信号,判断是否在一预设时间段内均未接收到另一交换机计费服务器发送的联机信号; Step S104, each exchange billing server detects the connection signal sent by another exchange billing server, and judges whether it has not received the connection signal sent by another exchange billing server within a preset time period;

步骤S105、当其中一交换机计费服务器判定在一预设时间段内未接收到另一交换机计费服务器发送的联机信号时,所述其中一交换机计费服务器将宕机时间点到恢复时间点之间产生的话单和相应的话费进行缓存,所述宕机时间点是首次侦测不到联机信号时的时间点,所述恢复时间点是再次接收到另一交换机计费服务器发送的联机信号时的时间点; Step S105, when one of the charging servers of the switchboard determines that the online signal sent by the charging server of another switchboard has not been received within a preset period of time, the charging server of one of the switches will go from the downtime point to the recovery time point The call bills and corresponding call charges generated between them are cached. The downtime time point is the time point when the online signal is not detected for the first time, and the recovery time point is when the online signal sent by the billing server of another exchange is received again. point in time;

步骤S106、当所述其中一交换机计费服务器在所述恢复时间点再次接收到另一交换机计费服务器发送的联机信号时,所述其中一交换机计费服务器将所述缓存的话单和相应的话费同步至另一交换机计费服务器的数据库,并在同步完成后清空缓存的话单和相应的话费。 Step S106, when the charging server of one of the switches receives the online signal sent by the charging server of another switch again at the recovery time point, the charging server of one of the switches saves the cached bill and the corresponding The call charges are synchronized to the database of the billing server of another exchange, and the cached bills and corresponding call charges are cleared after the synchronization is completed.

在本发明一实施例中,第二交换机计费服务器在t时刻宕机,此时第二发送模块停止向第一交换机计费服务器发送联机信号,并且第一侦测模块在从t时刻到q时刻这一预设(r-q)时间段内均未接收到第二发送模块发出的联机信号,则第一侦测模块确定第二交换机计费服务器宕机,通知第一缓存模块对宕机时间点t时刻到恢复时间点r时刻之间产生的话单和相应的话费进行缓存;当第一侦测模块在恢复时间点r时刻再次接收到联机信号时,通知第一同步模块将第一缓存模块缓存的话单和相应的话费同步至第二换机计费服务器的数据库,并在同步完成后清空第一缓存模块缓存的话单和相应的话费。 In an embodiment of the present invention, the charging server of the second exchange is down at time t, and the second sending module stops sending the online signal to the charging server of the first exchange at this moment, and the first detection module If the connection signal sent by the second sending module is not received within the preset (r-q) period of time, the first detection module determines that the billing server of the second switch is down, and notifies the first cache module of the downtime time point The bills and corresponding bills generated between the time t and the recovery time point r are cached; when the first detection module receives the online signal again at the recovery time point r, it notifies the first synchronization module to cache the first buffer module The bill and the corresponding call charge are synchronized to the database of the second switch charging server, and the call bill and the corresponding call charge cached by the first cache module are cleared after the synchronization is completed.

本发明通过采用两个交换机计费服务器同时接收交换机的数据,当一台交换机计费服务器出现宕机,另外一台可以正常接收数据并对外提过服务,从而保证业务的连续性;当宕机的交换机计费服务器回复正常后,正常运行的交换机计费服务器通过数据同步的方式,将宕机的交换机计费服务器在宕机时间段内没有接收的数据同步到宕机的交换机服务器,从而保证数据的完整性。 The present invention adopts two exchange billing servers to receive the data of the exchange at the same time. When one exchange billing server goes down, the other one can normally receive data and provide external services, thereby ensuring the continuity of the business; After the billing server of the switch returns to normal, the billing server of the switch that is running normally synchronizes the data that the billing server of the switch that is down during the downtime period has not received to the switch server that is down, so as to ensure Data Integrity.

附图说明 Description of drawings

图1是本发明一实施方式中一种交换机计费系统的系统框图; Fig. 1 is a system block diagram of an exchange billing system in an embodiment of the present invention;

图2是本发明一实施方式中一种交换机计费方法的执行流程图。 Fig. 2 is an execution flow chart of an exchange charging method in an embodiment of the present invention.

主要元件符号说明 Description of main component symbols

第一服务器10;第二服务器20;交换机30;第一监控模块11; The first server 10; the second server 20; the switch 30; the first monitoring module 11;

第一分析模块12;第一发送模块13;第一侦测模块14; The first analysis module 12; the first sending module 13; the first detection module 14;

第一缓存模块15;第一同步模块16;第一数据库17; The first cache module 15; the first synchronization module 16; the first database 17;

第二监控模块21;第二分析模块22;第二发送模块23; The second monitoring module 21; the second analysis module 22; the second sending module 23;

第二侦测模块24;第二缓存模块25;第二同步模块26;第二数据库27。 The second detection module 24 ; the second cache module 25 ; the second synchronization module 26 ; the second database 27 .

具体实施方式 Detailed ways

为详细说明本发明的技术内容、构造特征、所实现目的及效果,以下结合实施方式并配合附图详予说明。 In order to describe the technical content, structural features, achieved goals and effects of the present invention in detail, the following will be described in detail in conjunction with the embodiments and accompanying drawings.

请一并参阅图1,本发明先介绍该方法依赖的硬件系统,该交换机计费系统包括交换机30、与所述交换机30分别通信连接的两个交换机计费服务器,所述两个交换机计费服务器彼此通信连接,该两个交换机计费服务器分别为第一交换机计费服务器10和第二交换机计费服务器20。在一实施方式中,所述第一服务器10和第二服务器20分别通过串口连接至所述交换机的计费接口上;在另一实施方式中,所述第一服务器和第二服务器分别通过网口连接在所述交换机的计费接口上。 Please refer to Fig. 1 together, the present invention first introduces the hardware system that this method depends on, and this exchange billing system comprises exchange 30, two exchange billing servers that are respectively communicatively connected with described exchange 30, and described two exchange billing servers The servers are communicatively connected to each other, and the two switch charging servers are a first switch charging server 10 and a second switch charging server 20 respectively. In one embodiment, the first server 10 and the second server 20 are respectively connected to the charging interface of the switch through a serial port; The port is connected to the billing interface of the switch.

每个交换机计费服务器包括数据库、监控模块、分析模块、发送模块、侦测模块、缓存模块、同步模块。在本实施方式中,第一交换机计费服务器10包括第一数据库17、第一监控模块11、第一分析模块12、第一发送模块13、第一侦测模块14、第一缓存模块15、第一同步模块16。第二交换机计费服务器20包括第二数据库27、第二监控模块21、第二分析模块22、第二发送模块23、第二侦测模块24、第二缓存模块25、第二同步模块26。 Each exchange billing server includes a database, a monitoring module, an analysis module, a sending module, a detection module, a cache module and a synchronization module. In this embodiment, the first exchange billing server 10 includes a first database 17, a first monitoring module 11, a first analysis module 12, a first sending module 13, a first detection module 14, a first cache module 15, The first synchronization module 16 . The second exchange billing server 20 includes a second database 27 , a second monitoring module 21 , a second analysis module 22 , a second sending module 23 , a second detection module 24 , a second cache module 25 and a second synchronization module 26 .

所述监控模块用于实时接收交换机30发送的电话通话信息。 The monitoring module is used for receiving the telephone call information sent by the exchange 30 in real time.

所述分析模块用于按照特定的话单格式对每次通话的所有电话通话信息进行分析得到相应每次通话的话单,然后根据话单所对应的汇率计算出相应的话费,以及存储所述话单和相应的话费至数据库。 The analysis module is used to analyze all telephone call information of each call according to a specific bill format to obtain a corresponding bill for each call, and then calculate the corresponding call fee according to the exchange rate corresponding to the bill, and store the bill and the corresponding call charges to the database.

所述发送模块用于每隔一预设时间向另一交换机计费服务器发送联机信号。 The sending module is used for sending a connection signal to another exchange charging server every preset time.

所述侦测模块用于侦测另一交换机计费服务器发送的联机信号判断是否在一预设时间段内均未接收到另一交换机计费服务器发送的联机信号。 The detection module is used to detect the connection signal sent by the billing server of another exchange to judge whether the connection signal sent by the billing server of another exchange has not been received within a preset time period.

所述缓存模块用于当所述侦测模块判定未在一预设时间段内接收到另一交换机计费服务器发送的联机信号时,对将宕机时间点到恢复时间点之间产生的话单和相应的话费进行缓存,所述宕机时间点是首次侦测不到联机信号时的时间点,所述恢复时间点是侦测模块到再次接收到另一交换机计费服务器发送的联机信号时的时间点。 The caching module is used for when the detection module judges that the online signal sent by another switch charging server is not received within a preset time period, and the bill generated between the downtime time point and the recovery time point and the corresponding call charges are cached, the downtime time point is the time point when the online signal is not detected for the first time, and the recovery time point is when the detection module receives the online signal sent by another exchange billing server again point in time.

所述同步模块用于当所述侦测模块在所述恢复时间点再次接收到另一交换机计费服务器发送的联机信号时,将所述缓存模块缓存的话单和相应的话费同步至另一交换机计费服务器的数据库,并在同步完成后清空缓存模块缓存的话单和相应的话费。 The synchronization module is used for synchronizing the bill and the corresponding call fee cached by the cache module to another switch when the detection module receives the online signal sent by the charging server of another switch at the recovery time point again. The database of the billing server, and clear the cached bills and corresponding bills of the cache module after the synchronization is completed.

以上结合一实施例进行说明,假设第二交换机计费服务器20在t时刻宕机,此时第二发送模块23停止向第一交换机计费服务器10发送联机信号,并且第一侦测模块14在从t时刻到q时刻这一预设(r-q)时间段内均未接收到第二发送模块23发出的联机信号,则第一侦测模块14确定第二交换机计费服务器20宕机,通知第一缓存模块15对宕机时间点t时刻到恢复时间点r时刻之间产生的话单和相应的话费进行缓存。 The above is described in conjunction with an embodiment, assuming that the second exchange billing server 20 is down at time t, at this time the second sending module 23 stops sending the connection signal to the first exchange billing server 10, and the first detection module 14 is at The online signal sent by the second sending module 23 is not received within the preset (r-q) time period from time t to time q, then the first detection module 14 determines that the charging server 20 of the second exchange is down, and notifies the second A caching module 15 caches the bills and corresponding bills generated between the downtime time point t and the recovery time point r.

当第一侦测模块14在恢复时间点r时刻再次接收到联机信号时,通知第一同步模块16将第一缓存模块15缓存的话单和相应的话费同步至第二换机计费服务器20的数据库27,并在同步完成后清空第一缓存模块15缓存的话单和相应的话费。 When the first detection module 14 receives the online signal again at the recovery time point r, it notifies the first synchronization module 16 to synchronize the bill and the corresponding call charges cached by the first buffer module 15 to the second switch billing server 20. database 27, and empty the first buffer module 15 cached bills and corresponding bills after the synchronization is completed.

请参阅图2,是本发明一实施方式中一种交换机计费方法的执行流程图。该交换机计费方法运行于上述交换机计费系统中,包括步骤: Please refer to FIG. 2 , which is an execution flowchart of an exchange charging method in an embodiment of the present invention. The exchange billing method operates in the above-mentioned exchange billing system, including steps:

步骤S101、两个交换机计费服务器实时接收交换机发送的电话通话信息; Step S101, the billing servers of the two switches receive the call information sent by the switches in real time;

步骤S102、两个交换机计费服务器按照特定的话单格式对每次通话的所有电话通话信息进行分析得到相应每次通话的话单,然后根据话单所对应的汇率计算出相应的话费,以及存储所述话单和相应的话费至数据库; Step S102, the billing servers of the two exchanges analyze all telephone call information of each call according to a specific bill format to obtain a corresponding bill for each call, then calculate the corresponding call fee according to the exchange rate corresponding to the bill, and store the Report the call list and corresponding call charges to the database;

步骤S103、每个交换机计费服务器每隔一预设时间向另一交换机计费服务器发送联机信号; Step S103, each switch charging server sends a connection signal to another switch charging server every preset time;

步骤S104、每个交换机计费服务器侦测另一交换机计费服务器发送的联机信号,判断是否在一预设时间段内均未接收到另一交换机计费服务器发送的联机信号; Step S104, each exchange billing server detects the connection signal sent by another exchange billing server, and judges whether it has not received the connection signal sent by another exchange billing server within a preset time period;

步骤S105、当其中一交换机计费服务器判定在一预设时间段内未接收到另一交换机计费服务器发送的联机信号时,所述其中一交换机计费服务器将宕机时间点到恢复时间点之间产生的话单和相应的话费进行缓存,所述宕机时间点是首次侦测不到联机信号时的时间点,所述恢复时间点是再次接收到另一交换机计费服务器发送的联机信号时的时间点;以及 Step S105, when one of the charging servers of the switchboard determines that the online signal sent by the charging server of another switchboard has not been received within a preset period of time, the charging server of one of the switches will go from the downtime point to the recovery time point The call bills and corresponding call charges generated between are cached. The downtime time point is the time point when the online signal is not detected for the first time, and the recovery time point is when the online signal sent by the billing server of another exchange is received again. at the point in time; and

步骤S106、当所述其中一交换机计费服务器在所述恢复时间点再次接收到另一交换机计费服务器发送的联机信号时,所述其中一交换机计费服务器将所述缓存的话单和相应的话费同步至另一交换机计费服务器的数据库,并在同步完成后清空缓存的话单和相应的话费。 Step S106, when the charging server of one of the switches receives the connection signal sent by the charging server of another switch again at the recovery time point, the charging server of one of the switches sends the cached bill and the corresponding The call charges are synchronized to the database of the billing server of another exchange, and the cached bills and corresponding call charges are cleared after the synchronization is completed.

本发明的一种交换机计费方法,通过采用两个交换机计费服务器同时接收交换机的数据,当一台交换机计费服务器出现宕机,另外一台可以正常接收数据并对外提过服务,从而保证业务的连续性;当宕机的交换机计费服务器回复正常后,正常运行的交换机计费服务器通过数据同步的方式,将宕机的交换机计费服务器在宕机时间段内没有接收的数据同步到宕机的交换机服务器,从而保证数据的完整性。 A switch billing method of the present invention adopts two switch billing servers to receive the data of the switch at the same time, when one switch billing server goes down, the other one can normally receive data and provide services to the outside world, thereby ensuring Business continuity; when the downtime switch billing server returns to normal, the normally running switch billing server will synchronize the data that the downtime switch billing server has not received during the downtime period to the Downtime switch server, thus ensuring data integrity.

以上所述仅为本发明的实施例,并非因此限制本发明的专利范围,凡是利用本发明说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本发明的专利保护范围内。  The above is only an embodiment of the present invention, and does not limit the patent scope of the present invention. Any equivalent structure or equivalent process conversion made by using the description of the present invention and the contents of the accompanying drawings, or directly or indirectly used in other related technologies fields, all of which are equally included in the scope of patent protection of the present invention. the

Claims (2)

1. a switch charging method, it is characterized in that: an exchanger metering system is provided, this exchanger metering system comprises two switch accounting servers that switch and described switch communicate to connect respectively, the connection that communicates with one another of described two switch accounting servers, each switch accounting server comprises:
Database;
Monitoring module, for the telephone relation information that desampler sends in real time;
Analysis module, for all telephone relation information of each call being analyzed to the ticket that obtains corresponding each call according to specific format of billing, then according to the corresponding exchange rate of ticket, calculate corresponding telephone expenses, and store described ticket and corresponding telephone expenses to database;
Sending module, for sending online signal every a Preset Time to another switch accounting server;
Detecting module, judges whether all not receive in a Preset Time section for detecting the online signal of another switch accounting server transmission the online signal that another switch accounting server sends;
Cache module, for when described detecting module judgement does not receive the online signal of another switch accounting server transmission in a Preset Time section, to downtime being put to the ticket and the corresponding telephone expenses that produce between some recovery time, carry out buffer memory, described downtime point is the time point while detecting first less than online signal, the time point that described recovery time, point was detecting module when again receiving the online signal that another switch accounting server sends; And
Synchronization module, be used for when described detecting module is when described recovery time, point received the online signal of another switch accounting server transmission again, the ticket of described cache module buffer memory and corresponding telephone expenses are synchronized to the database of another switch accounting server, and after synchronously completing, empty ticket and the corresponding telephone expenses of cache module buffer memory;
Described switch charging method runs in described exchanger metering system, comprises step:
Step S101, two telephone relation information that the real-time desampler of switch accounting server sends;
Step S102, two switch accounting servers analyze to all telephone relation information of each call the ticket that obtains corresponding each call according to specific format of billing, then according to the corresponding exchange rate of ticket, calculate corresponding telephone expenses, and store described ticket and corresponding telephone expenses to database;
Step S103, each switch accounting server send online signal every a Preset Time to another switch accounting server;
Step S104, each switch accounting server are detected the online signal that another switch accounting server sends, and judge whether all not receive in a Preset Time section the online signal that another switch accounting server sends;
Step S105, judge while not receiving the online signal that another switch accounting server sends in a Preset Time section when a switch accounting server wherein, a described wherein switch accounting server is put by downtime the ticket and the corresponding telephone expenses that between some recovery time, produce and is carried out buffer memory, described downtime point is the time point while detecting first less than online signal, and described recovery time, point was the time point while again receiving the online signal that another switch accounting server sends;
Step S106, when a described wherein switch accounting server is when described recovery time, point received the online signal that another switch accounting server sends again, a described wherein switch accounting server is synchronized to the database of another switch accounting server by the ticket of described buffer memory and corresponding telephone expenses, and after synchronously completing, empties ticket and the corresponding telephone expenses of buffer memory.
2. switch charging method according to claim 1, it is characterized in that: the second switch accounting server is at the t machine of constantly delaying, now the second sending module stops sending online signal to the first switch accounting server, and the first detecting module when from t, be carved into q constantly this default (r-q) in the time period, all do not receive the online signal that the second sending module sends, the first detecting module is determined the second switch accounting server machine of delaying, while notifying the first cache module to downtime point t, be carved into and put ticket and the corresponding telephone expenses that r produces constantly recovery time and carry out buffer memory, when the first detecting module is when putting r and constantly again receive online signal recovery time, notify the first synchronization module that the ticket of the first cache module buffer memory and corresponding telephone expenses are synchronized to second database of accounting server of changing planes, and after synchronously completing, empty ticket and the corresponding telephone expenses of the first cache module buffer memory.
CN201310527740.6A 2013-10-31 2013-10-31 Exchanger charging method Active CN103560896B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310527740.6A CN103560896B (en) 2013-10-31 2013-10-31 Exchanger charging method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310527740.6A CN103560896B (en) 2013-10-31 2013-10-31 Exchanger charging method

Publications (2)

Publication Number Publication Date
CN103560896A true CN103560896A (en) 2014-02-05
CN103560896B CN103560896B (en) 2017-02-15

Family

ID=50015052

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310527740.6A Active CN103560896B (en) 2013-10-31 2013-10-31 Exchanger charging method

Country Status (1)

Country Link
CN (1) CN103560896B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105869293A (en) * 2015-01-19 2016-08-17 比亚迪股份有限公司 Charging station and charging billing system
CN115150763A (en) * 2021-03-30 2022-10-04 中国移动通信集团江苏有限公司 A method and device for bill charging

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1286554A (en) * 1999-10-29 2001-03-07 深圳市中兴通讯股份有限公司 On-line message accounting device and method for mobile communication network
CN101005385A (en) * 2007-01-16 2007-07-25 华为技术有限公司 Charging method and its device

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1286554A (en) * 1999-10-29 2001-03-07 深圳市中兴通讯股份有限公司 On-line message accounting device and method for mobile communication network
CN101005385A (en) * 2007-01-16 2007-07-25 华为技术有限公司 Charging method and its device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
匿名: "PLUSWELL多机集群、数据备份解决方案", 《HTTP://WENKU.BAIDU.COM/LINK?URL=EUFSIIR2QAM9Q_M6NUM-BYTX-U7O5V_JKVZ14DGLEWI4SIP9LA9WFQFI4GIGUAJ0W4XAJLRTHOHPFNQHXQ_OQEHZ07JLONNRSUI-61M9VAU》 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105869293A (en) * 2015-01-19 2016-08-17 比亚迪股份有限公司 Charging station and charging billing system
CN115150763A (en) * 2021-03-30 2022-10-04 中国移动通信集团江苏有限公司 A method and device for bill charging
CN115150763B (en) * 2021-03-30 2024-05-07 中国移动通信集团江苏有限公司 Bill charging method and device

Also Published As

Publication number Publication date
CN103560896B (en) 2017-02-15

Similar Documents

Publication Publication Date Title
CN108880934B (en) A method and device for data traffic statistics based on blockchain
CN102571479B (en) Method, device and system for measuring time delay
CN101729197A (en) Method, device and system for detecting packet loss rate
CN104376005B (en) The software heartbeat mechanism detailed form processing method of signaling access probe user and system
JP6574031B2 (en) Mobile video call quality measurement method and system
CN104038383A (en) Switch based process level network message analysis method
CN110659148A (en) Distributed cluster data recovery method, device, equipment and storage medium
CN104917645B (en) Method and device for detecting message transmission overtime on line
CN101719867B (en) Method and system for clock recovery in packet switching network
CN106411629A (en) Method used for monitoring state of CDN node and equipment thereof
CN105354268A (en) Meter reading data management system
CN102692558A (en) Monitoring and analyzing system for electricity data and realization method thereof
CN103428249B (en) A kind of Collecting and dealing method of HTTP request bag, system and server
CN103560896B (en) Exchanger charging method
CN103731866A (en) Method and system for detecting performance of subscriber terminals
CN108537692A (en) Cell building collecting method and device
CN103269288B (en) A kind of detection method to switch ports themselves
CN115357629A (en) Processing method, system, electronic device and storage medium for financial data stream
CN101483557A (en) Log statistic, storing method and system used for deep packet detection apparatus
CN101594305B (en) A message processing method and device
CN103560895B (en) Billing system with crashing-preventing function and server
CN105187688B (en) The method and system that a kind of real-time video and audio to mobile phone collection synchronizes
CN108390796A (en) A kind of latency test method and device
CN103888211B (en) A kind of method and device carried out data transmission between cross chips
CN107566072A (en) A kind of secondary device clock synchronizing method based on dual time correction

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant