Summary of the invention
Embodiments of the invention provide a kind of Voice over IP method of calling, Apparatus and system, dial more convenient when VOIP user can be made to dial local call.
For achieving the above object, embodiments of the invention adopt following technical scheme:
On the one hand, a kind of Voice over IP method of calling is provided, comprises:
The login request message that receiving terminal sends; Wherein, the information of the instruction current geographic location of described terminal is carried in described login request message;
The access information of the current geographic location of described terminal is determined according to described information;
Receive the call request that described terminal sends;
If do not carry regional prefix in described call request, then determine to land gateway according to described access information, and described in passing through, land gateway call terminal called.
On the one hand, a kind of Voice over IP method of calling is provided, comprises:
Obtain the information of the current geographic location of indicating terminal, determine the regional prefix of the current geographic location of described terminal according to described information;
Receive the called terminal number of user's input, if do not have regional prefix in described called terminal number, then the regional prefix of the current geographic location of described terminal got and described called terminal number are combined into call number, send the call request carrying described call number to call control server.
On the one hand, a kind of call control server is provided, comprises:
First receiving element, for the login request message that receiving terminal sends; Wherein, the information of the instruction current geographic location of described terminal is carried in described login request message;
Determining unit, for determining the access information of the current geographic location of described terminal according to described information;
Second receiving element, for receiving the call request that described terminal sends;
Calling unit, if for not carrying regional prefix in described call request, then determine to land gateway according to described access information, and lands gateway call terminal called described in passing through.
On the one hand, a kind of terminal is provided, comprises:
Acquiring unit, for obtaining the information of the current geographic location of indicating terminal;
Determining unit, for determining the regional prefix of the current geographic location of described terminal according to described information;
Receiving element, for receiving the called terminal number of user's input;
Assembled unit, if for not having regional prefix in described called terminal number, is then combined into call number by the regional prefix of the current geographic location of described terminal got and described called terminal number;
Calling unit, for sending the call request carrying described call number to call control server.
Calling unit, for being sent to call control server by described call request.
On the one hand, a kind of Voice over IP calling system is provided, comprises: terminal; Call control server described in one side face; Land gateway.
On the one hand, a kind of Voice over IP calling system is provided, comprises: the terminal described in one side face, call control server.
Voice over IP method of calling, Apparatus and system that the embodiment of the present invention provides, when the call request that the call request received is not with regional prefix, then the regional prefix of terminal seat and this call request are combined, and select to land gateway by the call request after combination, so, do not need when dialing local call to add acquisition approval district prefix, thus make VOIP subscriber dialing more convenient.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
Embodiment one
The Voice over IP method of calling that the embodiment of the present invention provides, executive agent is call control server in the present embodiment, and terminal described is in embodiments of the present invention VOIP terminal, and the method, as shown in Figure 1, comprises,
The login request message that S101, receiving terminal send; Wherein, the information of the instruction current geographic location of described terminal is carried in described login request message.
Concrete, indicate the information of the current geographic location of described terminal to comprise the IP address on terminal landing ground or the positional information of the current geographic location of terminal.
S102, determine the access information of the current geographic location of described terminal according to described information.
Concrete, this access information can comprise, regional prefix.This area's prefix comprises, international prefix, international long-distance area code and area code; This access information can also comprise, area code.
Exemplary, behind the IP address on the terminal landing ground obtaining carrying in terminal landing request message, the network segment residing for this IP address can be obtained according to this IP address, and then the geographical position that can obtain residing for terminal, like this, just be easy to find terminal seat to manage the regional prefix of position by the geographical position residing for terminal, after obtaining the regional prefix in the geographical position residing for this terminal, can by as shown in following table one, the access information of record terminal 28781001 and terminal 28781002, wherein, terminal seat is Beijing:
Table one
When the current geographic location of terminal 28781001 is Hangzhou, area, the voip user location prefix information of terminal 18781001 in updating form one, as shown in Table 2:
Voip user |
Area, voip user location |
This user terminal place IP |
|
Prefix (access information) |
Address field |
28781001 |
0571 |
218.108.25.XXX |
28781002 |
0571 |
218.108.25.XXX |
28781002 |
0755 |
218.17.218.XXX |
Table two
So, when receiving the call request of terminal not with prefix, the nearest gateway that lands will be determined easily.
Exemplary, after the positional information of the current geographic location of this terminal obtaining carrying in terminal landing request message, determine the access information of the current geographic location of this terminal according to this positional information.
It should be noted that, call control server, after receiving log on request message, also needs to send to this terminal to log in success response message.
S103, receive described terminal send call request.
If do not carry regional prefix in the described call request of S104, then determine to land gateway according to described access information, and described in passing through, land gateway call terminal called.
Exemplary, when the call request that the call request receiving terminal 28781001 is not with regional prefix, as 110, then inquire about area, user location prefix 0571 in access information table, and area, location prefix 0571 is combined with call request 110, according to 0571110 carrying out call routing process to determine to land gateway after combination, and land gateway call terminal called by this.
It should be noted that, if this call request is the call request of being with regional prefix, then determine to land recently gateway by this call request, and land gateway call terminal called recently by this.
The Voice over IP method of calling that the embodiment of the present invention provides, when the call request that the call request received is not with regional prefix, then the regional prefix of terminal seat and this call request are combined, and select to land gateway by the call request after combination, so, do not need when dialing local call or special service number to add acquisition approval district prefix, thus make VOIP subscriber dialing more convenient.
Embodiment two
The Voice over IP method of calling that the embodiment of the present invention provides, executive agent is in the present embodiment terminal, and the method as shown in Figure 2, comprises,
The information of S201, the acquisition current geographic location of indicating terminal, determines the regional prefix of the current geographic location of described terminal according to described information.
Concrete, the information of the current geographic location of this indicating terminal can be the current IP address logging in ground of this terminal, can also be the positional information of the current geographic location of this terminal.
Wherein, when to be that this terminal is current log in the IP address on ground for the information of the current geographic location of this indicating terminal, according to the network segment residing for this IP address acquisition IP address, because the network segment of the IP address distributing to each area is unique, by means of the network segment residing for this IP address, call control server determines the regional prefix of the current geographic location of this terminal with regard to the network segment be easy to residing for this IP address.
Exemplary, as shown in following table one, have recorded the access information of terminal 28781001 and terminal 28781002, wherein, terminal seat is Beijing:
Table one
When terminal 28781001 be Hangzhou with logging in time, in updating form one terminal 18781001 log in ground information, as shown in Table 2:
Table two
So, when the called terminal number of user's input is not with prefix, call routing process will be carried out easily, thus determine the nearest gateway that lands.
Concrete, the positional information obtaining the current geographic location of terminal can be, there is the request message of the positional information obtaining the current geographic location of this terminal to navigation system after, by the positional information of navigation system to this current geographic location of terminal transmitting terminal, more specifically, this status system can be GPS navigation system, by GPS navigation system host in VOIP terminal, the address information residing for VOIP terminal is obtained by GPS, thus obtain the regional prefix of address residing for this VOIP terminal, it should be noted that, the present invention only needs the positional information obtaining the current geographic location of terminal from navigation system, concrete does not limit navigation system.
The called terminal number of S202, reception user input, if do not have regional prefix in described called terminal number, then the regional prefix of the current geographic location of described terminal got and described called terminal number are combined into call number, send the call request carrying described call number to call control server.
Exemplary, the called terminal number inputted as user 28781001 is not with regional prefix, as 110, then the regional prefix of the current geographic location of this terminal got and this called terminal number are combined into call request, concrete, area, the user location prefix 0571 in above-mentioned access information table can be inquired about, and area, location prefix 0571 is combined with call request 110, and the call number after this combination is sent to call control server.
It should be noted that, if the called terminal number of user's input has regional prefix, then this called number is sent to call control server.
The Voice over IP method of calling that the embodiment of the present invention provides, when the call request that the call request received is not with regional prefix, then the regional prefix of terminal seat and this call request are combined, and select to land gateway by the call request after combination, so, do not need when dialing local call or special service number to add acquisition approval district prefix, thus make VOIP subscriber dialing more convenient.
Embodiment three
The call control server 30 that the embodiment of the present invention provides, as shown in Figure 3, comprising:
First receiving element 301, for the login request message that receiving terminal sends; Wherein, the information of the instruction current geographic location of described terminal is carried in described login request message.
Concrete, indicate the information of the current geographic location of described terminal to comprise the IP address on terminal landing ground or the positional information of the current geographic location of terminal.
Determining unit 302, for determining the access information of the current geographic location of described terminal according to described information.
Concrete, this access information comprises, regional prefix.This area's prefix comprises, international prefix, international long-distance area code and area code.
Exemplary, behind the IP address on the terminal landing ground obtaining carrying in terminal landing request message, the network segment residing for this IP address can be obtained according to this IP address, and then the geographical position that can obtain residing for terminal, like this, be just easy to find terminal seat to manage the regional prefix of position by the geographical position residing for terminal.
Second receiving element 303, for receiving the call request that described terminal sends.
Calling unit 304, if for not carrying regional prefix in described call request, then determine to land gateway according to described access information, and lands gateway call terminal called described in passing through
Exemplary, when the call request that the call request receiving terminal 28781001 is not with regional prefix, as 110, then inquire about area, user location prefix 0571 in access information table, and area, location prefix 0571 is combined with call request 110, according to 0571110 carrying out call routing process to determine to land gateway after combination, and land gateway call terminal called by this.
It should be noted that, calling unit 304 also for, if this call request is the call request of being with regional prefix, then determine to land recently gateway by this call request, and land gateway call terminal called by this.
The call control server that the embodiment of the present invention provides, when the call request that the call request received is not with regional prefix, then the regional prefix of terminal seat and this call request are combined, and select to land gateway by the call request after combination, so, do not need when dialing local call or special service number to add acquisition approval district prefix, thus make VOIP subscriber dialing more convenient.
Wherein, the information when the current geographic location of indicating terminal is the current IP address logging in ground of this terminal, and so this determining unit 302, comprises as shown in Figure 3:
Acquisition module 3021, for the network segment according to described IP address acquisition residing for IP address.
Determination module 3022, determines the access information of the current geographic location of described terminal for the network segment residing for described IP address.
When the positional information that the information of the current geographic location of indicating terminal is the current geographic location of this terminal, so this determining unit 302 specifically for, determine the regional prefix of the current geographic location of this terminal according to this positional information.
Embodiment four
The terminal that the embodiment of the present invention provides, wherein described in the present embodiment terminal is Voice over IP terminal, and this terminal 40, as shown in Figure 4, comprising:
Acquiring unit 401, for obtaining the information of the current geographic location of indicating terminal.
Concrete, the information of the current geographic location of this indicating terminal can be the current IP address logging in ground of this terminal, can also be the positional information of the current geographic location of this terminal.
Determining unit 402, for determining the regional prefix of the current geographic location of described terminal according to described information.
Exemplary, behind the IP address on the terminal landing ground obtaining carrying in terminal landing request message, the network segment residing for this IP address can be obtained according to this IP address, and then the geographical position that can obtain residing for terminal, like this, be just easy to find terminal seat to manage the regional prefix of position by the geographical position residing for terminal.
Receiving element 403, for receiving the called terminal number of user's input.
Assembled unit 404, if for not having regional prefix in described called terminal number, is then combined into call number by the regional prefix of the current geographic location of described terminal got and described called terminal number;
Calling unit 405, for sending the call request carrying described call number to call control server.
It should be noted that, if the called terminal number band area prefix of user's input, then called number is sent to call control server by calling unit 405.
The terminal that the embodiment of the present invention provides, when the call request that the call request received is not with regional prefix, then the regional prefix of terminal seat and this call request are combined, and select to land gateway by the call request after combination, so, do not need when dialing local call or special service number to add acquisition approval district prefix, thus more convenient when making VOIP subscriber dialing.
Wherein, the information when the current geographic location of indicating terminal is the current IP address logging in ground of this terminal, and so this determining unit 402, as shown in Figure 5, comprising:
Acquisition module 4021, for the network segment according to described IP address acquisition residing for IP address.
Determination module 4022, determines the access information of the current geographic location of described terminal for the network segment residing for described IP address.
Acquiring unit 401 comprises:
First sending module 4011, obtains the current request message logging in the IP address on ground of described terminal for sending to described IP address assignment server.
First receiver module 4012, for receiving the current IP address logging in ground of described terminal that described IP address assignment server sends.
When the positional information that the information of the current geographic location of indicating terminal is the current geographic location of this terminal, so this determining unit 302 specifically for, determine the regional prefix of the current geographic location of this terminal according to this positional information.
The acquiring unit 401 of this terminal 40, as shown in Figure 6, comprising:
Second sending module 4013, for sending the request message of the positional information obtaining the current geographic location of described terminal to navigation system.
Second receiver module 4014, for receiving the positional information of the current geographic location of described terminal that described navigation system sends.
Embodiment five
The Voice over IP calling system that the embodiment of the present invention provides, comprising: terminal 50, the call control server 30 described in above-described embodiment three, lands gateway 60.
Wherein, after call control server 30 receives the call request with regional prefix sent by terminal 50, call control server 30 carries out call routing process to select to land recently gateway 60 according to the on-site regional prefix of terminal 50 obtained, and call out called terminal number by this nearest gateway 60 that lands, as shown in Figure 7, so, do not need when user dials local call to add and dial local regional prefix, convenient for users.
The Voice over IP calling system that the embodiment of the present invention provides, when the call request that the call request received is not with regional prefix, then the regional prefix of terminal seat and this call request are combined, and select to land gateway by the call request after combination, so, do not need when dialing local call or special service number to add acquisition approval district prefix, thus more convenient when making VOIP subscriber dialing.
Embodiment six
The Voice over IP calling system that the embodiment of the present invention provides, comprising: the terminal 40 described in above-described embodiment four, call control server 70.
Wherein, after terminal 40 receives the called terminal number with prefix, on-site for the terminal 40 of acquisition regional prefix and this called terminal number are combined into call number, and the call request carrying this call number is sent on call control server 70, and call control server 70 carries out call routing process to select the nearest gateway 60 that lands according to this call request, and call out called terminal number by this nearest gateway 60 that lands, as shown in Figure 8, so, do not need when user dials local call to add and dial local regional prefix, convenient for users.
The Voice over IP calling system that the embodiment of the present invention provides, when the call request that the call request received is not with regional prefix, then the regional prefix of terminal seat and this call request are combined, and select to land gateway by the call request after combination, so, do not need when dialing local call or special service number to add acquisition approval district prefix, thus make VOIP subscriber dialing more convenient.
The above; be only the specific embodiment of the present invention, but protection scope of the present invention is not limited thereto, is anyly familiar with those skilled in the art in the technical scope that the present invention discloses; change can be expected easily or replace, all should be encompassed within protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with the protection range of described claim.