Background technology
At present, it is professional to have used a large amount of external interface machines to realize in intelligent network business.In general, same interface message processor (IMP) all comprises main with interface message processor (IMP) and spare interface machine, when the master unusual condition occurs with interface message processor (IMP), just use the spare interface machine to bear task, Fig. 1 shows the flow process that interface message processor (IMP) calls implementation method, as shown in Figure 1, comprises following processing:
Step S102, the user calls out;
After step S104, network side receive each user's calling, all can call and main use interface message processor (IMP), and judge whether this master is in normal operating conditions with interface message processor (IMP), if judged result is for being, execution in step S110 then, otherwise, execution in step S106;
Step S106, main unusual with interface message processor (IMP), call the spare interface machine;
Step S108 calls the spare interface machine and carries out business;
Step S110 calls the master and carries out business with interface message processor (IMP).
By above implementation step as can be seen, the main interface message processor (IMP) of use of all conversations visit earlier occurs unusual condition main with interface message processor (IMP), finds that promptly the master can't normal communication with interface message processor (IMP) or when not having return results, visit again the spare interface machine, up to certain spare interface machine success of visit.As can be seen, above method will be sacrificed all conversations test that conducts interviews, and discovery can't just be transposed on the spare interface machine during communication, so not only can produce a large amount of abnormal access, and the visit of twice interface also will influence access.
In addition, after the discovery master is broken down with interface message processor (IMP) in communication process, configuration modification is use spare interface machine, the spare interface machine is all used in all conversations later on, after the master recovers operate as normal with interface message processor (IMP), recover to use if will lead with interface message processor (IMP), then need manual modification configuration.
Summary of the invention
Consider when the user who exists in the correlation technique calls out, all will call the master conducts interviews with interface message processor (IMP), cause system effectiveness lower, influence the problem of user experience and propose the present invention, for this reason, main purpose of the present invention is to provide a kind of interface message processor (IMP) to call implementation method and system, to address the above problem.
According to an aspect of the present invention, provide a kind of interface message processor (IMP) to call implementation method, be used to comprise main interface message processor (IMP) with interface message processor (IMP) and at least one spare interface machine.
Calling implementation method according to the interface message processor (IMP) of the embodiment of the invention comprises: when first of call service group called out incoming call, judge mainly whether is in normal operating conditions with interface message processor (IMP); Be under the situation of normal operating conditions with interface message processor (IMP) main, main status indication with interface message processor (IMP) is set to normally, and call to lead and carry out business with interface message processor (IMP), and during other calling incoming call in the call service group, according to main status indication, call the master and carry out business with interface message processor (IMP) with interface message processor (IMP); Be under the situation of abnormal work state with interface message processor (IMP) main, main status indication with interface message processor (IMP) is set to unusually, and call the spare interface machine and carry out business, and during other calling incoming call in the call service group, according to main status indication, call the spare interface machine and carry out business with interface message processor (IMP).
Further, this method also comprises: set in advance main status indication with interface message processor (IMP), and when initialization, status indication is set to normally.
Preferably, this method also comprises: during first end of calling, main status indication with interface message processor (IMP) is set to normally.
Wherein, call service group is for the calling of incoming call when call link is idle, from calling out the set of incoming call calling of incoming call during hang up, and calling that will incoming call when call link is idle be called out as first.
According to a further aspect in the invention, provide a kind of interface message processor (IMP) to call the realization system.
Interface message processor (IMP) calls the realization system and comprises according to an embodiment of the invention: comprise main with meeting sb. at the airport and one or more spare interface machines, also comprise: state setting module, be used to be provided with main status indication with interface message processor (IMP), wherein, status indication is used for whether sign is main is in normal operating conditions with interface message processor (IMP); Condition judgment module is used for judging whether the master is in normal operating conditions with interface message processor (IMP); Calling module is used for when first calling incoming call of call service group, is under the normal situation at status indication, call the master and carry out business with interface message processor (IMP), and when other in the call service group called out incoming call,, call the master and carry out business with interface message processor (IMP) according to main status indication with interface message processor (IMP); And be under the situation of abnormal work state with interface message processor (IMP) main, main status indication with interface message processor (IMP) is set to unusually, and call the spare interface machine and carry out business, and during other calling incoming call in the call service group, according to main status indication, call the spare interface machine and carry out business with interface message processor (IMP).
Preferably, state setting module also is used for, and status indication is set to normally when initialization.
Preferably, state setting module also is used for, and when first end of calling, main status indication with interface message processor (IMP) is set to normally.
By above-mentioned at least one technical scheme of the present invention, improved user's connection efficient, guaranteed professional access, improved user experience.
Embodiment
Describe the present invention in detail below in conjunction with accompanying drawing.
Method embodiment
According to the embodiment of the invention, provide a kind of interface message processor (IMP) to call implementation method.
Fig. 2 is the flow chart that calls implementation method according to the interface message processor (IMP) of the embodiment of the invention, and this method is used to comprise main interface message processor (IMP) with interface message processor (IMP) and at least one spare interface machine, and as shown in Figure 2, this method may further comprise the steps:
Step S202, when first of call service group called out incoming call, judge whether the master is in normal operating conditions with interface message processor (IMP), wherein, call service group will call out as first calling for the calling of incoming call when call link is idle, from calling out the set of incoming call calling of incoming call during hang up;
Step S204 is under the situation of normal operating conditions with interface message processor (IMP) main, and main status indication with interface message processor (IMP) is set to normally, call the master and carry out business with interface message processor (IMP), and when other in the call service group called out incoming call,, call the master and carry out business with interface message processor (IMP) according to main status indication with interface message processor (IMP);
Step S206 is under the situation of abnormal work state with interface message processor (IMP) main, and main status indication with interface message processor (IMP) is set to unusually, call the spare interface machine and carry out business, and when other in the call service group called out incoming call,, call the spare interface machine and carry out business according to main status indication with interface message processor (IMP).
By the technical scheme that the embodiment of the invention provides, improved user's connection efficient, guaranteed professional access, improved user experience.
Before step S202, can set in advance main status indication, and when initialization, status indication is set to normally, and when above-mentioned first end of calling, the status indication that can lead with interface message processor (IMP) is set to normally with interface message processor (IMP).
Fig. 3 is the detailed process flow chart that calls implementation method according to the interface message processor (IMP) of the inventive method embodiment, and as shown in Figure 3, this method may further comprise the steps:
Step S302, utilize global variable polling value as main status indication with interface message processor (IMP), when global variable polling value when main usefulness interface message processor (IMP)=0 is set, the main operating state with interface message processor (IMP) of expression is normal, when main global variable polling value=1 with interface message processor (IMP), the main operating state with interface message processor (IMP) of expression is unusual, also can be conversely;
Step S304, test with the interface message processor (IMP) state main, the main interface message processor (IMP) of using is called in first calling of call service group, exists under the unusual situation with interface message processor (IMP) main, should lead with interface message processor (IMP) global variable polling value and change to 1, and call the spare interface machine and carry out business; Under the normal situation, do not revise global variable polling value with interface message processor (IMP) main;
Step S306, n calling in above-mentioned first calling time period from the incoming call to the on-hook, wherein, n is the natural number more than or equal to 0, calls out before calling out for this n, all can read main global variable polling value with interface message processor (IMP) earlier, polling value=0 o'clock, call the main interface message processor (IMP) of using, the spare interface machine is called in polling value=1 o'clock;
Step S308, when above-mentioned first called out call release, the po1ling value is reduced, the polling value is revised as initial default value value 0, make later calling can call this fault interface once more, judge whether this fault is recovered, when next call service group calls out, this call service group once more execution in step S304 to step S308.
According to above step, for the all-calls in first calling time period from the incoming call to the on-hook in each call service group, only can lose first calling and remove to call the main interface message processor (IMP) of using, be under the situation of normal condition with interface message processor (IMP) this master, other calling in this time period all can be called this master and be used interface message processor (IMP), be in interface message processor (IMP) under the situation of abnormality this master, other calling in this time period all can be called the spare interface machine.First of arbitrary call service group called out and all can at first be called the main interface message processor (IMP) of using down; if should be main with interface message processor (IMP) from abnormal restoring to normally; then other of this group are called out and all can be called the main interface message processor (IMP) of using; by this method; improved connection efficient; prevent to call other abnormal conditions that unusual interface occurs, bigger assurance professional access.
Fig. 4 is the process chart according to the test call process of the inventive method embodiment, and as shown in Figure 4, this method may further comprise the steps:
Step S402, during business initial, global variable polling value=0 expression being set main is normal with the interface message processor (IMP) operating state, and polling value=1 expression is main to be unusually with the interface message processor (IMP) operating state, and when call link was idle, user A dialled in business;
Step S404, user A call the main interface message processor (IMP) of use, judge whether main operating state with interface message processor (IMP) is normal, if judged result is for being, and execution in step S406 then, otherwise, execution in step S408;
Step S406 finds that main operating state with interface message processor (IMP) is normal, calls the master and carries out business with interface message processor (IMP), and calling interface machine flow process finishes;
Step S408 finds that the main interface message processor (IMP) operating state of using is unusual, and the polling value of this interface is applied for changing, and the polling value is revised as 1;
Step S410 calls the spare interface machine and carries out business, and calling interface machine flow process finishes;
Step S412 finishes calling, and user's on-hook is reduced to 0 with the polling value.
Fig. 5 is the process chart according to the calling procedure of the inventive method embodiment, represents the call flow of user A other calling in the time period from the incoming call to the on-hook shown in Figure 4, and as shown in Figure 5, this method may further comprise the steps:
Step S502, user B ..., user n dials in business, carries out operation flow, wherein, user B ..., user n is the user of other incoming call of user A in from incoming call to the time period of hanging up, and is that example describes with user B below;
Step S504, user B reads the polling value, checks whether main operating state with interface message processor (IMP) is normally, if judged result is for being, execution in step S506, otherwise, execution in step S508;
Step S506, if polling value=0 that reads finds that promptly the main interface message processor (IMP) operating state of using is normal, then directly visit is main carries out business with interface message processor (IMP);
Step S508 if polling value=1 that reads finds that promptly the main interface message processor (IMP) operating state of using is unusual, then directly visits the spare interface machine;
Step S510 calls the spare interface machine and carries out business, and calling interface machine flow process finishes.
System embodiment
The interface message processor (IMP) that Fig. 6 shows according to the embodiment of the invention calls the realization system schematic, and this system comprises main with meeting sb. at the airport and one or more spare interface machines, and this interface message processor (IMP) calls the realization system and also comprises:
State setting module 10 is used to be provided with main status indication with interface message processor (IMP), and wherein, status indication is used for whether sign is main is in normal operating conditions with interface message processor (IMP);
Condition judgment module 20 is used for judging whether the master is in normal operating conditions with interface message processor (IMP); This module can be connected to state setting module 10.
Calling module 30 is used for when first calling incoming call of call service group, is under the normal situation at status indication, call the master and carry out business with interface message processor (IMP), and when other in the call service group called out incoming call,, call the master and carry out business with interface message processor (IMP) according to main status indication with interface message processor (IMP); And be under the situation of abnormal work state with interface message processor (IMP) main, main status indication with interface message processor (IMP) is set to unusually, and call the spare interface machine and carry out business, and during other calling incoming call in the call service group, according to main status indication, call the spare interface machine and carry out business with interface message processor (IMP); This module can be connected to state setting module 10 and condition judgment module 20.
Wherein, state setting module 20 also is used for, and status indication is set to normally when initialization, and state setting module 20 can also be used for when first end of calling, and main status indication with interface message processor (IMP) is set to normally.
The interface message processor (IMP) that provides by the embodiment of the invention calls the realization system, has improved user's connection efficient, has guaranteed professional access, has improved user experience.
As mentioned above, call implementation method and/or system by means of interface message processor (IMP) provided by the invention, the inventive method remedied externally main with interface message processor (IMP) go wrong repair after, the defective that can't resume work automatically, only sacrifice test interface machine state turn-on time of a calling, and the control interface machine uses switch, guaranteed before it discharges, the phone of all accesses can both use normal external interface machine, improve and connect efficient, prevent to call other abnormal conditions that unusual interface occurs, bigger assurance professional access, improved user experience.
The above is the preferred embodiments of the present invention only, is not limited to the present invention, and for a person skilled in the art, the present invention can have various changes and variation.Within the spirit and principles in the present invention all, any modification of being done, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.