CN103560895A - Billing system with crashing-preventing function and server - Google Patents

Billing system with crashing-preventing function and server Download PDF

Info

Publication number
CN103560895A
CN103560895A CN201310527704.XA CN201310527704A CN103560895A CN 103560895 A CN103560895 A CN 103560895A CN 201310527704 A CN201310527704 A CN 201310527704A CN 103560895 A CN103560895 A CN 103560895A
Authority
CN
China
Prior art keywords
module
server
ticket
signal
telephone expenses
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
CN201310527704.XA
Other languages
Chinese (zh)
Other versions
CN103560895B (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 CN201310527704.XA priority Critical patent/CN103560895B/en
Publication of CN103560895A publication Critical patent/CN103560895A/en
Application granted granted Critical
Publication of CN103560895B publication Critical patent/CN103560895B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Meter Arrangements (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The invention discloses a billing system with a crashing-preventing function. The billing system comprises an exchanger and two servers, the two servers are in communication connection with each other, and each server comprises a storage module, a monitoring module, an analyzing module, a transmitting module, a signal detection module, a cache module and a synchronizing module, wherein the monitoring module is used for receiving telephone conversation information transmitted by the exchanger, the analyzing module is used for obtaining the corresponding ticket of each conversation, calculating corresponding telephone conversation charges, and storing the tickets and the telephone conversation charges to the storage module, the transmitting module is used for transmitting online signals to the other server, the signal detection module is used for detecting the online signals transmitted by the other server, the cache module is used for carrying out caching on the tickets and the corresponding telephone conversation charges when the signal detection module does not receive the online signals, and the synchronizing module is used for synchronizing the cached tickets and the corresponding telephone conversation charges to the other server when the signal detection module receives the online signals transmitted by the other server again. The invention further discloses a server.

Description

A kind of charge system and server with anti-deadlock function
Technical field
The present invention relates to a kind of charge system and server with anti-deadlock function.
Background technology
Existing billing cache device, when charging host machine is delayed after machine, ticket can be buffered in buffer, after charging host machine is normal, can read the ticket being buffered in buffer, has guaranteed to a certain extent the integrality of call bill data.Yet above-mentioned existing billing cache device scheme, because user when single charging host machine is delayed machine cannot find telephone expenses data, therefore can only guarantee the integrality of data, can not guarantee the continuity of business; In addition, because the amount of capacity of buffer is restricted, when the ticket cushioning surpasses after the capacity of buffer, the ticket of exceed capacity still can be lost.
Summary of the invention
For addressing the above problem, the technical scheme that the present invention adopts is:
A kind of charge system with anti-deadlock function is provided, comprises switch, also comprise two servers that the billing interface with described switch communicates to connect respectively, the connection that communicates with one another of described two servers, each server comprises: memory module; Monitoring module, is connected on described billing interface, the telephone relation information that monitoring module sends by billing interface for real-time desampler; Analysis module, for obtain the ticket of corresponding each call according to all telephone relation information of each call, then calculates corresponding telephone expenses according to the corresponding exchange rate of ticket, and stores described ticket and corresponding telephone expenses to memory module; Sending module, for sending online signal every a Preset Time to another server; Signal detection module, the online signal sending for detecting another server; Cache module, when all not receiving the online signal that another server sends in a Preset Time section when described signal detection module, carries out buffer memory to downtime being put to the ticket and the corresponding telephone expenses that produce between some recovery time; And synchronization module, when again receiving the online signal that another server sends when described signal detection module, the ticket of described cache module buffer memory and corresponding telephone expenses are synchronized to the memory module of another server.
Wherein, the monitoring module of described first server and second server is connected on the billing interface of described switch by serial ports respectively.
Wherein, the monitoring module of described first server and second server is connected on the billing interface of described switch by network interface respectively.
Another technical solution used in the present invention is:
A kind of server is provided, comprises: memory module; Monitoring module, is connected on described billing interface, the telephone relation information that monitoring module sends by billing interface for real-time desampler; Analysis module, for obtain the ticket of corresponding each call according to all telephone relation information of each call, then calculates corresponding telephone expenses according to the corresponding exchange rate of ticket, and stores described ticket and corresponding telephone expenses to memory module; Sending module, for sending online signal every a Preset Time to another server; Signal detection module, the online signal sending for detecting another server; Cache module, when all not receiving the online signal that another server sends in a Preset Time section when described signal detection module, carries out buffer memory to downtime being put to the ticket and the corresponding telephone expenses that produce between some recovery time; And synchronization module, when again receiving the online signal that another server sends when described signal detection module, the ticket of described cache module buffer memory and corresponding telephone expenses are synchronized to the memory module of another server.
A kind of charge system and server with anti-deadlock function of the present invention, by adopting two servers data of desampler simultaneously, when the machine of delaying appears in a station server, other one can normally receive data and externally propose service, thus the continuity of the business of assurance; When the server of the machine of delaying reply normal after, the server of normal operation is by the synchronous mode of data, the data that the server of the machine of delaying not have in downtime section receive are synchronized to the pbx server of the machine of delaying, thereby the integrality of assurance data.
Accompanying drawing explanation
Fig. 1 is a kind of system block diagram with the charge system of anti-deadlock function in an embodiment of the present invention.
Main element symbol description:
First server 10; Second server 20; Switch 30; The first monitoring module 11;
The first analysis module 12; The first sending module 13; First signal detecting module 14;
The first cache module 15; The first synchronization module 16; The first memory module 17;
The second monitoring module 21; The second analysis module 22; The second sending module 23;
Secondary signal detecting module 24; The second cache module 25; The second synchronization module 26; The second memory module 27.
Embodiment
By describing technology contents of the present invention, structural feature in detail, being realized object and effect, below in conjunction with execution mode and coordinate accompanying drawing to be explained in detail.
Seeing also Fig. 1, is a kind of system block diagram with the charge system of anti-deadlock function in an embodiment of the present invention.Two servers that this exchanger metering system comprises switch 30, communicates to connect respectively with described switch 30, the connection that communicates with one another of described two servers, these two servers are respectively first server 10 and second server 20.In one embodiment, described first server 10 and second server 20 are connected on the billing interface of described switch by serial ports respectively; In another embodiment, described first server and second server are connected on the billing interface of described switch by network interface respectively.
Each server comprises memory module, monitoring module, analysis module, sending module, signal detection module, cache module, synchronization module.In the present embodiment, first server 10 comprises the first memory module 17, the first monitoring module 11, the first analysis module 12, the first sending module 13, first signal detecting module 14, the first cache module 15, the first synchronization module 16.Second server 20 comprises the second memory module 27, the second monitoring module 21, the second analysis module 22, the second sending module 23, secondary signal detecting module 24, the second cache module 25, the second synchronization module 26.
The telephone relation information that described monitoring module sends for real-time desampler 30.
Described analysis module is for analyzing 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 memory module.
Described sending module is for sending online signal every a Preset Time to another server.
Described signal detection module judges whether all not receive in a Preset Time section for detecting the online signal of another server transmission the online signal that another server sends.
Described cache module is not for when described signal detection module judgement receives the online signal of another 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, described recovery time point be signal detection module to again receive another server transmission online signal time time point.
Described synchronization module is used for when described signal detection module is when described recovery time, point received the online signal of another server transmission again, the ticket of described cache module buffer memory and corresponding telephone expenses are synchronized to the memory module of another server, and after synchronously completing, empty ticket and the corresponding telephone expenses of cache module buffer memory.
Above combination one embodiment describes, suppose that second server 20 is at the t machine of constantly delaying, now the second sending module 23 stops sending online signal to first server 10, and first signal detecting module 14 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 23 sends, first signal detecting module 14 is determined second server 20 machine of delaying, while notifying 15 couples of downtime point t of the first cache module, be carved into put recovery time ticket that r produces constantly and accordingly telephone expenses carry out buffer memory.
When first signal detecting module 14 is when putting r and constantly again receive online signal recovery time, notify the first synchronization module 16 that the ticket of the first cache module 15 buffer memorys and corresponding telephone expenses are synchronized to second memory module 27 of accounting server 20 of changing planes, and after synchronously completing, empty ticket and the corresponding telephone expenses of the first cache module 15 buffer memorys.
A kind of charge system and server with anti-deadlock function of the present invention, by adopting two servers data of desampler simultaneously, when the machine of delaying appears in a station server, other one can normally receive data and externally propose service, thus the continuity of the business of assurance; When the server of the machine of delaying reply normal after, the server of normal operation is by the synchronous mode of data, the data that the server of the machine of delaying not have in downtime section receive are synchronized to the pbx server of the machine of delaying, thereby the integrality of assurance data.
The foregoing is only embodiments of the invention; not thereby limit the scope of the claims of the present invention; every equivalent structure or conversion of equivalent flow process that utilizes specification of the present invention and accompanying drawing content to do; or be directly or indirectly used in other relevant technical fields, be all in like manner included in scope of patent protection of the present invention.

Claims (8)

1. a charge system with anti-deadlock function, comprises switch, it is characterized in that, also comprises two servers that the billing interface with described switch communicates to connect respectively, the connection that communicates with one another of described two servers, and each server comprises:
Memory module;
Monitoring module, is connected on described billing interface, the telephone relation information that monitoring module sends by billing interface for real-time desampler;
Analysis module, for obtain the ticket of corresponding each call according to all telephone relation information of each call, then calculates corresponding telephone expenses according to the corresponding exchange rate of ticket, and stores described ticket and corresponding telephone expenses to memory module;
Sending module, for sending online signal every a Preset Time to another server;
Signal detection module, the online signal sending for detecting another server;
Cache module, when all not receiving the online signal that another server sends in a Preset Time section when described signal detection module, carries out buffer memory to downtime being put to the ticket and the corresponding telephone expenses that produce between some recovery time; And
Synchronization module, when again receiving the online signal that another server sends when described signal detection module, is synchronized to the ticket of described cache module buffer memory and corresponding telephone expenses the memory module of another server.
2. a kind of charge system with anti-deadlock function according to claim 1, is characterized in that, the monitoring module of described first server and second server is connected on the billing interface of described switch by serial ports respectively.
3. a kind of charge system with anti-deadlock function according to claim 1, is characterized in that, the monitoring module of described first server and second server is connected on the billing interface of described switch by network interface respectively.
4. a kind of charge system with anti-deadlock function according to claim 1, it is characterized in that, described downtime point is the time point while detecting first less than online signal, described recovery time point be signal detection module to again receive another server transmission online signal time time point.
5. a kind of charge system with anti-deadlock function according to claim 1, it is characterized in that, when second server is at the t machine of constantly delaying, now the second sending module stops sending online signal to first server, and first signal 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, first signal detecting module is determined the second 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 first signal 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 memory module of accounting server of changing planes, and after synchronously completing, empty ticket and the corresponding telephone expenses of the first cache module buffer memory.
6. a server, is characterized in that, comprising:
Memory module;
Monitoring module, is connected on described billing interface, the telephone relation information that monitoring module sends by billing interface for real-time desampler;
Analysis module, for obtain the ticket of corresponding each call according to all telephone relation information of each call, then calculates corresponding telephone expenses according to the corresponding exchange rate of ticket, and stores described ticket and corresponding telephone expenses to memory module;
Sending module, for sending online signal every a Preset Time to another server;
Signal detection module, the online signal sending for detecting another server;
Cache module, when all not receiving the online signal that another server sends in a Preset Time section when described signal detection module, carries out buffer memory to downtime being put to the ticket and the corresponding telephone expenses that produce between some recovery time; And
Synchronization module, when again receiving the online signal that another server sends when described signal detection module, is synchronized to the ticket of described cache module buffer memory and corresponding telephone expenses the memory module of another server.
7. server according to claim 6, it is characterized in that, described downtime point is the time point while detecting first less than online signal, described recovery time point be signal detection module to again receive another server transmission online signal time time point.
8. server according to claim 6, it is characterized in that, when second server is at the t machine of constantly delaying, now the second sending module stops sending online signal to first server, and first signal 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, first signal detecting module is determined the second server machine of delaying, and is carved into put ticket and the corresponding telephone expenses that r produces constantly recovery time and carry out buffer memory while notifying the first cache module to downtime point t; When first signal 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 memory module of accounting server of changing planes, and after synchronously completing, empty ticket and the corresponding telephone expenses of the first cache module buffer memory.
CN201310527704.XA 2013-10-31 2013-10-31 Billing system with crashing-preventing function and server Active CN103560895B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310527704.XA CN103560895B (en) 2013-10-31 2013-10-31 Billing system with crashing-preventing function and server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310527704.XA CN103560895B (en) 2013-10-31 2013-10-31 Billing system with crashing-preventing function and server

Publications (2)

Publication Number Publication Date
CN103560895A true CN103560895A (en) 2014-02-05
CN103560895B CN103560895B (en) 2017-02-01

Family

ID=50015051

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310527704.XA Active CN103560895B (en) 2013-10-31 2013-10-31 Billing system with crashing-preventing function and server

Country Status (1)

Country Link
CN (1) CN103560895B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110264246A (en) * 2019-05-29 2019-09-20 联动优势科技有限公司 Charging controller and method

Citations (6)

* 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
KR100330545B1 (en) * 2000-02-19 2002-04-01 김형순 Method and system of duplication of transmitting billing data for duplicated automatic call distributer system
CN1620017A (en) * 2003-11-18 2005-05-25 华为技术有限公司 Charging buffer storage system of broad band network cut-in service device and its method
CN1642030A (en) * 2004-01-05 2005-07-20 华为技术有限公司 Method for realizing network management duoble computer disaster-tolerance back-up
CN101005385A (en) * 2007-01-16 2007-07-25 华为技术有限公司 Charging method and its device
CN101394306A (en) * 2008-07-08 2009-03-25 国电南瑞科技股份有限公司 Seamless switching method for dual server system

Patent Citations (6)

* 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
KR100330545B1 (en) * 2000-02-19 2002-04-01 김형순 Method and system of duplication of transmitting billing data for duplicated automatic call distributer system
CN1620017A (en) * 2003-11-18 2005-05-25 华为技术有限公司 Charging buffer storage system of broad band network cut-in service device and its method
CN1642030A (en) * 2004-01-05 2005-07-20 华为技术有限公司 Method for realizing network management duoble computer disaster-tolerance back-up
CN101005385A (en) * 2007-01-16 2007-07-25 华为技术有限公司 Charging method and its device
CN101394306A (en) * 2008-07-08 2009-03-25 国电南瑞科技股份有限公司 Seamless switching method for dual server system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
北京蓝科泰达科技有限公司: "PLUSWELL 多机集群、数据备份解决方案(1)", 《百度文库 URL: HTTP://WENKU.BAIDU.COM/LINK?URL=EUFSIIR2QAM9Q_M6NUM-BYTX-U7O5V_JKVZ14DGLEWI4SIP9LA9WFQFI4GIGUAJ0W4XAJLRTHOHPFNQHXQ_OQEHZ07JLONNRSUI-61M9VAU》, 19 May 2010 (2010-05-19) *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110264246A (en) * 2019-05-29 2019-09-20 联动优势科技有限公司 Charging controller and method
CN110264246B (en) * 2019-05-29 2022-03-25 联动优势科技有限公司 Charging control device and method

Also Published As

Publication number Publication date
CN103560895B (en) 2017-02-01

Similar Documents

Publication Publication Date Title
CN100479361C (en) Synchronous medium access controller
CN102045772B (en) Data transmission method and device
CN101882369B (en) Remote real-time monitoring system for electric power system client side meter
CN101877659B (en) Method, device and system for monitoring packet loss
CN101729197A (en) Method, device and system for detecting packet loss rate
CN103458496A (en) Method and system for achieving time synchronization through WiFi-Direct
CN103546467A (en) Method for transmitting Modbus RTU protocol on TCP/IP network
CN103746938A (en) Method and device for transmitting data packet
CN103338488A (en) Network switching method, terminal, controller, gateway and system
CN101594169A (en) Method that is used to measure and equipment
CN101719867B (en) Method and system for clock recovery in packet switching network
CN101964810A (en) Real-time information synchronization method based on browser
CN102916902A (en) Method and device for storing data
CN103560895A (en) Billing system with crashing-preventing function and server
CN103560896A (en) Exchanger charging method
CN108259105A (en) A kind of time synchronizing method, apparatus and synchronizing network
CN104735448B (en) ARINC818 sending node data collection and control methods
CN201742444U (en) Remote real-time monitoring system of client-side meter of power system
CN103501353B (en) A kind of data relay transmission method, apparatus and system
CN109714438A (en) A kind of subway comprehensive monitoring system real time data inter-network ferry device and method
CN108550103A (en) A kind of image processing method and device
CN103442091A (en) Data transmission method and device
CN108390796A (en) A kind of latency test method and device
CN209526894U (en) A kind of lora networking Beidou monitoring data Transmission system
CN101594305A (en) A kind of message processing method and device

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