CN102256020A - Voice over Internet service control device and method - Google Patents

Voice over Internet service control device and method Download PDF

Info

Publication number
CN102256020A
CN102256020A CN2011100864166A CN201110086416A CN102256020A CN 102256020 A CN102256020 A CN 102256020A CN 2011100864166 A CN2011100864166 A CN 2011100864166A CN 201110086416 A CN201110086416 A CN 201110086416A CN 102256020 A CN102256020 A CN 102256020A
Authority
CN
China
Prior art keywords
service
voice
voice service
state
behalf
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.)
Pending
Application number
CN2011100864166A
Other languages
Chinese (zh)
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.)
Shenzhen Gongjin Electronics Co Ltd
Original Assignee
Shenzhen Gongjin Electronics 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 Shenzhen Gongjin Electronics Co Ltd filed Critical Shenzhen Gongjin Electronics Co Ltd
Priority to CN2011100864166A priority Critical patent/CN102256020A/en
Publication of CN102256020A publication Critical patent/CN102256020A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Telephonic Communication Services (AREA)

Abstract

The invention discloses a voice over Internet service control device and a voice over Internet service control method. The device comprises a master voice service control module and N voice service agent sub-modules comprising state control blocks, wherein the master voice service control module is used for receiving and resolving a control command from a user, transmitting a starting/stopping request message to a corresponding voice service agent sub-module according to a resolution result, executing a starting/stopping command and transmitting a state reporting message to the voice service agent sib-module; and the voice service agent sub-modules correspond to each service processes, and are used for providing a universal interface for the service processes, judging whether the current state of a corresponding service process is consistent with a request state or not when receiving the starting/stopping request message, transmitting the starting/stopping command to the master voice service control module if the current state of the corresponding service process is inconsistent with the request state, updating a service process state recorded and displayed by the state control block according to the state reporting message and performing corresponding processing according to the current state of the service process. The device and the method are universal for different voice solutions, and anomaly detection and recovery functions are realized.

Description

