CN108173707A - The control method and device that media resource uses - Google Patents
The control method and device that media resource uses Download PDFInfo
- Publication number
- CN108173707A CN108173707A CN201711236314.1A CN201711236314A CN108173707A CN 108173707 A CN108173707 A CN 108173707A CN 201711236314 A CN201711236314 A CN 201711236314A CN 108173707 A CN108173707 A CN 108173707A
- Authority
- CN
- China
- Prior art keywords
- resource
- media server
- media
- server
- information
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/10—Active monitoring, e.g. heartbeat, ping or trace-route
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/06—Management of faults, events, alarms or notifications
- H04L41/0681—Configuration of triggering conditions
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/08—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
- H04L43/0805—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability
- H04L43/0817—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability by checking functioning
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/16—Threshold monitoring
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Health & Medical Sciences (AREA)
- Cardiology (AREA)
- General Health & Medical Sciences (AREA)
- Environmental & Geological Engineering (AREA)
- Telephonic Communication Services (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The control method and device used the invention discloses a kind of media resource.Wherein, this method includes:The resource using information for being used to feed back the resource service condition of media server of media server transmission is received by signal server;By signal server, the use of the media resource on media server coordinated according to resource using information pair with signal server controls.The present invention solve due to signal server and Duo Tai media server fit systems it is bad caused by media server be difficult to manage the technical issues of.
Description
Technical field
The present invention relates to the communications field, the control method used in particular to a kind of media resource and device.
Background technology
The softswitch solution FreeSWITCH of phone is a currently very fashionable open source system, may be used as exchanging
Power traction is held up, user class interchanger (Private Branch Exchange, abbreviation PBX), multimedia gateway and multimedia service
Device etc..Many enterprises regard the telephone switching system of company with FreeSWITCH.Ye You enterprises are runed with FreeSWITCH
System, operation system are mainly concerned with multimedia gateway and media server.Operation system is needed to ensure high concurrent amount letter
Order is detached with media, i.e. a signal server and Duo Tai media servers coordinate to use.Implementation method is usually following step
Suddenly:1st, signal server is arranged to media around pattern;2nd, signal server is selected inside dial plan by certain strategy
Select the specified media server got well.
But for above method, there are many flaws.Such as signal server never knows that media server resources
Service condition, each dilatation are required for increasing corresponding dial plan on signal server, and Media Resource Server is difficult to pipe
Reason etc..
For it is above-mentioned the problem of, currently no effective solution has been proposed.
Invention content
The control method and device used an embodiment of the present invention provides a kind of media resource, at least to solve due to signaling
The technical issues of media server caused by server and Duo Tai media server fit systems are bad is difficult to manage.
One side according to embodiments of the present invention provides the control method that a kind of media resource uses, including:Pass through
Signal server receives making for the resource of resource service condition of feeding back the media server for media server transmission
Use information;By the signal server, taken according to the resource using information pair and the media that the signal server coordinates
The use of media resource on business device is controlled.
Optionally, by the signal server, coordinated according to the resource using information pair and the signal server
Media server on media resource use carry out control include:The media clothes are judged according to the resource using information
Whether business device is abnormal;In the case where judging result is abnormal for the media server, send out described for identifying
The warning information that media server is abnormal.
Optionally, include in the resource using information:The existing number of concurrent of the media server and media clothes
It is engaged in that in the case of the maximum number of concurrent that device allows, it is different to judge whether the media server occurs according to the resource using information
Often include:Whether the existing number of concurrent for judging the media server is more than the maximum number of concurrent;It is in judging result
In the case that the existing number of concurrent of the media server is more than the maximum number of concurrent, the media server hair is determined
It is raw abnormal.
Optionally, include in the resource using information:The media server sends heartbeat to the signal server
In the case of the heartbeat packet time interval of packet, judge whether the media server is abnormal according to the resource using information
Including:According to the heartbeat packet time interval, determine to determine time threshold that the media server is abnormal;Judge
The heartbeat packet that the media server is sent whether is received in the determining time threshold;It is to determine in judging result
The time threshold in do not receive the heartbeat packet that the media server is sent in the case of, determine the media server
It is abnormal.
Other side according to embodiments of the present invention additionally provides the control method that another media resource uses, packet
It includes:Obtain for feed back media server resource service condition resource using information;It is taken by media server to signaling
Business device sends the resource using information, wherein, the resource using information is for the signal server pair and the signaling
The use of media resource on the media server of server cooperation is controlled.
Optionally, obtain for feed back the media server resource service condition the resource using information it
Afterwards, it further includes:Judge whether the media server is abnormal according to the resource using information;It is described in judging result
In the case that media server is abnormal, send to identify the pre- of the media server exception to the signal server
Alert information.
Another aspect according to embodiments of the present invention additionally provides the control device that a kind of media resource uses, including:It connects
Module is received, making for feeding back the resource of the media server for media server transmission is received for passing through signal server
With the resource using information of situation;Control module, for passing through the signal server, according to the resource using information pair with
The use of media resource on the media server of the signal server cooperation is controlled.
Optionally, the control module includes:First judging unit, described in being judged according to the resource using information
Whether media server is abnormal;Issue unit, for being the situation that the media server is abnormal in judging result
Under, it sends out to identify the warning information that the media server is abnormal.
Optionally, first judging unit includes:First judgment sub-unit, in the resource using information packet
It includes:In the case of the maximum number of concurrent that the existing number of concurrent of the media server and the media server allow, institute is judged
Whether the existing number of concurrent for stating media server is more than the maximum number of concurrent;First determination subelement, for judging
As a result in the case of being more than the maximum number of concurrent for the existing number of concurrent of the media server, the media clothes are determined
Business device is abnormal.
Optionally, first judging unit includes:Second determination subelement, in the resource using information packet
It includes:In the case that the media server sends the heartbeat packet time interval of heartbeat packet to the signal server, according to described
Heartbeat packet time interval determines to determine time threshold that the media server is abnormal;Second judgment sub-unit is used
In the heartbeat packet for judging whether to receive the media server in the determining time threshold and sending;Third determines sub single
Member, for being not receive the heartbeat packet of the media server transmission in the determining time threshold in judging result
In the case of, determine that the media server is abnormal.
Another aspect according to embodiments of the present invention additionally provides the control device that another media resource uses, including:
Acquisition module, for obtain for feed back media server resource service condition resource using information;First sending module,
For sending the resource using information to signal server by media server, wherein, the resource using information is used for
The use of the media resource on media server that the signal server pair coordinates with the signal server controls.
Optionally, the control device further includes:Judgment module, for judging the matchmaker according to the resource using information
Whether body server is abnormal;Second sending module, for being the feelings that the media server is abnormal in judging result
Under condition, the warning information for identifying the media server exception is sent to the signal server.
In embodiments of the present invention, it in a manner that signal server and media server directly coordinate, is taken by signaling
Business device receives the resource using information for being used to feed back the resource service condition of the media server of media server transmission,
And the use of the media resource on the media server coordinated with the signal server according to the resource using information pair into
Row control, has reached real-time status and the management of signal server recordable media server, can also be selected according to certain strategy
The purpose of media server and automatic early-warning is selected, it is achieved thereby that media server management control fool's property, flexibility, intelligent
Technique effect, and then solve due to signal server and Duo Tai media server fit systems it is bad caused by media services
The technical issues of device is difficult to manage.
Description of the drawings
Attached drawing described herein is used to provide further understanding of the present invention, and forms the part of the application, this hair
Bright illustrative embodiments and their description do not constitute improper limitations of the present invention for explaining the present invention.In the accompanying drawings:
Fig. 1 is the flow chart for the control method that media resource according to embodiments of the present invention uses;
Fig. 2 is the flow chart of control method that another media resource according to embodiments of the present invention uses;
Fig. 3 is the structure diagram for the control device that media resource according to embodiments of the present invention uses;
Fig. 4 is the structure diagram of the control module 34 for the control device that media resource according to embodiments of the present invention uses;
Fig. 5 is that the first judgement of the control module 34 for the control device that media resource according to embodiments of the present invention uses is single
The structure diagram one of member 42;
Fig. 6 is that the first judgement of the control module 34 for the control device that media resource according to embodiments of the present invention uses is single
The structure diagram two of member 42;
Fig. 7 is the structure diagram of control device that another media resource according to embodiments of the present invention uses;
Fig. 8 is the preferred structure block diagram for the control device that another media resource according to embodiments of the present invention uses;
Fig. 9 is a kind of structural frames of managing medium resource device based on FreeSWITCH according to embodiments of the present invention
Figure;
Figure 10 is a kind of control method stream of managing medium resource based on FreeSWITCH according to embodiments of the present invention
Cheng Tu;
Figure 11 is the main brief work flow diagram of managing medium resource module according to embodiments of the present invention;
Figure 12 is the workflow schematic diagram of heartbeat packet thread according to embodiments of the present invention;
Figure 13 is the work flow diagram of media resource thread according to embodiments of the present invention.
Specific embodiment
In order to which those skilled in the art is made to more fully understand the present invention program, below in conjunction in the embodiment of the present invention
The technical solution in the embodiment of the present invention is clearly and completely described in attached drawing, it is clear that described embodiment is only
The embodiment of a part of the invention, instead of all the embodiments.Based on the embodiments of the present invention, ordinary skill people
Member's all other embodiments obtained without making creative work should all belong to the model that the present invention protects
It encloses.
It should be noted that term " first " in description and claims of this specification and above-mentioned attached drawing, "
Two " etc. be the object for distinguishing similar, and specific sequence or precedence are described without being used for.It should be appreciated that it uses in this way
Data can be interchanged in the appropriate case, so as to the embodiment of the present invention described herein can in addition to illustrating herein or
Sequence other than those of description is implemented.In addition, term " comprising " and " having " and their any deformation, it is intended that cover
Cover it is non-exclusive include, be not necessarily limited to for example, containing the process of series of steps or unit, method, system, product or equipment
Those steps or unit clearly listed, but may include not listing clearly or for these processes, method, product
Or the intrinsic other steps of equipment or unit.
According to embodiments of the present invention, a kind of embodiment of the method for media resource using control is provided, it should be noted that
Step shown in the flowchart of the accompanying drawings can perform in the computer system of such as a group of computer-executable instructions, and
And although showing logical order in flow charts, in some cases, can institute be performed with the sequence being different from herein
The step of showing or describing.
Fig. 1 is the flow chart for the control method that media resource according to embodiments of the present invention uses, as shown in Figure 1, the party
Method includes the following steps:
Step S102 receives the resource for being used to feed back media server of media server transmission by signal server
The resource using information of service condition;
Step S104, by signal server, the media services coordinated according to resource using information pair with signal server
The use of media resource on device is controlled.
By above-mentioned steps, can realize in embodiments of the present invention, it is direct with media server using signal server
The mode of cooperation, the resource for being used to feed back media server that media server transmission is received by signal server use feelings
The resource using information of condition, and the media resource on the media server coordinated with signal server according to resource using information pair
Use controlled, reached real-time status and the management of signal server recordable media server, also can be according to certain
Policy selection media server purpose, it is achieved thereby that media server management control fool's property, flexibility, intelligent skill
Art effect, and then it is difficult to solve media server caused by since signal server and Duo Tai media server fit systems are bad
In management the technical issues of.
The inventive embodiments can be by coordinating to implement with FreeSWITCH, and single FreeSWITCH is signaling and media
On a server, it can support that about 2000 is concurrent.Big concurrent use is done if necessary, then needs to use
FreeSWITCH does cluster.Cluster most critical is exactly to manage media resource, and this method can very easily manage media resource,
Have fool's property, flexibility, it is intelligent the advantages that.
By the above-mentioned this managing medium resource method based on FreeSWITCH, main managing medium resource module can be set
With from managing medium resource module, and by main managing medium resource module and from managing medium resource module cooperating.Specifically
On a media server, to be responsible for from the operation of managing medium resource module to main managing medium resource module transport medium server
The behaviour in service of resource;Main managing medium resource module is operated on signal server, is responsible for receiving all media servers
The media resource service condition sended over, the real-time status of record media server and management, also can be according to certain strategy
Select media server.
Preferably, by signal server, the media server coordinated according to resource using information pair with signal server
On media resource use carry out control can include:It is different to judge whether media server occurs according to resource using information
Often;In the case where judging result is abnormal for media server, send out for identify media server be abnormal it is pre-
Alert information.
Through the embodiment of the present invention, intelligent early-warning function can be realized, i.e. signal server can manage independently all media
Server, without it is artificial at the time of pay close attention to media server service condition, by setting reservation threshold, if arrived using resource
Up to reservation threshold or because network, delaying machine when other situations cause sub- media server unavailable, early warning is sent automatically
Information can be conveniently accomplished dilatation or other operations to warning module, and receiving warning information.And by setting related plan
Slightly, when making to receive warning message, signal server can select an available media server according to corresponding strategy, automatically
It replaces media server and completes dilatation.The setting can also realize that efficient media server uses, and will not cause single media
Server stress is excessive, certain media server will not be allowed to be constantly in idle state.
Preferably, can include in resource using information:The existing number of concurrent and media server of media server allow
Maximum number of concurrent in the case of, according to resource using information judge media server whether be abnormal including:Judge media
Whether the existing number of concurrent of server is more than maximum number of concurrent;It is more than most in the existing number of concurrent that judging result is media server
In the case of big number of concurrent, determine that media server is abnormal.
The embodiment of the present invention can include in resource using information:The existing number of concurrent and media server of media server
In the case of the maximum number of concurrent of permission, reservation threshold is set as maximum number of concurrent, judgement has number of concurrent more than maximum simultaneously
In the case of sending out number, determine that media server is abnormal.
Main managing medium resource module, sub- managing medium resource module and warning module, neutron matchmaker are concretely set
Body resource management module is run on a media server, and main managing medium resource module and warning module operate in signal server
On.Sub- managing medium resource module includes media server most to signal server moment transmission heartbeat packet, heartbeat packet content
It is big concurrent, it is existing concurrently to wait valuable sources situation.Main managing medium resource module is received from sub- managing medium resource module
Heartbeat package informatin, and moment record media server resource service condition.Main managing medium resource module is opened warning function and is come
Monitoring media server service condition.The warning module moment monitors the existing concurrent and maximum concurrent ratio of all sub- media servers
Example, if above certain threshold values, i.e. reservation threshold, i.e., determining media server is abnormal, and early warning further can be transmitted
Information can simultaneously require dilatation to warning module.The early warning that wherein warning module receives can be to be sent by short message and the form of phone
Early warning.
Meanwhile main managing medium resource module can register heartbeat packet interface and media when loading to FreeSWITCH
Resource acquisition interface, and open 1 media resource thread and carry out monitoring media resource service condition.Wherein media resource thread is used for
If monitoring media resource anxiety, matchmaker is sent to warning module for the media resource service condition of moment monitoring media server
Body resource anxiety needs the warning information of timely dilatation.
Preferably, can include in resource using information:Media server sends the heartbeat of heartbeat packet to signal server
In the case of packet time interval, according to resource using information judge media server whether be abnormal including:According to heartbeat packet
Time interval determines to determine time threshold that media server is abnormal;Judge in determining time threshold whether
Receive the heartbeat packet of media server transmission;It is not receive media server in determining time threshold in judging result
In the case of the heartbeat packet of transmission, determine that media server is abnormal.
The embodiment of the present invention can include in resource using information:Media server sends heartbeat packet to signal server
In the case of heartbeat packet time interval, reservation threshold is set as certain heartbeat packet time interval, is judged in determining heartbeat packet
In the case of the heartbeat packet for not receiving media server transmission in time interval, determine that media server is abnormal.
Main managing medium resource module, sub- managing medium resource module and warning module, neutron matchmaker are concretely set
Body resource management module is run on a media server, and main managing medium resource module and warning module operate in signal server
On.Sub- managing medium resource module includes media server and sends to signal server moment transmission heartbeat packet, heartbeat packet content
The valuable sources situation such as heartbeat packet time interval.Main managing medium resource module, which receives, to be come to sub- managing medium resource module
Heartbeat package informatin, and the heartbeat packet time that moment record receives.Main managing medium resource module opens warning function to monitor matchmaker
Body server service condition.The warning module moment is monitored whether in reservation threshold, if is received heartbeat packet, can be set reservation threshold
For 2 times, (it should be noted that 2 times of only a kind of citings herein, as the case may be or demand can also set 3 times, 4 times
Deng) transmission heartbeat packet time interval duration, if confiscated, determine that media server is abnormal, and can be further
It sends warning information and has informed that platform media server is in down state.The early warning that wherein warning module receives can be by short
The early warning that the form of letter and phone is sent.It is also a kind of citing that short message and the form of phone herein, which carries out early warning, for example, working as
It can also be by setting the alarm mode of sound that some can arouse attention or light when closer to the distance.
Meanwhile main managing medium resource module can register heartbeat packet interface and media when loading to FreeSWITCH
Resource acquisition interface, and 1 is opened to monitor heartbeat packet reception condition.Wherein heartbeat packet thread is used to monitor whether receipts constantly
To heartbeat packet, if not receiving heartbeat packet for a long time, the not available warning information of media server is sent to warning module.
Fig. 2 is the flow chart of control method that another media resource according to embodiments of the present invention uses, such as Fig. 2 institutes
Show, this method comprises the following steps:
Step S202, obtain for feed back media server resource service condition resource using information;
Step S204 sends resource using information by media server to signal server, wherein, resource using information
The use of the media resource on media server coordinated for signal server pair with signal server controls.
The embodiment of the present invention, being sent by media server to signal server makes for feeding back the resource of media server
With the resource using information of situation.Specific the present embodiment can be a kind of managing medium resource method based on FreeSWITCH, if
Put main managing medium resource module, sub- managing medium resource module and warning module, the operation of neutron managing medium resource module
On a media server, main managing medium resource module and warning module are operated on signal server.Sub- managing medium resource
Module sends log-on message when loading to main managing medium resource module, and log-on message may include media server name
Title, IP address, heartbeat packet time interval, maximum number of concurrent etc..After succeeding in registration, heartbeat packet is opened, heartbeat packet includes main
Include the maximum concurrently resource using information with the existing resource service condition for concurrently waiting and feeding back media server of server.Main matchmaker
After body resource management module receives log-on message, to the sub- media server information of data-base recording, and open and receive heartbeat packet
Thread.After the heartbeat packet for receiving sub- media, resource service condition is recorded to database, wherein, it may include in database preset
Sub- media server information and corresponding sub- media server control strategy.Main managing medium resource module provides certain plan
It is slightly used for routing, and an interface is provided and is used for dial plan, which can obtain available according to corresponding strategy
Media Resource Server.
According to this embodiment, it can be achieved that the automatic registrar information of media server, and Real-time Feedback media resource makes
With situation, while signal server can select an available media server according to corresponding strategy.Reach booting to use,
Without configuration, dilatation is convenient, a variety of strategies, the effect of flexible management.
Preferably, after the resource using information of resource service condition for feeding back media server is obtained, may be used also
To include:Judge whether media server is abnormal according to resource using information;It is media server in judging result
In the case of exception, the warning information for identifying media server exception is sent to signal server.
Another aspect according to embodiments of the present invention, additionally provides the control device that a kind of media resource uses, and Fig. 3 is root
According to the structure diagram for the control device that the media resource of the embodiment of the present invention uses, as shown in figure 3, the control that the media resource uses
Device processed includes:Receiving module 32, control module 34.The control device used below the media resource is described in detail.
Receiving module 32, for pass through signal server receive media server transmission for feeding back media server
Resource service condition resource using information;
Control module 34 is connected with above-mentioned receiving module 32, for passing through signal server, according to resource using information pair
Use with the media resource on the media server of signal server cooperation is controlled.
Fig. 4 is the structure diagram of the control module 34 for the control device that media resource according to embodiments of the present invention uses,
As shown in figure 4, the control module 34 includes:First judging unit 42, issue unit 44.The control module 34 is carried out in detail below
It describes in detail bright.
First judging unit 42, for judging whether media server is abnormal according to resource using information;
Issue unit 44 is connected with above-mentioned first judging unit 42, for different for media server generation in judging result
In the case of often, send out to identify the warning information that media server is abnormal.
Fig. 5 is that the first judgement of the control module 34 for the control device that media resource according to embodiments of the present invention uses is single
The structure diagram one of member 42, as shown in figure 5, first judging unit 42 includes:First judgment sub-unit 52, first determines that son is single
Member 62.First judging unit 42 is described in detail below.
First judgment sub-unit 52, for including in resource using information:The existing number of concurrent and media of media server
In the case of the maximum number of concurrent that server allows, whether the existing number of concurrent for judging media server is more than maximum number of concurrent;
First determination subelement 54 is connected with above-mentioned first judgment sub-unit 52, for being media services in judging result
In the case that the existing number of concurrent of device is more than maximum number of concurrent, determine that media server is abnormal.
Fig. 6 is that the first judgement of the control module 34 for the control device that media resource according to embodiments of the present invention uses is single
The structure diagram two of member 42, as shown in fig. 6, first judging unit 42 includes:Second determination subelement 62, second judges that son is single
Member 64, third determination subelement 66.First judging unit 42 is described in detail below.
Second determination subelement 62, for including in resource using information:Media server sends the heart to signal server
In the case of the heartbeat packet time interval for jumping packet, according to heartbeat packet time interval, determine to determine that it is different that media server occurs
Normal time threshold;
Second judgment sub-unit 64 is connected with above-mentioned second determination subelement 62, for judging in determining time threshold
Inside whether receive the heartbeat packet of media server transmission;
Third determination subelement 66 is connected with above-mentioned second judgment sub-unit 64, for being to determine in judging result
In the case of the heartbeat packet for not receiving media server transmission in time threshold, determine that media server is abnormal.
Another aspect according to embodiments of the present invention, additionally provides the control device that another media resource uses, and Fig. 7 is
The structure diagram of control device that another media resource according to embodiments of the present invention uses, as shown in fig. 7, the media resource
The control device used includes:Acquisition module 72, the first sending module 74.Below to the control device that the media resource uses into
Row is described in detail.
Acquisition module 72, for obtain for feed back media server resource service condition resource using information;
First sending module 74 is connected with above-mentioned acquisition module 72, is sent out for passing through media server to signal server
Resource using information is sent, wherein, resource using information is used for the media server that signal server pair coordinates with signal server
On the use of media resource controlled.
Fig. 8 is the preferred structure block diagram for the control device that another media resource according to embodiments of the present invention uses, such as
Shown in Fig. 8, the control device which uses further includes:Judgment module 82, the second sending module 84.Below to the media
The control device that resource uses is described in detail.
Judgment module 82, for judging whether media server is abnormal according to resource using information;
Second sending module 84, in the case of being abnormal in judging result for media server, to signalling service
Device sends the warning information for identifying media server exception.
Fig. 9 is a kind of structural frames of managing medium resource device based on FreeSWITCH according to embodiments of the present invention
Figure includes as shown in figure 9, being somebody's turn to do the managing medium resource device based on FreeSWITCH:Main media management module 91, signalling service
Device 92, media server 93.1-93.N, sub- managing medium resource module 94.1-94.N, warning module 95.This is based below
The managing medium resource device of FreeSWITCH is described in detail.
Sub- managing medium resource module 94.1-94.N, corresponding addition is on media server 93.1-93.N respectively, the mould
Block is used for when loading to signal server accredited media server info, and the moment is to signal server feedback media clothes
Business device resource service condition;
Main media management module 91, is added on signal server 92, which is responsible for receiving the note of sub- media server
Volume information and sub- media server resource using information, and the moment record the resource information of all sub- media servers;
Wherein, main media management module 91 is also responsible for providing certain strategy for routing use;
Warning module 95 is added on signal server 92, and the valve of setting is reached for group media resource service condition
Value or because network, delaying machine when other situations cause sub- media server unavailable, receives warning information.
The embodiment of the present invention be intended to effectively to manage media server, intelligence using media server and foolproof add
Add media server.
Figure 10 is a kind of control method stream of managing medium resource based on FreeSWITCH according to embodiments of the present invention
Cheng Tu, as shown in Figure 10, this method comprises the following steps:
Step S110, system setting;
Step S120, sub- managing medium resource module send registration letter when loading to main managing medium resource module
Breath;
Step S130 after main managing medium resource module receives log-on message, believes to the sub- media server of data-base recording
Breath, and the thread for receiving heartbeat packet is opened, after the heartbeat packet for receiving sub- media, record resource service condition to database;
Step S140, main managing medium resource module can also open monitoring and warning function simultaneously;
Step S150, warning module receive early warning and send early warning by short message and the form of phone;
Step S160, main managing medium resource module provide an interface for dial plan use, which can be according to
Corresponding strategy obtains available Media Resource Server.
Wherein it should be noted that the system setting in above-mentioned steps S110 predominantly sets main managing medium resource mould
Block, sub- managing medium resource module and warning module, neutron managing medium resource module are run on a media server, main matchmaker
Body resource management module and warning module are operated on signal server;Log-on message in above-mentioned steps S120 takes including media
Business device title, IP address, heartbeat packet time interval, maximum number of concurrent etc., open heartbeat packet, heartbeat packet includes after succeeding in registration
Mainly comprising server it is maximum concurrently and it is existing concurrently etc.;Monitoring and warning function in above-mentioned steps S140 include:Moment supervises
The existing concurrent and maximum concurrent ratio of all sub- media servers is controlled, warning information is sent in advance if above certain threshold values
Alert module requirement dilatation, while also monitor whether receive heartbeat packet within the time of 2 times of heartbeat packet time interval, the herein heart
Jump packet time interval 2 times are that the heartbeat packet of setting receives interval predetermined threshold, if confiscated, send warning information and have informed
Platform media server is in down state.
In embodiments of the present invention, sub- media management module is noted when module loading to main managing medium resource module
Volume media server information, and to signal server moment transmission heartbeat packet, heartbeat packet content mainly includes media server
It is maximum concurrent, it is existing concurrently to wait valuable sources situation.Main managing medium resource module receives the registration and heartbeat come to sub- media
Package informatin, and moment record media server resource service condition.Main managing medium resource module sets various strategy process and supplies
Dial plan uses acquisition media server, also opens warning function and carrys out monitoring media server service condition.
Through this embodiment, it can be achieved that following good effect:
1st, dilatation is convenient, and one identical media server of preparation powers on networking and can be used;
2nd, intelligent early-warning, without it is artificial at the time of pay close attention to media server service condition, receiving warning information can be square
Just media server etc. is replaced in completion dilatation;
3rd, media server can be effectively used, single media server pressure will not be caused excessive, will not be allowed
Certain media server is constantly in idle state.
Figure 11 is the main brief work flow diagram of managing medium resource module according to embodiments of the present invention, corresponding detailed
Workflow is as follows:
1st, main managing medium resource module registers 3 interfaces when loading to FreeSWITCH, and respectively media are noted
Volume interface, heartbeat packet interface and media resource obtain interface, and open 2 threads come monitoring media resource service condition and whether
Receive heartbeat packet;
2nd, the heartbeat packet thread moment has monitored whether to receive heartbeat packet, if heartbeat packet is not received for a long time, to early warning
Module sends the not available warning information of media server;
3rd, the media resource service condition of media resource thread moment monitoring media server, if monitoring media resource
Anxiety, sending media resource anxiety to warning module needs the warning information of timely dilatation.
Wherein, Figure 12 is the workflow schematic diagram of heartbeat packet thread according to embodiments of the present invention, as shown in figure 12, heartbeat
Envelope curve range monitoring is the process of persistent loop, often crosses a heartbeat packet and receives interval predetermined threshold time, that is, circulation primary, wherein M
It for the initial cycle time of each cyclic process, while often determines to receive a heartbeat packet, M is reset to zero automatically;N is each
Dormancy time in cyclic process;A receives interval predetermined threshold for heartbeat packet;B receives interval for heartbeat packet and is connect more than heartbeat packet
The number of interval predetermined threshold is received, separately is responsible for receiving to be spaced to receive more than heartbeat packet in heartbeat packet by counter being spaced predetermined threshold
The counting how many times of heartbeat packet are not received during value;Sleep (N) be each cyclic process in sleep command, the suspend mode in order to
Processor is protected, avoids hardware deterioration caused by continuous service.The cyclic process is intended to monitor main managing medium resource module
No received in the predetermined threshold of interval in heartbeat packet receives heartbeat packet, if confiscated, sends warning information and has informed as transmission
The media server of resource is in down state, meanwhile, be not in the embodiment once there is trigger condition to send early warning, can
When setting meets trigger condition more than 2 times, determine to send warning information.
Wherein, Figure 13 is the work flow diagram of media resource thread according to embodiments of the present invention, as shown in figure 13, media money
Source thread monitor is the process of persistent loop, has often traversed primary all nodes i.e. circulation primary, wherein A for it is maximum concurrently and;B
To be existing concurrent and;N is predetermined threshold;M is the dormancy time in each cyclic process;Sleep (M) is circulated throughout for each
Sleep command in journey, the suspend mode avoid hardware deterioration caused by continuous service to protect processor.The cyclic process is intended to
The media resource service condition of monitoring media server, if monitoring media resource anxiety, i.e., it is existing concurrent and and it is maximum simultaneously
When sending out the ratio of sum more than predetermined threshold, then warning module sends the warning information of media resource anxiety.Meanwhile in the embodiment
Be not once there is trigger condition to send early warning, can set meet trigger condition more than 3 times when, determine send warning information.
The embodiments of the present invention are for illustration only, do not represent the quality of embodiment.
In the above embodiment of the present invention, all emphasize particularly on different fields to the description of each embodiment, do not have in some embodiment
The part of detailed description may refer to the associated description of other embodiment.
In several embodiments provided herein, it should be understood that disclosed technology contents can pass through others
Mode is realized.Wherein, the apparatus embodiments described above are merely exemplary, such as the division of said units, Ke Yiwei
A kind of division of logic function, can there is an other dividing mode in actual implementation, for example, multiple units or component can combine or
Person is desirably integrated into another system or some features can be ignored or does not perform.Another point, shown or discussed is mutual
Between coupling, direct-coupling or communication connection can be INDIRECT COUPLING or communication link by some interfaces, unit or module
It connects, can be electrical or other forms.
The above-mentioned unit illustrated as separating component may or may not be physically separate, be shown as unit
The component shown may or may not be physical unit, you can be located at a place or can also be distributed to multiple
On unit.Some or all of unit therein can be selected according to the actual needs to realize the purpose of this embodiment scheme.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, it can also
That each unit is individually physically present, can also two or more units integrate in a unit.Above-mentioned integrated list
The form that hardware had both may be used in member is realized, can also be realized in the form of SFU software functional unit.
If the integrated unit is realized in the form of SFU software functional unit and is independent product sale or uses
When, it can be stored in a computer read/write memory medium.Based on such understanding, technical scheme of the present invention is substantially
The part to contribute in other words to the prior art or all or part of the technical solution can be in the form of software products
It embodies, which is stored in a storage medium, is used including some instructions so that a computer
Equipment (can be personal computer, server or network equipment etc.) perform each embodiment the method for the present invention whole or
Part steps.And aforementioned storage medium includes:USB flash disk, read-only memory (ROM, Read-Only Memory), arbitrary access are deposited
Reservoir (RAM, Random Access Memory), mobile hard disk, magnetic disc or CD etc. are various can to store program code
Medium.
The above is only the preferred embodiment of the present invention, it is noted that for the ordinary skill people of the art
For member, various improvements and modifications may be made without departing from the principle of the present invention, these improvements and modifications also should
It is considered as protection scope of the present invention.
Claims (10)
1. a kind of control method that media resource uses, which is characterized in that including:
The resource service condition for being used to feed back the media server of media server transmission is received by signal server
Resource using information;
By the signal server, the media server coordinated according to the resource using information pair with the signal server
On the use of media resource controlled.
2. according to the method described in claim 1, it is characterized in that, by the signal server, used according to the resource
The use of the media resource on media server that information pair coordinates with the signal server carries out control and includes:
Judge whether the media server is abnormal according to the resource using information;
In the case where judging result is abnormal for the media server, sends out and occur for identifying the media server
Abnormal warning information.
3. according to the method described in claim 2, it is characterized in that, include in the resource using information:The media services
In the case of the maximum number of concurrent that the existing number of concurrent of device and the media server allow, sentenced according to the resource using information
Break the media server whether be abnormal including:
Whether the existing number of concurrent for judging the media server is more than the maximum number of concurrent;
In the case where judging result is more than the maximum number of concurrent for the existing number of concurrent of the media server, determine
The media server is abnormal.
4. according to the method described in claim 2, it is characterized in that, include in the resource using information:The media services
In the case that device sends the heartbeat packet time interval of heartbeat packet to the signal server, judged according to the resource using information
The media server whether be abnormal including:
According to the heartbeat packet time interval, determine to determine time threshold that the media server is abnormal;
Judge the heartbeat packet that the media server is sent whether is received in the determining time threshold;
It is not receive the feelings for the heartbeat packet that the media server is sent in the determining time threshold in judging result
Under condition, determine that the media server is abnormal.
5. a kind of control method that media resource uses, which is characterized in that including:
Obtain for feed back media server resource service condition resource using information;
The resource using information is sent to signal server by media server, wherein, the resource using information is used for
The use of the media resource on media server that the signal server pair coordinates with the signal server controls.
6. according to the method described in claim 5, it is characterized in that, make obtaining for feeding back the resource of the media server
After the resource using information of situation, further include:
Judge whether the media server is abnormal according to the resource using information;
In the case where judging result is abnormal for the media server, sent to the signal server for identifying
State the warning information of media server exception.
7. a kind of control device that media resource uses, which is characterized in that including:
Receiving module, for pass through signal server receive media server transmission for feeding back the media server
The resource using information of resource service condition;
Control module for passing through the signal server, is matched according to the resource using information pair and the signal server
The use of media resource on the media server of conjunction is controlled.
8. device according to claim 7, which is characterized in that the control module includes:
First judging unit, for judging whether the media server is abnormal according to the resource using information;
Issue unit in the case of being abnormal in judging result for the media server, is sent out described for identifying
The warning information that media server is abnormal.
9. device according to claim 8, which is characterized in that first judging unit includes:
First judgment sub-unit, for including in the resource using information:The existing number of concurrent of the media server and institute
In the case of the maximum number of concurrent for stating media server permission, judge whether the existing number of concurrent of the media server surpasses
Cross the maximum number of concurrent;
First determination subelement, for being more than the maximum in the existing number of concurrent that judging result is the media server
In the case of number of concurrent, determine that the media server is abnormal.
10. device according to claim 8, which is characterized in that first judging unit includes:
Second determination subelement, for including in the resource using information:The media server is to the signal server
In the case of the heartbeat packet time interval for sending heartbeat packet, according to the heartbeat packet time interval, determine to determine the matchmaker
The time threshold that body server is abnormal;
Second judgment sub-unit, for judging that the media server whether is received in the determining time threshold to be sent
Heartbeat packet;
Third determination subelement, for being not receive the media services in the determining time threshold in judging result
In the case of the heartbeat packet that device is sent, determine that the media server is abnormal.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711236314.1A CN108173707B (en) | 2017-11-29 | 2017-11-29 | Method and device for controlling use of media resources |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711236314.1A CN108173707B (en) | 2017-11-29 | 2017-11-29 | Method and device for controlling use of media resources |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108173707A true CN108173707A (en) | 2018-06-15 |
CN108173707B CN108173707B (en) | 2020-06-26 |
Family
ID=62524253
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711236314.1A Active CN108173707B (en) | 2017-11-29 | 2017-11-29 | Method and device for controlling use of media resources |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108173707B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109756708A (en) * | 2018-12-28 | 2019-05-14 | 深圳英飞拓智能技术有限公司 | The continuous transmission method and device of audio, video data |
CN111147677A (en) * | 2018-11-05 | 2020-05-12 | 马上消费金融股份有限公司 | Call center system |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1791031A (en) * | 2004-12-14 | 2006-06-21 | 华为技术有限公司 | Realizing method for monitoring state of media gateway controller by media gateway |
CN101047570A (en) * | 2006-06-13 | 2007-10-03 | 华为技术有限公司 | Method for deciding carried media gateway of media gateway controller |
-
2017
- 2017-11-29 CN CN201711236314.1A patent/CN108173707B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1791031A (en) * | 2004-12-14 | 2006-06-21 | 华为技术有限公司 | Realizing method for monitoring state of media gateway controller by media gateway |
CN101047570A (en) * | 2006-06-13 | 2007-10-03 | 华为技术有限公司 | Method for deciding carried media gateway of media gateway controller |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111147677A (en) * | 2018-11-05 | 2020-05-12 | 马上消费金融股份有限公司 | Call center system |
CN111147677B (en) * | 2018-11-05 | 2021-12-21 | 马上消费金融股份有限公司 | Call center system |
CN109756708A (en) * | 2018-12-28 | 2019-05-14 | 深圳英飞拓智能技术有限公司 | The continuous transmission method and device of audio, video data |
CN109756708B (en) * | 2018-12-28 | 2021-05-14 | 深圳英飞拓智能技术有限公司 | Continuous transmission method and device of audio and video data |
Also Published As
Publication number | Publication date |
---|---|
CN108173707B (en) | 2020-06-26 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106375384B (en) | The management system and control method of image network flow in a kind of virtual network environment | |
CN105978728B (en) | The monitoring method of intelligent monitor system and operational indicator | |
CN103944746B (en) | A kind of method and device of two-node cluster hot backup | |
CN109842565A (en) | Interface current-limiting method, device, electronic equipment and storage medium | |
CN107306232A (en) | The network equipment, controller, queue management method and traffic management chip | |
CN106790519A (en) | Service scheduling method and fringe node | |
CN110290281A (en) | Calling-out method, system, electronic equipment and medium | |
CN107181637A (en) | A kind of heartbeat message sending method, device and heartbeat sending node | |
CN110300040A (en) | A kind of communication means and relevant device | |
CN108173707A (en) | The control method and device that media resource uses | |
AU2012231488B2 (en) | Ethernet ring protection switching method, network device and system | |
CN107292598A (en) | One kind pays method for routing and pays route middleware | |
CN108683528A (en) | A kind of data transmission method, central server, server and data transmission system | |
CN107566214A (en) | A kind of performance test methods and device | |
CN101945086A (en) | Security system access business platform for video type security gateway and information transmission method | |
CN110213798A (en) | A kind of shunt method and device based on Femto gateway | |
CN1955990B (en) | Flow executing method and system of integral telecommunication platform | |
CN103905383B (en) | A kind of data message forwarding method, device and system | |
CN104539348A (en) | PON system link loopback detection method and device | |
CN102143072B (en) | Method for fluid control configuration and network equipment | |
CN111422078A (en) | Electric vehicle charging data allocation monitoring method based on block chain | |
CN109858637A (en) | A kind of unattended carwash fault handling method, device and system | |
CN100463468C (en) | System and method for measuring traffic volume distributed among areas | |
CN101965005B (en) | Distributed access gateway system | |
US8509083B2 (en) | Band management apparatus and band management method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |