A kind of implementation method that accesses VoIP service in self-organizing network
Technical field
The present invention relates to the communications field, be specifically related to a kind of implementation method that accesses VoIP service in self-organizing network.
Background technology
Mobile ad-hoc network is the network that a kind of mobile communication and computer network combine, and is the one of Antenna of Mobile Computer Network, and user's mobile terminal can arbitrarily move and keep communicating by letter in net.Mobile terminal does not generally have fixing IP (Internet Protocol, the Internet protocol) address relevant to topology, so cannot provide connection for it by traditional mobile IP protocol, need to adopt mobile multi-hop mode to network.Be flat topology due to what adopt, thereby there is no address change problem, thereby make these mobile terminals still as in the computer environment of standard.
VoIP (Voice over Internet Phone, voice-over-net telephone service) working mechanism be based on TCP (Transmission Control Protocol, transmission control protocol) on the basis of/IP communication packet switch, due to WIFI (Wireless Fidelity, WLAN (wireless local area network)) radio coverage of routing device is limited, this has just caused the VoIP of hand-held WIFI soft, hardware terminal is when mobile, may occur because the network short time is interrupted even IP address change, cause the VoIP dropped calls in moving and likely can not recover in time, this just need to carry out the technological adjustment on some networks, just can address this problem.
The existing patent relevant to mobile network VoIP access technology, some is poor and cause the poor problem of voice quality for wireless network environment.Such as, patent of invention [a kind of method and system of realizing voice compensation in mobile communications network, application number: 200780040392.2] disclose in the environment of or poor transmission poor at wireless environment, by the compensation deals to speech frame, improve voice quality.Some is the problem that causes IP address substitution for frequent switching wireless network, such as, patent of invention [voice communication method on a kind of mobile ad-hoc network, application number: 200410046289.X], before setting up by connection, increase handshake procedure, between communicating pair, share random number, ensure the reliability of voice communication on mobile ad-hoc network by transmitting the mechanism such as address notification message of encrypting in process.
But above-mentioned prior art, main is all the environment poor for wireless network, meet QoS of voice, but the realization of voip technology has a very important module by optimizing wireless network, be exactly VoIP server, its significance level directly determines the quality that can call be carried out and converse.In the process of conversing, because VoIP server may access other mobile terminal or occur that certain situation causes VoIP server to occur load or abnormal, this can impact speech quality, if do not switch in time VoIP server after current talking finishes, when this can cause once conversing, can cause adverse effect to speech quality on carrying out.At large-scale office service area, in the process that wireless network switches, VoIP server also likely needs to switch simultaneously, this not simple must just can reaching by switching wireless network.
Therefore in prior art, the service of the VoIP based on wireless network all has certain defect.
Summary of the invention
The present invention provides a kind of implementation method that accesses VoIP service in self-organizing network according to the deficiencies in the prior art, the VoIP server of selection mode the best accesses, simultaneously in the time carrying out voice call, the state of VoIP server that also can the current access of Real-time Obtaining, and switch VoIP server according to the real-time status of VoIP server, and then improve greatly speech quality.
In order to realize above-mentioned technique effect, the technical solution used in the present invention is:
A kind of implementation method that accesses VoIP service in self-organizing network, wherein, be applied to one and have on the mobile terminal of speech communication function, and described mobile terminal is positioned at the region that a self-organizing network that is provided with some network nodes covers, described method comprises the steps:
Step S10, the signal strength signal intensity receiving according to described mobile terminal are set up a network node list;
Step S20, the described mobile terminal network node the strongest with signal strength signal intensity in described network node list is connected;
Step S30, described mobile terminal send by the network node of current connection the VoIP server that registration request to is connected with this network node;
Step S40, described VoIP server return to response instruction to described mobile terminal, and utilize described mobile terminal to judge that this response indicates whether the instruction for setting up voice call service;
If described response instruction is not the instruction of setting up voice call service, selects another VoIP server being connected with described network node, and continue step S30;
If described response instruction is the instruction of setting up voice call service, execution step S50;
Step S50, described mobile terminal are to described VoIP server initiating speech conversation service call;
Wherein, if the response that described VoIP server feeds back by the network node of the current connection of described mobile terminal instruction is not all while setting up the instruction of voice call service, remove the network node of the current connection of described mobile terminal in described network node list, and continue step S20.
Above-mentioned method, wherein, described self-organizing network is WIFI network.
Above-mentioned method, wherein, described mobile terminal is provided with a radio receiving transmitting module, sets up described network node list by described radio receiving transmitting module.
Above-mentioned method, wherein, in step S40, if VoIP server can meet voice call demand, accepts the registration request of described mobile terminal and feeds back normal response information to described mobile terminal;
If described VoIP server can not meet described voice call demand for services, extremely described mobile terminal of feedback error code, and continue step S30.
Above-mentioned method, wherein, in step S50, if described mobile terminal receives the normal response information from VoIP server feedback, initiating speech conversation service call, and carry out voice call by current connection VoIP server.
Above-mentioned method, wherein, described method also comprises:
While utilizing described mobile terminal to carry out voice call, described mobile terminal is the load condition of the described VoIP server of monitoring in real time, provide the VoIP server of voice call service cannot continue to meet voice call demand if current,, after current speech end of conversation, return to described step S30.
Above-mentioned method, wherein, described mobile terminal timed sending heartbeat message is to the current VoIP server that voice call service is provided, to monitor in real time the load condition of described VoIP server.
Above-mentioned method, wherein, described mobile terminal sends heartbeat message to the VoIP server of current connection, if current described VoIP server can continue to meet voice call demand for services, feeds back normal response information to described mobile terminal;
If current described VoIP server cannot continue to meet voice call demand for services, feedback error code is to described mobile terminal.
The present invention is by selecting optimum access server according to the burst load of each VoIP server, ensure QoS of voice, simultaneously by making the timing between mobile terminal and VoIP server mutual, the burst load ability of Real-time Obtaining VoIP server, switch VoIP server in good time, ensure QoS of voice.The present invention depends on the burst load ability of voice registrar, and combines with wireless network, and Dynamic Selection voice registrar is realized the best in quality of voice service, is applicable to the call environment in large-scale community and comprehensive office district etc., is widely used.
Brief description of the drawings
By reading the detailed description of non-limiting example being done with reference to the following drawings, it is more obvious that the present invention and feature thereof, profile and advantage will become.In whole accompanying drawings, identical mark is indicated identical part.Deliberately proportionally do not draw accompanying drawing, focus on illustrating purport of the present invention.
Fig. 1 is the mobile terminal in the present invention accesses VoIP server schematic diagram by WIFI;
Fig. 2 is the flow chart that mobile terminal in the present invention selects access VoIP server to go forward side by side to work words;
Fig. 3 is that the present invention's mobile terminal in the time conversing sends the flow chart of logon message to VoIP server.
Embodiment
In the following description, a large amount of concrete details have been provided to more thorough understanding of the invention is provided.But, it is obvious to the skilled person that the present invention can be implemented without one or more these details.In other example, for fear of obscuring with the present invention, be not described for technical characterictics more well known in the art.
Should be understood that, the present invention can be with multi-form enforcement, and should not be interpreted as the embodiment that is confined to propose here.On the contrary, provide these embodiment to expose thorough and complete, and scope of the present invention is fully passed to those skilled in the art.
In order thoroughly to understand the present invention, will detailed step and detailed structure be proposed in following description, to explain technical scheme of the present invention.Preferred embodiment of the present invention is described in detail as follows, but except these are described in detail, the present invention can also have other execution modes.
The invention discloses a kind of implementation method that accesses VoIP service in self-organizing network, being applied to one has on the mobile terminal of speech communication function, and mobile terminal is positioned at the region that a self-organizing network that is provided with some network nodes covers, and method comprises the steps:
Step S10, the signal strength signal intensity receiving according to mobile terminal are set up a network node list;
Step S20, the mobile terminal network node the strongest with signal strength signal intensity in network node list is connected;
Step S30, mobile terminal send by the network node of current connection the VoIP server that registration request to is connected with this network node;
Step S40, VoIP server return to response and indicate to mobile terminal, and utilize mobile terminal to judge that this response indicates whether the instruction for setting up voice call service;
If response instruction is not the instruction of setting up voice call service, selects another VoIP server being connected with network node, and continue step S30;
If response instruction is the instruction of setting up voice call service, execution step S50;
Step S50, mobile terminal are to VoIP server initiating speech conversation service call;
Wherein, if the response that VoIP server feeds back by the network node of the current connection of mobile terminal instruction is not all, while setting up the instruction of voice call service, to remove the network node of the current connection of mobile terminal in network node list, and continue step S20.
Preferably, above-mentioned mobile terminal is provided with a radio receiving transmitting module, and network node self-organizing network being comprised by radio receiving transmitting module is set up network node list, and further, this self-organizing network is WIFI (WLAN (wireless local area network)).
Preferably, in step S40, if VoIP server can meet voice call demand for services, accept the registration request of mobile terminal and feed back normal response information to mobile terminal; If VoIP server can not meet voice call demand for services, feedback error code is to mobile terminal.
Preferably, in step S50, when mobile terminal receives after the normal response information from VoIP server feedback, initiating speech conversation service call, the voice call service call that current VoIP server response mobile terminal sends, and then realize and utilize mobile terminal to carry out voice call.
Simultaneously; in the present invention; in the time that mobile terminal is conversed by VoIP server; cause VoIP server to occur abnormal or overload because the terminal equipment that may also have other in communication process is connected to other emergency case of this VoIP server or some, this can impact speech quality to a great extent.Therefore, consider the appearance of the problems referred to above, the present invention is in mobile terminal carries out process that voice pass through, also can monitor in real time by mobile terminal the load condition of VoIP server, provide the VoIP server of voice call service cannot continue to meet voice call demand if current,, after current speech end of conversation, return to step S30, to select applicable VoIP server to switch.
Preferably, mobile terminal timed sending heartbeat message is to the current VoIP server that voice call service is provided, to monitor in real time the load condition of VoIP server.Concrete, mobile terminal sends heartbeat message to the VoIP server of current connection, if current VoIP server can continue to meet voice call demand for services, feed back normal response information to mobile terminal, mobile terminal receives from after the normal response message of VoIP server, be left intact, and continue the VoIP server of timed sending heartbeat message to current connection; If current VoIP server cannot continue to meet voice call demand for services, feedback error code is to mobile terminal, mobile terminal receives after the error code from VoIP server, can be after current speech end of conversation, return to step S20, meet the VoIP server of voice call demand and connect until find, and then improving speech quality, having realized the smooth excessiveness of voice.
Come with reference to the accompanying drawings the present invention to be further elaborated below, shown in Fig. 1 and Fig. 2, the invention provides a kind of implementation method that accesses VoIP service in self-organizing network, comprise the steps:
Execution step 1, first accesses VoIP server by self-organizing network by mobile terminal M.First the current accessible self-organizing network signal strength signal intensity of mobile terminal is detected, then select a WIFI node access mobile terminal of transmission power intensity maximum, and then contribute to ensure to have a good call environment.
Execution step 2, utilize mobile terminal M to send registration request to VoIP server, if current VoIP server is within the scope of normal carrying, the registration request of mobile terminal receive, and feedback receives that the response message of 200OK returns mobile terminal M, mobile terminal receives after the response message of 200OK, shows that the state of the VoIP server of current access meets the demand of call, mobile terminal M makes a call, and provides voice service by VoIP server;
If current VoIP server is in the time of carrying saturation stage or abnormality, feedback error code (being the response message of non-200OK) is to mobile terminal, make mobile terminal select other VoIP servers to access, mobile terminal can continue to send registration request to other VoIP servers until select the VoIP server that meets call demand to access.
The present invention simultaneously also can monitor in real time the load condition of VoIP server and then make in good time adjustment.Shown in Fig. 3, when meeting VoIP server that call requires, mobile terminal access one goes forward side by side while working words, mobile terminal meeting timed sending heartbeat message is to VoIP server, to obtain the load condition of mobile terminal and VoIP server VoIP server in reciprocal process, and then detection burst load amount, if the load capacity of current VoIP server is in normal range (NR), reply 200OK to mobile terminal, the state that current VoIP server is described can also continue to ensure high-quality voice call, without doing any processing; Once but the load capacity overrun of VoIP server, can cause some adverse effects to follow-up speech quality, therefore VoIP server can feedback error code to mobile terminal, and after current talking finishes, be switched to another and meet the VoIP server of voice call demand.The concrete step of access VoIP server of selecting is in existing description above, therefore do not repeat them here.
Because timing in communication process detects the state of current VoIP server and switches VoIP server according to the response message of VoIP server feedback, and then effectively raise speech quality; The present invention is simultaneously the switching of carrying out again VoIP server after call completes, has effectively kept the continuity of call, and then has avoided the dropped calls causing owing to switching VoIP server in communication process.
In sum, because the present invention has adopted as above technical scheme, realize the Dynamic Selection that realizes voice access server in self-organizing network, can select optimum access server according to the burst load of each VoIP server, ensure QoS of voice, simultaneously by making the timing between mobile terminal and VoIP server mutual, the burst load ability of Real-time Obtaining VoIP server, switch VoIP server in good time, ensure QoS of voice.The present invention depends on the burst load ability of voice registrar, and combine with wireless network, Dynamic Selection voice registrar, realizes the best in quality of voice service, be applicable to the call environment that large-scale community and comprehensive office district etc. have numerous mobile terminals, be widely used.
Above preferred embodiment of the present invention is described.It will be appreciated that, the present invention is not limited to above-mentioned specific implementations, and the equipment of wherein not describing in detail to the greatest extent and structure are construed as to be implemented with the common mode in this area; Any those of ordinary skill in the art, do not departing from technical solution of the present invention scope situation, all can utilize method and the technology contents of above-mentioned announcement to make many possible variations and modification to technical solution of the present invention, or being revised as the equivalent embodiment of equivalent variations, this does not affect flesh and blood of the present invention.Therefore, every content that does not depart from technical solution of the present invention,, all still belongs in the scope of technical solution of the present invention protection any simple modification made for any of the above embodiments, equivalent variations and modification according to technical spirit of the present invention.