A kind of voice-over-net service control device and method
Technical field
The present invention relates to network voice communication (voice over internet protocol is called for short VOIP) field, relate in particular to a kind of VIOP service control device and method.
Background technology
Along with the development of Internet technology, common transfer of data can not satisfy people's demand, and is also universal day by day with the advantage of its lower cost and networking flexibility based on the voice communication of packet data network.The telecommunication terminal equipment of new production at present all can be supported the VOIP function gradually, thereby also corresponding claiming controlled in the service of VOIP on the terminal equipment.
Because VOIP is a complication system that relates to bottom DSP, application layer UA state machine, signaling protocol stack, whether enables the control procedure that this service is a series of process group, module.And each chip, each supplier's specific implementation has again than big-difference, in order to adapt to these difference, usually need understand in depth earlier in the prior art after the realization of concrete scheme and to be embedded into concrete scheme by specific I PC technology and to control in realizing, loaded down with trivial details and not general.In addition, because speech business is more, under the network environment and user's operational circumstances of complexity, unusual situation might appear serving, bigger if can not in time recover to the influence of user experience, and existing solution is not considered this problem.
Summary of the invention
The object of the present invention is to provide a kind of VIOP service control device, have the function of simply controlling the startup and the termination of VIOP related service efficiently.
Another object of the present invention is to provide a kind of VIOP service control method, is common to various voice solutions, can detect service abnormal conditions and recovery in time.
The objective of the invention is to be achieved through the following technical solutions.
A kind of voice-over-net service control device comprises:
Voice service master control module, be used for receiving and resolving user's control commands, act on behalf of submodule transmission starting/stop request message according to analysis result to the voice service of correspondence, execution is acted on behalf of the startup of submodule/cease and desist order from voice service, and starts/stop the back in execution and act on behalf of submodule status report message to voice service.
Submodule is acted on behalf of in N voice service that comprises the State Control piece, correspond respectively to each service processes, the interface of the service processes that is used to provide general, receiving to start/judge when stopping request message whether the current state of corresponding service processes is consistent with solicited status, if inconsistent then the transmission to voice service master control module starts/cease and desist order; Service processes state according to received status report messages update mode controll block record demonstration; Current state according to service processes is carried out respective handling.
Preferably, above-mentioned voice-over-net service control device also comprises asynchronous signal processing module, be used to catch the asynchronous signal that triggers when each service processes withdraws from and carry out the exit status parsing, act on behalf of submodule status report message to the voice service of correspondence according to analysis result.
Preferably, in the above-mentioned voice-over-net service control device, described voice service master control module, the state that also is used for each service processes of poll is acted on behalf of submodule to the voice service of correspondence and is sent and start request message and carry out voice service and act on behalf of the starting command that submodule returns when finding to have service processes unusual.
A kind of voice-over-net service control method comprises step.
Voice service master control module receives and resolves user's control commands, acts on behalf of submodule transmission starting/stop request message according to analysis result to the voice service of correspondence.
The record that submodule reads its State Control piece is acted on behalf of in described voice service, whether current state and the solicited status of judging the corresponding with service process be inconsistent, if inconsistent, then send and start/cease and desist order, by this service processes of its startup/stop to voice service master control module; Starting/stopping to finish after, voice service master control module is acted on behalf of submodule status report message to the voice service of correspondence, by its state of a control controll block update mode.
Preferably, said method also comprises: the state of each service processes of voice service master control module poll, when finding to have service processes unusual, act on behalf of submodule and send and start request message, act on behalf of submodule in voice service and confirm that the current state of this service processes and solicited status restart this service processes after inconsistent to the voice service of correspondence.
Preferably, said method also comprises: when each service processes withdraws from, asynchronous signal processing module is caught the asynchronous signal that triggers when each service processes withdraws from and is carried out exit status and resolve, if withdraw from unusually, then Dui Ying voice service is acted on behalf of submodule and is sent the startup request message to voice service master control module, restarts this service processes by it.
The embodiment of the invention compared with prior art, beneficial effect is:
Among the present invention, the service processes that all voice are relevant all starts and stops and guarantee the order execution of each control operation by voice service master control module; In startup and termination procedure, service processes can be divided into several general states and control, strengthen the compatibility of its adaptive various voice solutions, simply be easy to realize; In addition, can also monitor the service processes that withdraws from unusually and in time restart this service processes, the reaction time that unusual back voice service recovers can be controlled in 1 minute, had strengthened fault-tolerance, had optimized user experience.
Description of drawings
Fig. 1 is the structural representation of VIOP service control device in the embodiment of the invention.
Fig. 2 starts VIOP service method flow chart in the embodiment of the invention.
Fig. 3 stops VIOP service method flow chart in the embodiment of the invention.
Fig. 4 is that monitoring VIOP serves method flow diagram unusual and that recover in the embodiment of the invention.
Embodiment
In order to make purpose of the present invention, technical scheme and advantage clearer,, the present invention is further elaborated below in conjunction with drawings and Examples.Should be appreciated that specific embodiment described herein only in order to explanation the present invention, and be not used in qualification the present invention.
As shown in Figure 1, the VIOP service control device comprises in the present embodiment: voice service master control module, the individual voice service that comprises the State Control piece of N are acted on behalf of submodule (wherein, the number of N=service processes), asynchronous signal processing module, voice service master control module, the effect of each functional module is as described below respectively.
(1) submodule is acted on behalf of in voice service, and the interface to front end UI provides general service processes provides general state control logic to service processes, the following function of specific implementation.
1. Message Processing: receiving to start/judge when stopping request message whether the current state of corresponding service processes is consistent with solicited status, if inconsistent then the transmission to voice service master control module starts/cease and desist order.
2. report is handled: the report message about the service processes startup that processed voice service master control module and asynchronous signal processing module are sent, thereby control its State Control piece update service state of a process for starting, normally withdraw from or withdraw from unusually, this state information as the input of service processes condition managing to do subsequent treatment.
3. universal phonetic service processes condition managing: carry out in the different stages and to handle code and service processes carries out alternately accordingly, if to satisfy the service operation demand---find that the voice service process is in normally exit status, then move thrashing code, comprise and remove kernel module, device node, environmental variance etc.; In case find that service processes is in exit status unusually, then order voice service master control module to restart this service processes and continue and monitor the update service process status.
(2) asynchronous signal processing module is used to catch the asynchronous signal that triggers when service processes withdraws from, the following function of specific implementation.
1. exit status is resolved: in case capture the asynchronous signal that triggers when service processes withdraws from, then detect exit status, extract process ID and withdraw from sign indicating number.
2. process status is upgraded: will withdraw from sign indicating number and be converted to reason, and act on behalf of submodule status report message to the voice service of the corresponding process ID of coupling, and be updated in the State Control piece by it.
(3) voice service master control module.
1. receive and resolve user's control commands, act on behalf of submodule transmission starting/stop request message to the voice service of correspondence according to analysis result.
2. carry out from voice service and act on behalf of the startup of submodule/cease and desist order, and after execution, act on behalf of submodule status report message to voice service.
3. the state of each service processes of poll is acted on behalf of submodule to the voice service of correspondence and is sent the startup request message, and carries out starting command when finding to have service processes unusual; In the present embodiment nuclear sound service processes is divided several generic state---in waiting to start, starting, start and several states such as finish, normally withdraw from, withdraw from unusually, polling procedure is specially.
If to be found to service processes is " waiting to start " state, then start this service processes, and service processes is set is " in the startup " state.
At " in the startup " state, after specifying delay time service processes being set is " in service " state, and " startup " status report messages is issued corresponding voice service act on behalf of submodule.
If find that service processes is " in service " state, then monitor this service processes state, if do not exist, be set to " stopping " state.
If find that service processes is " stopping " state, transmission " stopping " reporting to corresponding voice service and acts on behalf of submodule, and indicates concrete reason (normally withdraw from or withdraw from unusually).
If finding service processes be " stopping " state, send signal specific and stop service processes, and the state that the State Control piece is set is " stopping ".
If finding service processes be " terminations " state, send termination signal termination service processes, and the state that the State Control piece is set is " stopping ".
See also Fig. 2, this figure is depicted as the method flow that starts voice service, specifically comprises step:
201, the user sends starting command by web or other UI.
202, after voice service master control module receives starting command, be updated to corresponding voice service and act on behalf of in the solicited status of submodule.
203, the current state of submodule comparison of request state and service processes is acted on behalf of in voice service, if inconsistent, sends starting command to voice service master control module.
204, voice service master control module starts the corresponding with service process, and the state of setting is starting.
205, through after the fixed time, it is running that voice service master control module is provided with the service processes state.
206, voice service master control module reverting starting success report message is acted on behalf of submodule to voice service.
207, voice service is acted on behalf of submodule update mode controll block and recoil state and is given user UI end.
See also Fig. 3, this figure is depicted as the method flow that stops voice service, comprises that specifically step is as follows.
301, the user sends by web or other UI and ceases and desist order.
302, after voice service master control module receives and ceases and desist order, be updated to corresponding voice service and act on behalf of in the solicited status of submodule.
303, the current state of submodule comparison of request state and service processes is acted on behalf of in voice service, if inconsistent, send and ceases and desist order to voice service master control module.
304, after voice service master control module was received and ceased and desisted order, the state of setting was TERMME, to the service processes transmission SIGTERM of correspondence signal.
305, through after the fixed time, voice service master control module is inquired about the state of this service processes, and state then is set is STOPPED if withdraw from, and sends the SIGKILL signal if withdraw to service processes.
306, voice service master control module is replied and to be stopped successfully report message and act on behalf of submodule to voice service.
307, voice service is acted on behalf of the submodule update mode to corresponding State Control piece, and gives user UI end with recoil state.
See also Fig. 4, this figure is depicted as the method flow that recovers after the monitoring voice service unusually, comprises that specifically step is as follows.
401, the state of each service processes of master control thread poll.
401 ', when asynchronous signal processing module detects service processes and withdraws from, exit status is resolved the back to act on behalf of submodule status report message corresponding to the voice service of this service processes.
402, the master control thread is if find that service processes is unusual, and then transmission is withdrawed from REASON and acted on behalf of submodule to the voice service corresponding to this service processes.
403, the submodule relatively configuration status and the current state of service processes are acted on behalf of in voice service, if both are inconsistent, then send starting command to voice service master control module.
404, voice service master control module starts corresponding service processes after receiving starting command, and this process repeats no more with shown in Figure 2.
The above only is preferred embodiment of the present invention, not in order to restriction the present invention, all any modifications of being done within the spirit and principles in the present invention, is equal to and replaces and improvement etc., all should be included within protection scope of the present invention.

