CN1925530B - System and method for recording call list - Google Patents

System and method for recording call list Download PDF

Info

Publication number
CN1925530B
CN1925530B CN2006101269186A CN200610126918A CN1925530B CN 1925530 B CN1925530 B CN 1925530B CN 2006101269186 A CN2006101269186 A CN 2006101269186A CN 200610126918 A CN200610126918 A CN 200610126918A CN 1925530 B CN1925530 B CN 1925530B
Authority
CN
China
Prior art keywords
bill data
submodule
call bill
module
call
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
Application number
CN2006101269186A
Other languages
Chinese (zh)
Other versions
CN1925530A (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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN2006101269186A priority Critical patent/CN1925530B/en
Publication of CN1925530A publication Critical patent/CN1925530A/en
Application granted granted Critical
Publication of CN1925530B publication Critical patent/CN1925530B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Telephonic Communication Services (AREA)

Abstract

This invention discloses one list record system, which comprises business unit and list memory unit, wherein, business unit is to record list buffer to send to the phone list memory unit; the memory unit is to receive business unit data to store into database. This invention also discloses one list system composed of business operation module, buffer module and list write module. This invention also discloses one list method, which comprises steps of buffer of record list data and reading phone list and storing into database files.

Description

The system and method for recording call list
Technical field
The present invention relates to the communications records technology, relate in particular to the system and method for recording call list.
Background technology
Along with the develop rapidly of mobile communication business, various new business, new set meal emerge in an endless stream, and these value added service communication processes except existing switch, generally also need be finished under the control of background computer.Equally, ticket for charging or other special requirement, it also is to meet the requirements of that its Original CDR recording process is only finished by switch, because also need the characteristic that comprises that some are professional in the ticket writing of these value-added services, as the polyphonic ringtone playing duration in the Ring Back Tone service, the turnover record of participant each side etc. in user key-press information and the conference telephone service in the playing duration of a certain first color words of diversiform telephone services, the communication process, it is wide to contain content, personalized difference mostly be that switch can't be finished.
At this situation, can adopt by professional and itself come recording call list.The method that more existing small-scale value added service providers adopt is: itself directly ticket writing is write database or file by professional, as shown in Figure 1, Fig. 1 is the apparatus structure schematic diagram of a kind of recording call list in the prior art.Each service operation module among the figure can be represented a business of operation, in the service operation process with directly synchronous the writing in database or the file of call bill data of record.In this method that ticket is write synchronously database or file, because database manipulation or file I/O itself are exactly operation more consuming time, if call volume is bigger, when waiting for write data storehouse or file, the time that certainly will cause call queuing to wait for is long, even occur blocking, situations such as call interruption have a strong impact on communication performance.
Summary of the invention
In view of this, one aspect of the present invention provides a kind of system of recording call list, and this system can reduce the time that call queuing is waited for.
The present invention provides a kind of system of recording call list on the other hand again, and this system can reduce the time that call queuing is waited for.
The present invention provides a kind of method of recording call list at last, uses this method and can reduce the time that call queuing is waited for.
The system of first recording call list provided by the invention is achieved by following technical solution:
This system comprises: at least one business unit and call bill data memory cell, and described business unit comprises:
Be used to write down the professional ticket that moves, and the call bill data that is write down exported to the service operation module of cache module;
The cache module that is used for the call bill data of buffer memory service operation module output;
Be used for reading call bill data behind the buffer memory, and send to the sending module of call bill data memory cell from cache module;
Described call bill data memory cell comprises:
Be used to receive the call bill data that comes from sending module, and export the receiver module of this call bill data;
Be used to receive call bill data, and deposit the ticket writing module in database or the file in;
Wherein,
Described sending module comprises: send submodule and connect the monitoring submodule;
Described receiver module comprises: receive submodule and monitor submodule; And
Connect the monitoring submodule, be used for when initially connecting, send connection request, after connecting, transmit the call bill data that sends submodule to monitoring submodule;
Send submodule, be used for after connection is set up successfully, the call bill data that will read from the cache module of business unit sends to the reception submodule by connecting the monitoring submodule; And
The monitoring submodule is used to monitor the connection request that connects the monitoring submodule, and after listening to connection request, notice receives submodule foundation and is connected the connection of monitoring submodule with this;
Receive submodule, be used for according to the notice of monitoring submodule, set up with described and be connected the connection of monitoring submodule, after connection is set up successfully, receive to connect the call bill data that the monitoring submodule is transmitted, and the call bill data that is received is exported to ticket writing module in the call bill data memory cell.
Preferably, described call bill data memory cell further comprises: cache module, and then described reception submodule is used for the call bill data that receives is exported to the cache module of call bill data memory cell; The cache module of described call bill data memory cell is used for the call bill data that the buffer memory receiver module is exported; Described ticket writing module is used for reading call bill data from the cache module of call bill data memory cell, and deposits in database or the file.
Preferably, described receiver module further comprises: the heartbeat detection submodule, be used for when detecting the existence of reception submodule and being connected the connection of monitoring submodule, periodically send the heartbeat detection request by receiving submodule to connecting the monitoring submodule, if in the cycle, do not receive from the notice that receives the heartbeat response signal that receives submodule, then with heartbeat not response times add 1, and detect heartbeat not response times whether reach preset value, when reaching preset value, notice receives the submodule disconnection and should be connected the connection of monitoring submodule; If in the cycle, receive described notice, then with heartbeat not response times put 0, restart counting;
Then described connection is monitored submodule and is further used for: after connecting, receive the heartbeat detection request that the heartbeat detection submodule sends by the reception submodule, and generation heartbeat response signal sends to the reception submodule;
Described reception submodule is further used for: after connecting, transmit the heartbeat detection submodule and issue the heartbeat detection request that connects the monitoring submodule, and receive from the heartbeat response signal that connects the monitoring submodule, after receiving the heartbeat response signal, send the notice that has received the heartbeat response signal to the heartbeat detection sub-module.
Preferably, described sending module further comprises: the alarm submodule, the cache module call bill data that is used for the periodic monitor business unit takies the situation of memory block, when the ratio that takies the memory block when call bill data reaches preset alarm point, then sends warning information.
Preferably, described alarm submodule is further used for: when the ratio that takies the memory block when call bill data reaches default measuring point, then call bill data is write in the dialect monofile.
Wherein, described cache module comprises: one or more than one round-robin queue; And each round-robin queue comprises: team's head pointer and tail of the queue pointer, wherein,
Team's head pointer is used in reference to the position that will read to the next one, and call bill data is read in the described sending module position that team's head pointer of round-robin queue points to from professional unit caches module at every turn; Call bill data is read in the described ticket writing module position that team's head pointer of round-robin queue points to from call bill data memory cell cache module at every turn;
The tail of the queue pointer is used in reference to the position that will write to the next one, and described service operation module deposits call bill data in the position of the tail of the queue pointed of round-robin queue in the business unit cache module at every turn; Described receiver module deposits call bill data in the position of the tail of the queue pointed of round-robin queue in the call bill data memory cell cache module at every turn.
The method of recording call list provided by the invention is achieved by following technical solution:
The system that is used for recording call list, the system of described recording call list comprises: at least one business unit and call bill data memory cell, and described business unit comprises: service operation module, cache module and include the sending module that connects monitoring submodule and send submodule; Described call bill data memory cell comprises: include the receiver module and the ticket writing module that receive submodule and monitor submodule;
This method comprises,
Buffer zone in establishment and the initialization cache module starts sending module,
When initially connecting, connect the monitoring submodule and send connection request to monitoring submodule; Monitor the connection request that the submodule monitoring connects the monitoring submodule, after listening to connection request, notice receives submodule foundation and is connected the connection of monitoring submodule with this, and continues to monitor; Receive submodule according to the notice of monitoring submodule, set up with described and be connected the connection of monitoring submodule;
When business took place, the service operation module records was moved professional ticket, and with the call bill data buffer memory that write down to cache module;
After connection is set up successfully, send the call bill data submodule reads buffer memory from described cache module after, send to the reception submodule by connecting the monitoring submodule; Receive submodule and receive the call bill data that connects the forwarding of monitoring submodule, and the call bill data that is received is deposited in database or the file by the ticket writing module.The described buffer memory that carries out is: call bill data is deposited in the buffer zone in the cache module; The described call bill data that reads behind the buffer memory is: read call bill data from the buffer zone.
Wherein, buffer zone in described establishment and the initialization cache module is: the buffer zone is designed to one or more than one round-robin queue, and team's head pointer of each round-robin queue points to the next position that will read, the position that the tail of the queue pointed next one will write;
Describedly deposit call bill data in buffer zone and be: call bill data is write the position of round-robin queue's tail of the queue pointed in the buffer zone, and the tail of the queue pointer is changed into and pointed to the next position that will write;
The described call bill data that reads from the buffer zone is: call bill data is read in the position that team of round-robin queue head pointer points to from the buffer zone, and team's head pointer is changed into the next position that will read of sensing.
Preferably, after the described call bill data that reads behind the buffer memory, deposit in before database or the file, further comprise: the call bill data that receives is write earlier in another buffer zone; Reading call bill data afterwards from this buffer zone deposits in database or the file.
Preferably, this method further comprises: regularly detect the situation that takies of call bill data in the buffer zone, when the ratio that takies buffer area when call bill data reaches preset alarm point, then send warning information; If there is a measuring point, when then the ratio that takies the memory block when call bill data reached default measuring point, alarm module write call bill data in the dialect monofile.
From such scheme as can be seen, call bill data advanced person row cache by writing down among the present invention, and then the call bill data behind the buffer memory deposited in database or the file, thereby realize asynchronous access, avoided the call queuing stand-by period that increases consuming time owing to database manipulation or file I/O operation to professional ticket.Further, system and method among the present invention is after receiving call bill data, write before database or the file, by a buffer zone is set, thereby guarantee call bill data read with process of transmitting in unimpeded, promptly dual asynchronous operation fully reduces the time that call queuing is waited for, avoid the generation of blocking, in recording call list, do not influence communication performance.
In addition, among the present invention by the buffer zone being arranged to one or more than one round-robin queue, thereby this buffer zone can be recycled, and the obstruction that causes when a plurality of round-robin queues can avoid a plurality of professional call bill data competitions to write a round-robin queue is set; And by the alarm link further is set, the operating position of buffer zone is exercised supervision and alarming processing, thereby guaranteed that to greatest extent communication is unimpeded, reduce the time that call queuing is waited for.
As seen, the present invention passes through to adopt the asynchronous thought and the measure of multiple protective, thereby can reduce the time that call queuing is waited for to greatest extent, avoids the generation of situations such as blocking, has guaranteed communication performance.
Description of drawings
Fig. 1 is the apparatus structure schematic diagram of a kind of recording call list of the prior art;
Fig. 2 is the structural representation of the system embodiment of first recording call list of the present invention;
Fig. 3 is the system configuration schematic diagram after on basis embodiment illustrated in fig. 2 the internal structure of business unit and call bill data memory cell being segmented;
Fig. 4 is the structural representation of a round-robin queue of cache module shown in Figure 3;
Fig. 5 is the internal structure and the annexation schematic diagram of sending module shown in Figure 3 and receiver module;
Fig. 6 is the structural representation of the system embodiment of second recording call list of the present invention;
Fig. 7 is the flow chart of first embodiment of method of recording call list among the present invention;
Fig. 8 is the flow chart of second embodiment of method of recording call list among the present invention.
Embodiment
For making the purpose, technical solutions and advantages of the present invention clearer, the present invention is described in more detail below in conjunction with embodiment.
Basic thought of the present invention is: with the advanced row cache of the call bill data of record, and then the call bill data behind the buffer memory deposited in database or the file, realize that professional ticket writing and call bill data deposit the asynchronous operation of database or file in, thereby avoid owing to the call queuing that causes consuming time of database manipulation or file I/O operation is waited for defectives such as time delay, obstruction.
When specific implementation, can be by business unit being set and the call bill data memory cell realizes, wherein business unit is at least one, the call bill data memory cell can be one, and business unit and call bill data memory cell can be separately positioned in two separate equipment, then each business unit is used for the advanced row cache of the call bill data of record, and the call bill data behind the buffer memory is sent to the call bill data memory cell; The call bill data memory cell is used to receive the call bill data that comes from business unit, and deposits in database or the file, i.e. the system of first recording call list.Specifically can be referring to embodiment shown in Figure 2.
In the above-mentioned realization, by realizing alternately between business unit and the call bill data memory cell, and the two can be arranged in two equipment.In traffic carrying capacity more after a little while, the present invention can also be set directly at database or file in the business unit, then only need this moment a business unit to finish, can comprise in the business unit this moment: the service operation module is used for the call bill data that is write down is exported to cache module; Cache module is used for the call bill data that buffer memory service operation module is exported; The ticket writing module is used for reading call bill data from cache module, and deposits in database or the file, i.e. the system of second recording call list.Specifically can be referring to embodiment shown in Figure 6.
In addition, can also be according to method provided by the present invention, that is: the call bill data with record carries out buffer memory; Read the call bill data behind the buffer memory, and deposit in database or the file.In the practical application, implement this method according to actual conditions, also can with reference to Fig. 7 or embodiment illustrated in fig. 8 in method.
Following elder generation is described in detail the system of first recording call list among the present invention in conjunction with the embodiments.
Referring to Fig. 2, Fig. 2 is the system configuration schematic diagram of recording call list in the embodiment of the invention.As shown in Figure 2, this system comprises: at least one business unit 200 and a call bill data memory cell 210, and total n business unit 200 in this enforcement, wherein n is the integer greater than 1.
Each business unit 200 is used for the operational communications business, and record institute move the ticket of business, with the call bill data advanced person row cache that is write down, and then asynchronous the reading out of the call bill data of buffer memory is sent to call bill data memory cell 210.As be pre-created shared drive, the call bill data that is write down is write earlier in the shared drive, and then from shared drive the asynchronous call bill data that reads buffer memory, send to call bill data memory cell 210.
Call bill data memory cell 210 is used to receive the call bill data that comes from business unit 200, and the call bill data that is received is deposited in database or the file.In the present embodiment, for the call bill data that each business unit 200 is sended over is unlikely to block when writing database, in the call bill data memory cell, be provided with the buffer memory link, the advanced row cache of the call bill data from business unit 200 that is soon received is in restore afterwards database or the file.
Wherein, the internal structure of business unit 200 and call bill data memory cell 210 can be further as shown in Figure 3, Fig. 3 is on basis embodiment illustrated in fig. 2, the system configuration schematic diagram after the internal structure of business unit 200 and call bill data memory cell 210 is segmented.
Wherein business unit 200 comprises: service operation module 201, cache module 202 and sending module 203.
Service operation module 201 is used for the operational communications business, and writes down the professional ticket that moves, and the call bill data that is write down is exported to cache module 202.Wherein, each service operation module 201 can be represented a business of operation, and each service operation module 201 can realize the sharing of cache module 202 write call bill data in cache module 202 by calling identical interface module in running; Also can realize in cache module 202, writing call bill data by encapsulating the interface module of oneself separately.In the present embodiment, m1 service operation module arranged in the business unit 1 ..., mn service operation module arranged among the business unit n, wherein m1 ..., mn is more than or equal to 1, in the present embodiment greater than 1.
Cache module 202 is used for the call bill data that buffer memory service operation module 201 is exported.This cache module 202 can be arranged in the internal memory, and can comprise one or more than one round-robin queue, each round-robin queue comprises team's head pointer and a tail of the queue pointer.Wherein, team's head pointer points to the next position that will read, the position that the tail of the queue pointed next one will write, and the tail of the queue pointer takies a character of formation.When team's head pointer was identical with the tail of the queue pointer, the expression formation was empty.When team's head pointer greater than the tail of the queue pointer and differ when being 1 with the tail of the queue pointer or tail of the queue pointer and team head pointer differ whole queue length when subtracting 1, the expression queue full.
As shown in Figure 4, Fig. 4 is the structural representation of a round-robin queue in the cache module 202.Tentation data is filled by the counter clockwise direction shown in Fig. 4, and then team's head pointer points to the next position that will read, the position that the tail of the queue pointed next one will write.Service operation module 201 writes call bill data the tail of the queue of a round-robin queue at every turn, i.e. the position of tail of the queue pointed, and tail of the queue pointer changes, and points to the next position that will write; Sending module 203 reads call bill data from team's head of a round-robin queue at every turn, promptly reads call bill data from the position that team's head pointer points to, and team's head pointer changes the next position that will read of sensing.To the operation of round-robin queue in the cache module 202, be not synchronous between writing and reading, but two separate processes are gone operation according to tail of the queue pointer and team's head pointer respectively.Wherein round-robin queue express just in the thought of a memory space cyclic access, be not to refer to that the physical structure of memory space is annular.
Wherein, cause blocking write operation for fear of be absorbed in the state of " expiring " owing to cache module 202, can be with the capacity setting of cache module 202 enough big, because the calling total amount of communication system every day is suitable substantially, as long as the buffer memory capacity that is provided with is enough to store the call bill data of calling out the peak period every day; Perhaps also can when expire soon, memory space dynamically apply for a new space by business unit 200, and be modeled to one or more round-robin queues, by sending module 203 reading of data from these round-robin queues.
Sending module 203 is used for reading the call bill data behind the buffer memory and sending to call bill data memory cell 210 from cache module 202.
Wherein, call bill data memory cell 210 comprises: receiver module 211, cache module 212 and ticket writing module 213.
Receiver module 211 is used to receive the call bill data that comes from business unit 210, and exports to cache module 212.
Cache module 212 is used for the call bill data that buffer memory receiver module 211 is exported.The cache module 212 here can be arranged to the structure identical with cache module 202 in the business unit 200.
Ticket writing module 213 is used for reading call bill data from cache module 212, and deposits in database or the file.
Wherein, between business unit 200 and call bill data memory cell 210, be used to finish call bill data send with the internal structure of sending module 203 that receives and receiver module 211 and annexation as shown in Figure 5, referring to Fig. 5, sending module 203 comprises: send submodule and connect the monitoring submodule; Receiver module 211 comprises: receive submodule, monitor submodule and heartbeat detection submodule.For the storage condition to cache module 202 has a supervision,, in sending module 203, further be provided with an alarm submodule in order to avoid situations such as obstruction or loss of data occur.
Connect the monitoring submodule, be used for sending connection request, after connecting, transmit the call bill data that sends submodule to monitoring submodule, and receive the heartbeat detection request that the heartbeat detection submodule is transmitted by the reception submodule, and generation heartbeat response signal sends to the reception submodule.
Send submodule, be used for after connection is set up successfully, the call bill data that will read from cache module 202 sends to the reception submodule by connecting the monitoring submodule.
The alarm submodule, be used for regularly detecting the situation that cache module 202 call bill datas take the memory block, when the ratio that takies the memory block when call bill data reaches preset alarm point, then send warning information, this warning information can send by writing alarm log, also can send by interface information alarm, can be that cache module 202 is applied for new zones according to this warning information business unit 200 dynamically, and be initialized to one or more than one round-robin queue; If set in advance the words of measuring point, when then the ratio that takies the memory block when call bill data reaches default measuring point, then alarming submodule also reads the call bill data in the cache module 202, and write in the dialect monofile, these partial CDR data are deposited in database or the file by other module artificial or that set in advance again afterwards.
Monitor submodule, be used to monitor the connection request that connects the monitoring submodule, after listening to connection request, notice reception submodule is set up and is connected the connection of monitoring submodule.
The heartbeat detection submodule, be used for when detecting the existence of reception submodule and being connected the connection of monitoring submodule, periodically send the heartbeat detection request by receiving submodule to connecting the monitoring submodule, if in the cycle, do not receive from the notice that receives the heartbeat response signal that receives submodule, the heartbeat that then will connect monitoring submodule correspondence not response times adds 1, and detect heartbeat not response times whether reach preset value, if reach preset value, then notice receives the submodule disconnection and should be connected the connection of monitoring submodule; If in the cycle, receive described notice, then will connect monitor the submodule correspondence heartbeat not response times put 0, restart to count.
Receive submodule, be used for when initially connecting, according to the notice of monitoring submodule, set up with described and be connected the connection of monitoring submodule, after connection is set up successfully, reception sends the notice that received heartbeat response signal to the heartbeat detection sub-module by connecting call bill data and the heartbeat response signal that the monitoring submodule sends over after receiving the heartbeat response signal; After receiving call bill data, call bill data is exported to cache module 212 in the call bill data memory cell 210.And transmit the heartbeat detection submodule and issue the heartbeat detection request that connects the monitoring submodule.
The description of the embodiment of above-mentioned system for first recording call list of the present invention is described in detail the system of second recording call list among the present invention below more in conjunction with the embodiments.
Referring to Fig. 6, Fig. 6 is the structural representation of the system of second recording call list in the embodiment of the invention.As shown in Figure 6, this system comprises: service operation module, cache module and ticket writing module.
The service operation module is used for the operational communications business, and writes down the professional ticket that moves, and the call bill data that is write down is exported to cache module.Wherein, each service operation module can be represented a business of operation, and each service operation module can realize the sharing of cache module write call bill data in cache module by calling identical interface module in running; Also can realize in cache module, writing call bill data by encapsulating the interface module of oneself separately.
Cache module is used for the call bill data that buffer memory service operation module is exported.The cache module here can be arranged to the structure identical with cache module 202 in the business unit embodiment illustrated in fig. 2 200.
The ticket writing module is used for reading call bill data from cache module, and deposits in database or the file.
In addition, can also comprise alarm module in the system of present embodiment, be used for regularly detecting the situation that the cache module call bill data takies the memory block, when the ratio that takies the memory block when call bill data reaches preset alarm point, then send warning information, this warning information can send by writing alarm log, also can send by the interface information alarm, according to this warning information can be new zone of cache module application by the interface module of service operation module dynamically, perhaps according to other dynamic new zone of application of mode, and this zone is initialized to one or more than one round-robin queue; If set in advance the words of measuring point, when then the ratio that takies the memory block when call bill data reaches default measuring point, then alarm module also reads the call bill data in the cache module, and write in the dialect monofile, these partial CDR data are deposited in database or the file by other module artificial or that set in advance again afterwards.
In conjunction with the embodiments the method for recording call list among the present invention is described in detail again below.
Embodiment one:
The system that method in the present embodiment is based on first kind of recording call list is in advance to realize, adopt in the present embodiment and finish ticket writing by the service operation module, and call bill data is write the buffer zone by the interface module that calls loading, be responsible for connecting by sending module with outside call bill data memory cell, and from the buffer zone, read call bill data and send to the call bill data memory cell, the call bill data memory cell is arranged in the independent server host, finishes reception with the mutual and call bill data of sending module by the receiver module of inside.Wherein, the buffer zone is created by the interface module of service operation module loading, is perhaps created by sending module.
Referring to Fig. 7, Fig. 7 is the flow chart of first embodiment of method of recording call list among the present invention.As shown in Figure 7, this flow process comprises the steps:
Step 701 is created and the initialization buffer zone.
In this step, the buffer zone can be pre-created, and also can be created by the interface module that calls loading when initial launch and the memory ticket data by the service operation module, perhaps created by sending module, and this buffer zone can be arranged in the internal memory.Be described in detail with regard to these two kinds of establishment modes respectively below.
Created by the interface module of service operation module loading: the service operation module is for the first time during the interface function of calling interface assembly, operating system at first is loaded into this interface module in the service operation module, in the process that is loaded, this interface module is created the shared drive district, promptly create the buffer zone that is used for the buffer memory call bill data by interface module, and this buffer zone is initialized to one or more than one round-robin queue, each round-robin queue comprises team's head pointer and a tail of the queue pointer.Wherein, team's head pointer points to the next position that will read, the position that the tail of the queue pointed next one will write, and the tail of the queue pointer takies a character of formation.And then the interface function that provides of executive's interface assembly.
When starting sending module, sending module is at first opened the shared drive district of being created by interface module, and according to the mode the same with interface module the shared drive district is initialized to one or more than one round-robin queue.
Create by sending module: at first start sending module, sending module is created the shared drive district, promptly create the buffer zone that is used for the buffer memory call bill data by sending module, and this buffer zone is initialized to one or more than one round-robin queue, each round-robin queue comprises team's head pointer and a tail of the queue pointer.Wherein, team's head pointer points to the next position that will read, the position that the tail of the queue pointed next one will write, and the tail of the queue pointer takies a character of formation.
When service operation module for the first time during the interface function of calling interface assembly, operating system at first is loaded into this interface module in the service operation module, in the process that is loaded, interface module is opened the shared drive district of being created by sending module, and the shared drive district is initialized to one or more than one round-robin queue, and then the interface function that provides of executive's interface assembly according to the mode the same with sending module.
Wherein the shared drive district is initialized to one or be meant: separately according to one or more than round-robin queue's form of one more than one round-robin queue, corresponding address space is corresponding with the address space of itself, be convenient to the round-robin queue in shared drive district is operated.
The service operation module during interface function of calling interface assembly, is no longer carried out loading procedure once more afterwards, and the only operation that provides of executive's interface function.During for the interface function of other service operation module invokes interface module, interface module can be loaded in other service operation module, and open shared drive district by the interface module initial creation, according to same one or, that corresponding address space is corresponding with the address space of itself more than the form of one round-robin queue.
Wherein, when team's head pointer was identical with the tail of the queue pointer, the expression formation was empty.When team's head pointer greater than the tail of the queue pointer and differ when being 1 with the tail of the queue pointer or tail of the queue pointer and team head pointer differ whole queue length when subtracting 1, the expression queue full.To the operation of round-robin queue in the buffer zone, be not synchronous between writing and reading, but two separate processes are gone operation according to tail of the queue and team's head pointer respectively.Wherein round-robin queue express just in the thought of a memory space cyclic access, be not to refer to that the physical structure of memory space is annular.
Step 702, record moves professional ticket, and the call bill data that is write down is deposited in the buffer zone.
In this step, the service operation module records is moved professional ticket, and the call bill data of record is write the tail of the queue of round-robin queue by the interface function of calling interface assembly, promptly writes the position of tail of the queue pointed, this moment, the tail of the queue pointer changed, and pointed to the next position that will write.
Wherein, if what adopt in the step 701 is to create the buffer zone by the interface module of service operation module loading, even if then this moment, sending module was not activated, as long as the buffer zone less than, this step still can be carried out.Certainly in order to guarantee that there are enough spaces the buffer zone, sending module is the startup of morning as far as possible, so that data taking-up in time from the buffer zone is sent to the call bill data memory cell.
Step 703, the call bill data that reads from the buffer zone behind the buffer memory sends to the call bill data memory cell.
Operation in this step can be finished by sending module.Perhaps sending module can comprise other submodule, as connecting the monitoring submodule, sending submodule and alarm submodule.After finishing the initialization buffer zone, can start above-mentioned three submodules.
Wherein, connect the monitoring submodule at first with the call bill data memory cell in receiver module connect, use TCP/IP to carry out communication.In the process of connecting, connection monitoring submodule can send the TCP/IP connection request to receiver module, after the receiver module response and connecting, constantly receives the heartbeat detection request from receiver module, and generation heartbeat response signal sends to receiver module.When connecting unusual disconnection, can resend connection request, play the effect that connects of safeguarding.
Send submodule after connection is set up successfully, constantly team's head of round-robin queue reads call bill data from the buffer zone, promptly read call bill data, and send to receiver module by the connection monitoring submodule that has connected from the position that team of round-robin queue head pointer points to.This moment, team's head pointer changed, and pointed to the next position that will read.
The alarm submodule can regularly detect the situation that call bill data takies in the round-robin queue, when the ratio that takies round-robin queue when call bill data reaches preset alarm point, then send warning information, this warning information can send by writing alarm log, also can send by the interface information alarm, according to this warning information can be dynamically be new zone of application, buffer zone by sending module or interface module, and be initialized to one or more than one round-robin queue; If set in advance the words of measuring point, when then the ratio that takies round-robin queue when call bill data reaches default measuring point, then alarming submodule also reads the call bill data in the round-robin queue, and write in the dialect monofile, these partial CDR data are deposited in database or the file by other module artificial or that set in advance again afterwards.
Step 704, the call bill data memory cell receives call bill data, and the data that received are deposited in database or the file.
The call bill data memory cell can comprise in this step: receiver module and ticket writing module.Receiver module sends to the ticket writing module after receiving call bill data, and the ticket writing module will deposit in database or the file from the call bill data of receiver module.In addition, in order to prevent to receive data write direct waiting in line of being caused in database or the file or obstruction etc., also a buffer zone can be set in the call bill data memory cell, this buffer zone can be created when starting by receiver module, and also the buffer zone can be initialized to the form of round-robin queue, so that to the advanced row cache of the call bill data that is received.Wherein, receiver module can further include: monitor submodule, heartbeat detection submodule and receive submodule.
Wherein, monitor submodule and on the designated port of server, monitor the TCP/IP connection request that connects the monitoring submodule in the sending module, after receiving connection request, monitor submodule and can notify the foundation of reception submodule to be connected the connection of monitoring submodule with this, continue then to monitor.
The heartbeat detection submodule exists in the submodule when being connected the connection of monitoring submodule detecting to receive, periodically send the heartbeat detection request by receiving submodule to the connection monitoring submodule that has connected, if in the cycle, do not receive from the notice that receives the heartbeat response signal that receives submodule, the heartbeat that then will connect monitoring submodule correspondence not response times adds 1, and detect heartbeat not response times whether reach preset value, if reach preset value, then notice receives the submodule disconnection and should be connected the connection of monitoring submodule; If in the cycle, receive described notice, then will connect monitor the submodule correspondence heartbeat not response times put 0, restart to count.
Receive submodule when initially connecting, according to the notice of monitoring submodule, set up with described and be connected the connection of monitoring submodule, after connection is set up successfully, transmit the heartbeat detection submodule by the connection of having set up and issue the heartbeat detection request that connects the monitoring submodule, and read by connecting the data that the monitoring submodule sends over, judge that the data that received are heartbeat response signal or call bill data, if the heartbeat response signal then sends the notice that has received the heartbeat response signal to the heartbeat detection sub-module; If what receive is call bill data, then this call bill data is write in the buffer zone of call bill data memory cell establishment.Reading call bill data by the ticket writing module from this buffer area writes in database or the file.
Embodiment two:
The system that method in the present embodiment is based on second kind of recording call list is in advance realizing, in the present embodiment database or file and service operation module is arranged on the same main frame, and also comprises simultaneously: the ticket writing module.Present embodiment is applicable to the situation that traffic carrying capacity is less.Referring to Fig. 8, Fig. 8 is the flow chart of second embodiment of method of recording call list data among the present invention, and this flow process comprises the steps:
Step 801 is created and the initialization buffer zone.
In this step, the method for creating this buffer zone also can have two kinds.Specifically can perhaps create with creating by the interface module of service operation module invokes in embodiment illustrated in fig. 7 according to alternate manner.
Step 802, record moves professional ticket, and the call bill data that is write down is deposited in the buffer zone.
In this step, the service operation module records is moved professional ticket, and the call bill data that write down is write the tail of the queue of round-robin queue by the interface function of calling interface assembly, promptly writes the position of tail of the queue pointed, this moment, the tail of the queue pointer changed, and pointed to the next position that will write.
Step 803 reads the call bill data behind the buffer memory from the buffer zone, deposit in database or the file.
In this step, can by the ticket writing module constantly from the buffer zone team's head of round-robin queue read call bill data, promptly from the position that team of round-robin queue head pointer points to read call bill data and deposit database in or file, this moment, team's head pointer changed, and pointed to the next position that will read.
In addition, also may further include in this method: regularly detect the situation that takies of call bill data in the buffer zone, when the ratio that takies buffer area when call bill data reaches preset alarm point, then send warning information etc.The operation that wherein is used for regularly detecting the situation that takies of buffer zone call bill data can be finished by alarm module.
Alarm module regularly detects the situation that call bill data takies in the round-robin queue, when the ratio that takies round-robin queue when call bill data reaches preset alarm point, then send warning information, this warning information can send by writing alarm log, also can send by the interface information alarm, according to this warning information can be dynamically be new zone of application, buffer zone by interface module or alternate manner, and be initialized to one or more than one round-robin queue; If set in advance measuring point, when then the ratio that takies round-robin queue when call bill data reached default measuring point, then alarm module also read the call bill data in the round-robin queue, and deposits in database or the file.
Above-described specific embodiment; purpose of the present invention, technical scheme and beneficial effect are further described; institute is understood that; the above only is specific embodiments of the invention; and be not intended to limit the scope of the invention; within the spirit and principles in the present invention all, any modification of being made, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (11)

1. the system of a recording call list is characterized in that, this system comprises: at least one business unit and call bill data memory cell, and described business unit comprises:
Be used to write down the professional ticket that moves, and the call bill data that is write down exported to the service operation module of cache module;
The cache module that is used for the call bill data of buffer memory service operation module output;
Be used for reading call bill data behind the buffer memory, and send to the sending module of call bill data memory cell from cache module;
Described call bill data memory cell comprises:
Be used to receive the call bill data that comes from sending module, and export the receiver module of this call bill data;
Be used to receive call bill data, and deposit the ticket writing module in database or the file in;
Wherein,
Described sending module comprises: send submodule and connect the monitoring submodule;
Described receiver module comprises: receive submodule and monitor submodule; And
Connect the monitoring submodule, be used for when initially connecting, send connection request, after connecting, transmit the call bill data that sends submodule to monitoring submodule;
Send submodule, be used for after connection is set up successfully, the call bill data that will read from the cache module of business unit sends to the reception submodule by connecting the monitoring submodule; And
The monitoring submodule is used to monitor the connection request that connects the monitoring submodule, and after listening to connection request, notice receives submodule foundation and is connected the connection of monitoring submodule with this;
Receive submodule, be used for according to the notice of monitoring submodule, set up with described and be connected the connection of monitoring submodule, after connection is set up successfully, receive to connect the call bill data that the monitoring submodule is transmitted, and the call bill data that is received is exported to ticket writing module in the call bill data memory cell.
2. the system as claimed in claim 1 is characterized in that, described call bill data memory cell further comprises: cache module,
Then described reception submodule is used for the call bill data that receives is exported to the cache module of call bill data memory cell;
The cache module of described call bill data memory cell is used for the call bill data that the buffer memory receiver module is exported;
Described ticket writing module is used for reading call bill data from the cache module of call bill data memory cell, and deposits in database or the file.
3. the system as claimed in claim 1 is characterized in that, described receiver module further comprises:
The heartbeat detection submodule, be used for when detecting the existence of reception submodule and being connected the connection of monitoring submodule, periodically send the heartbeat detection request by receiving submodule to connecting the monitoring submodule, if in the cycle, do not receive from the notice that receives the heartbeat response signal that receives submodule, then with heartbeat not response times add 1, and detect heartbeat not response times whether reach preset value, when reaching preset value, notice receives submodule and disconnects and should be connected the connection of monitoring submodule; If in the cycle, receive described notice, then with heartbeat not response times put 0, restart counting;
Then described connection is monitored submodule and is further used for: after connecting, receive the heartbeat detection request that the heartbeat detection submodule sends by the reception submodule, and generation heartbeat response signal sends to the reception submodule;
Described reception submodule is further used for: after connecting, transmit the heartbeat detection submodule and issue the heartbeat detection request that connects the monitoring submodule, and receive from the heartbeat response signal that connects the monitoring submodule, after receiving the heartbeat response signal, send the notice that has received the heartbeat response signal to the heartbeat detection sub-module.
4. as one of any described system of claim 1 to 3, it is characterized in that described sending module further comprises:
The alarm submodule, the cache module call bill data that is used for the periodic monitor business unit takies the situation of memory block, when the ratio that takies the memory block when call bill data reaches preset alarm point, then sends warning information.
5. system as claimed in claim 4 is characterized in that, described alarm submodule is further used for: when the ratio that takies the memory block when call bill data reaches default measuring point, then call bill data is write in the dialect monofile.
6. system as claimed in claim 2 is characterized in that, described cache module comprises: one or more than one round-robin queue; And each round-robin queue comprises: team's head pointer and tail of the queue pointer, wherein,
Team's head pointer is used in reference to the position that will read to the next one, and call bill data is read in the described sending module position that team's head pointer of round-robin queue points to from professional unit caches module at every turn; Call bill data is read in the described ticket writing module position that team's head pointer of round-robin queue points to from call bill data memory cell cache module at every turn;
The tail of the queue pointer is used in reference to the position that will write to the next one, and described service operation module deposits call bill data in the position of the tail of the queue pointed of round-robin queue in the business unit cache module at every turn; Described receiver module deposits call bill data in the position of the tail of the queue pointed of round-robin queue in the call bill data memory cell cache module at every turn.
7. the method for a recording call list, the system that is used for recording call list, it is characterized in that, the system of described recording call list comprises: at least one business unit and call bill data memory cell, and described business unit comprises: service operation module, cache module and include the sending module that connects monitoring submodule and send submodule; Described call bill data memory cell comprises: include the receiver module and the ticket writing module that receive submodule and monitor submodule;
This method comprises,
Buffer zone in establishment and the initialization cache module starts sending module,
When initially connecting, connect the monitoring submodule and send connection request to monitoring submodule; Monitor the connection request that the submodule monitoring connects the monitoring submodule, after listening to connection request, notice receives submodule foundation and is connected the connection of monitoring submodule with this, and continues to monitor; Receive submodule according to the notice of monitoring submodule, set up with described and be connected the connection of monitoring submodule;
When business took place, the service operation module records was moved professional ticket, and with the call bill data buffer memory that write down to cache module;
After connection is set up successfully, send the call bill data submodule reads buffer memory from described cache module after, send to the reception submodule by connecting the monitoring submodule; Receive submodule and receive the call bill data that connects the forwarding of monitoring submodule, and the call bill data that is received is deposited in database or the file by the ticket writing module.
8. method as claimed in claim 7 is characterized in that, the described buffer memory that carries out is: call bill data is deposited in the buffer zone in the cache module; The described call bill data that reads behind the buffer memory is: read call bill data from the buffer zone.
9. method as claimed in claim 7, it is characterized in that, buffer zone in described establishment and the initialization cache module is: the buffer zone is designed to one or more than one round-robin queue, and team's head pointer of each round-robin queue points to the next position that will read, the position that the tail of the queue pointed next one will write;
Describedly deposit call bill data in buffer zone and be: call bill data is write the position of round-robin queue's tail of the queue pointed in the buffer zone, and the tail of the queue pointer is changed into and pointed to the next position that will write;
The described call bill data that reads from the buffer zone is: call bill data is read in the position that team of round-robin queue head pointer points to from the buffer zone, and team's head pointer is changed into the next position that will read of sensing.
10. method as claimed in claim 7 is characterized in that, after the described call bill data that reads behind the buffer memory, deposits in before database or the file, further comprises: the call bill data that receives is write earlier in another buffer zone; Reading call bill data afterwards from this buffer zone deposits in database or the file.
11. method as claimed in claim 7 is characterized in that, this method further comprises: regularly detect the situation that takies of call bill data in the buffer zone, when the ratio that takies buffer area when call bill data reaches preset alarm point, then send warning information; If there is a measuring point, when then the ratio that takies the memory block when call bill data reached default measuring point, alarm module write call bill data in the dialect monofile.
CN2006101269186A 2006-09-06 2006-09-06 System and method for recording call list Expired - Fee Related CN1925530B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2006101269186A CN1925530B (en) 2006-09-06 2006-09-06 System and method for recording call list

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2006101269186A CN1925530B (en) 2006-09-06 2006-09-06 System and method for recording call list

Publications (2)

Publication Number Publication Date
CN1925530A CN1925530A (en) 2007-03-07
CN1925530B true CN1925530B (en) 2011-01-05

Family

ID=37817984

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2006101269186A Expired - Fee Related CN1925530B (en) 2006-09-06 2006-09-06 System and method for recording call list

Country Status (1)

Country Link
CN (1) CN1925530B (en)

Families Citing this family (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101068280B (en) * 2007-06-21 2011-01-19 中兴通讯股份有限公司 Method and device for controlling call flow according to toll ticket
CN101855839B (en) * 2007-10-31 2013-02-06 上海贝尔股份有限公司 Method for doubly backing up files asynchronously
CN101345918B (en) * 2008-08-14 2013-08-07 中兴通讯股份有限公司 Service handling method and system based on integrated service management platform
CN101599861B (en) * 2009-06-30 2011-08-10 中兴通讯股份有限公司 Method and device for acquiring data in network management intermediate library
CN103838757B (en) * 2012-11-26 2017-06-09 腾讯科技(深圳)有限公司 To the processing system and method for the relation chain data long of user
CN104572838A (en) * 2014-12-11 2015-04-29 北京京东尚科信息技术有限公司 Improved system and method for writing data to database
CN105182331A (en) * 2015-08-25 2015-12-23 电子科技大学 Airborne radar real-time signal processing method based on local area network and graphics processor
CN105447136A (en) * 2015-11-20 2016-03-30 上海斐讯数据通信技术有限公司 Method and system for improving database writing speed on the basis of WiFi (Wireless Fidelity) smart socket
CN107040599A (en) * 2017-04-20 2017-08-11 新华三技术有限公司 Bgp neighbor disconnecting method and device
CN107592275A (en) * 2017-11-09 2018-01-16 深圳门之间科技有限公司 One kind is lined up control method and its system
CN114089707B (en) * 2021-11-18 2023-09-22 佛山冠湾智能科技有限公司 Servo driving system alarm device and alarm method

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1168216A (en) * 1995-01-09 1997-12-17 诺基亚流动电话有限公司 Dynamic allocation of radio capacity in TDMA system
CN1267414A (en) * 1997-07-14 2000-09-20 诺基亚网络有限公司 Implementation of access service
CN1411247A (en) * 2001-09-29 2003-04-16 华为技术有限公司 Method of realizing
CN1773449A (en) * 2004-11-12 2006-05-17 国际商业机器公司 Method, apparatus, and computer program product for implementing enhanced circular queue using loop counts

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1168216A (en) * 1995-01-09 1997-12-17 诺基亚流动电话有限公司 Dynamic allocation of radio capacity in TDMA system
CN1267414A (en) * 1997-07-14 2000-09-20 诺基亚网络有限公司 Implementation of access service
CN1411247A (en) * 2001-09-29 2003-04-16 华为技术有限公司 Method of realizing
CN1773449A (en) * 2004-11-12 2006-05-17 国际商业机器公司 Method, apparatus, and computer program product for implementing enhanced circular queue using loop counts

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
JP特开平7-23139 1995.01.24
说明书第7页第1段,第15页1,2段.

Also Published As

Publication number Publication date
CN1925530A (en) 2007-03-07

Similar Documents

Publication Publication Date Title
CN1925530B (en) System and method for recording call list
JP2646385B2 (en) Call transfer control method and apparatus
CN103164256A (en) Processing method and system capable of achieving one machine supporting high concurrency
CN102196021A (en) System for remotely erasing data, method, server, and mobile device thereof
WO2014106382A1 (en) Power supply method and apparatus for access device
WO2012075755A1 (en) Mobile terminal and anti-theft method thereof
CN102014021A (en) Method and device for controlling connection/disconnection of data link
CN102970446A (en) Method and device for reminding calling party in case of busy signals
EP0383660A1 (en) Rate reservation in an asynchronous packet network
CN111522650A (en) Service request processing method and device of distributed system and electronic equipment
EP2224671B1 (en) Method, apparatus and computer program for merging telephony services over circuit switched network and packet switched data network
US20110176539A1 (en) Method and device for processing multimedia messaging service notification message and multimedia messaging service receiving system
EP1577785A1 (en) Modem sharing device in a PDA phone
US20070156547A1 (en) Method, System, Device and Function for Generating and Transferring a Bill
CN102056108B (en) Short message cache method and device and telecommunication smart card
CN101610477A (en) The treatment system of multimedia messaging service, MMS and method
CN100546326C (en) IP phone local charging system and method
US5200990A (en) Method of recovering speech path of pre-engaged call on restarting keyphone exchange system
KR101047861B1 (en) Telephony Management System
KR100207820B1 (en) Telephone for lan and method for operating it
US20100232590A1 (en) Intelligent Outbound Calling
CN101022609B (en) Mobile terminal and method for realizing talking record/short message length customization
EP2387197B1 (en) Method, system, and media gateway for reporting dual tone multi-frequency digits
JP3157790B2 (en) Key telephone equipment
CN103560895B (en) Billing system with crashing-preventing function and server

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
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20110105

Termination date: 20170906