Claims (6)

1. a voice-over-net service control device is characterized in that, this device comprises:
Voice service master control module, be used for receiving and resolving user's control commands, act on behalf of submodule transmission starting/stop request message according to analysis result to the voice service of correspondence, execution is acted on behalf of the startup of submodule/cease and desist order from voice service, and starts/stop the back in execution and act on behalf of submodule status report message to voice service;
Submodule is acted on behalf of in N voice service that comprises the State Control piece, correspond respectively to each service processes, the interface of the service processes that is used to provide general, receiving to start/judge when stopping request message whether the current state of corresponding service processes is consistent with solicited status, if inconsistent then the transmission to voice service master control module starts/cease and desist order; Service processes state according to received status report messages update mode controll block record demonstration; Current state according to service processes is carried out respective handling.
2. voice-over-net service control device as claimed in claim 1, it is characterized in that, also comprise asynchronous signal processing module, be used to catch the asynchronous signal that triggers when each service processes withdraws from and carry out the exit status parsing, act on behalf of submodule status report message to the voice service of correspondence according to analysis result.
3. voice-over-net service control device as claimed in claim 1 or 2, it is characterized in that, described voice service master control module, the state that also is used for each service processes of poll is acted on behalf of submodule to the voice service of correspondence and is sent and start request message and carry out voice service and act on behalf of the starting command that submodule returns when finding to have service processes unusual.
4. voice-over-net service control method is characterized in that the method comprising the steps of:
Voice service master control module receives and resolves user's control commands, acts on behalf of submodule transmission starting/stop request message according to analysis result to the voice service of correspondence;
The record that submodule reads its State Control piece is acted on behalf of in described voice service, whether current state and the solicited status of judging the corresponding with service process be inconsistent, if inconsistent, then send and start/cease and desist order, by this service processes of its startup/stop to voice service master control module; Starting/stopping to finish after, voice service master control module is acted on behalf of submodule status report message to the voice service of correspondence, by its state of a control controll block update mode.
5. voice-over-net service control method as claimed in claim 4, it is characterized in that, described method also comprises: the state of each service processes of voice service master control module poll, when finding to have service processes unusual, act on behalf of submodule and send and start request message, act on behalf of submodule in voice service and confirm that the current state of this service processes and solicited status restart this service processes after inconsistent to the voice service of correspondence.
6. as claim 4 or 5 described voice-over-net service control methods, it is characterized in that, described method also comprises: when each service processes withdraws from, asynchronous signal processing module is caught the asynchronous signal that triggers when each service processes withdraws from and is carried out exit status and resolve, if withdraw from unusually, then Dui Ying voice service is acted on behalf of submodule and is sent the startup request message to voice service master control module, restarts this service processes by it.
CN2011100864166A 2011-04-07 2011-04-07 Voice over Internet service control device and method Pending CN102256020A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2011100864166A CN102256020A (en) 2011-04-07 2011-04-07 Voice over Internet service control device and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2011100864166A CN102256020A (en) 2011-04-07 2011-04-07 Voice over Internet service control device and method

Publications (1)

Publication Number Publication Date
CN102256020A true CN102256020A (en) 2011-11-23

Family

ID=44983003

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2011100864166A Pending CN102256020A (en) 2011-04-07 2011-04-07 Voice over Internet service control device and method

Country Status (1)

Country Link
CN (1) CN102256020A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101311902A (en) * 2007-05-22 2008-11-26 上海宇梦通信科技有限公司 State machine system associating with multi-instance and its realization method
EP2037656A2 (en) * 2007-09-12 2009-03-18 Avaya, Inc. Signature-free intrusion detection
CN101610188A (en) * 2009-07-30 2009-12-23 迈普通信技术股份有限公司 Sip server restoring method of service process fault and sip server
CN101753577A (en) * 2009-12-17 2010-06-23 东南大学 VoIP communication system based on SIP protocol and communication method thereof

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101311902A (en) * 2007-05-22 2008-11-26 上海宇梦通信科技有限公司 State machine system associating with multi-instance and its realization method
EP2037656A2 (en) * 2007-09-12 2009-03-18 Avaya, Inc. Signature-free intrusion detection
CN101610188A (en) * 2009-07-30 2009-12-23 迈普通信技术股份有限公司 Sip server restoring method of service process fault and sip server
CN101753577A (en) * 2009-12-17 2010-06-23 东南大学 VoIP communication system based on SIP protocol and communication method thereof

Similar Documents

Publication Publication Date Title
CN102185718B (en) System upgrading method and device
CN102291430B (en) Method for processing allocation information of Internet of things, Internet of things platform and system
CN103139157B (en) A kind of based on the network communication method of socket, Apparatus and system
CN109766201A (en) Task distribution method, server, client and system
CN103200022B (en) A kind of data download abnormality eliminating method, equipment and system
CN101316203B (en) Method for monitoring embedded IP terminal internetwork connection condition
CN102957623A (en) Maintenance method and equipment of neighborhood of border gate protocol
US20170280410A1 (en) Method, device and system for implementing information self-registration, and computer storage medium
CN108710534A (en) The tune of multi-process plays method, apparatus, terminal device and computer storage media
CN105025467B (en) A kind of terminal control method and system based on MDM
CN101388792B (en) Single board plug-and-use processing method, device and telecommunication system
CN109787789B (en) Compatibility management method, device and equipment for software upgrading and storage medium
CN102185727B (en) System and method for writing serial numbers to product firmware in batches
CN104348645A (en) Server and data transmission method of server
CN107623581A (en) Service list generation method, apparatus and system, acquisition, report method and device
CN109495375A (en) Processing method, device, electronic equipment and the storage medium of MQTT message
CN112817883A (en) Method, device and system for adapting interface platform and computer readable storage medium
CN105988882B (en) A kind of application software fault repairing method and terminal device
CN102256020A (en) Voice over Internet service control device and method
CN102130927B (en) Update method, the Apparatus and system of session window in instant communication software
CN102752365B (en) The method and apparatus of information processing
CN109194738A (en) Remote reboot method, routing development board and hardware bottom plate
US9361191B2 (en) Methods and apparatus for data recovery following a service interruption at a central processing station
CN109413118A (en) A kind of method, apparatus that realizing session synchronization and storage medium, program product
CN105591794A (en) Method and device for managing network equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C53 Correction of patent of invention or patent application
CB02 Change of applicant information

Address after: 518067 Nanshan medical equipment Industrial Park, No. 1019 Nanhai Road, Shenzhen, Guangdong, Nanshan District B411-413

Applicant after: Shenzhen Gongjin Electronics Co., Ltd.

Address before: 518067 Nanshan medical equipment Industrial Park, No. 1019 Nanhai Road, Shenzhen, Guangdong, Nanshan District B411-413

Applicant before: Shenzhen Gongjin Electronics Co., Ltd.

C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20111123