Summary of the invention
Based on this, be necessary to provide a kind of accounts information and the call method based on VOIP voice gateways of list to be user-friendly to that can obtain the VOIP conversation.
Simultaneously, provide a kind of accounts information and the phone system based on VOIP voice gateways of list to be user-friendly to that can obtain the VOIP conversation.
A kind of accounts information and the VOIP voice gateways of list to be user-friendly to that can obtain the VOIP conversation also are provided.
A kind of call method based on the VOIP voice gateways, comprise the steps:
Receive request: receive the VOIP voice call request message that obtains terminal,
User's judgement: judge user's request type of terminal according to the request message of terminal,
If the judgement terminal is anonymous,
Revise message: revise request message, increase the identification marking of these VOIP voice gateways, send amended request message to the VOIP server,
Random account judgement: judge whether terminal is random user,
If be judged as random user
The VOIP server returns: the VOIP server is according to the user right of random user, generates accounts information, by accounts information with corresponding to the list information of this user right, returns to this VOIP voice gateways;
The VOIP voice gateways are returned: the accounts information that the VOIP voice gateways are returned to the VOIP server and corresponding list information return to client.
In a preferred embodiment, described random account judgement also comprises: the identity information that judges whether to receive terminal;
If do not receive, the judgement terminal is random user;
If receive and carry out
Identity judgement: search the accounts information of corresponding terminal according to the identity information of terminal, and judge that whether this terminal is registered, if judge, whether this terminal is registered, according to the authority of the accounts information of terminal, returns to corresponding accounts information and list information; If unregistered, be judged as random account.
In a preferred embodiment, if being used anonymous to send request acquiescence, terminal sends request the voice gateways to VOIP, the address that the Server Default in request message is these VOIP voice gateways;
Described modification message also comprises: inquiry is arranged on the address of the VOIP server of these VOIP voice gateways, revises request message, records source IP and the transmit port of terminal.
In a preferred embodiment, described VOIP server also returns and comprises: upgrade the user list state according to the address of VOIP voice gateways and the terminal that is connected to the VOIP voice gateways, identifying user, generate returned packet, sends to the VOIP voice gateways,
The VOIP voice gateways are received returned packet, and returned packet is transmitted to terminal;
Terminal is according to accounts information and the VOIP server address Information generation standard request information of returned packet;
The described list corresponding to random user is the local user's list that is connected to same VOIP voice gateways.
In a preferred embodiment, also comprise:
The online request of receiving terminal,
Judge that terminal is whether in register list,
If judgement, not in register list, pushes the VOIP voice call page or dialog box to terminal;
If receive the solicited message of terminal, be standard VOIP voice call information, the SIP of operative norm is mutual;
If receiving the solicited message of terminal is the anonymous solicited message, revises request message, and record the source IP of terminal and the VOIP signaling port of acquiescence in the VOIP signaling.
A kind of phone system based on the VOIP voice gateways comprises:
The VOIP voice gateways comprise:
Receive request module: receive the VOIP voice call solicited message of obtaining terminal,
User's judge module: judge user's request type of terminal according to the solicited message of terminal,
If the judgement terminal is anonymous, be connected to
Revise the message module: revise the request message of terminal transmission, increase the identification marking of these VOIP voice gateways, send amended request message to the VOIP server,
The VOIP server comprises:
Random account judge module: judge whether terminal is random user,
If being judged as random user is connected to
The VOIP server returns to module: the VOIP server is according to the user right of random user, generates accounts information, by accounts information with corresponding to the list information of this user right, returns to this VOIP voice gateways;
The VOIP voice gateways also comprise:
The VOIP voice gateways are returned to module: the list information of the accounts information of the random user that the VOIP server is transmitted and respective user authority returns to client.
In a preferred embodiment, described random account judge module also comprises:
Identity judging unit: the identity information that judges whether to receive terminal;
If do not receive, the judgement terminal is random user;
If receive and be connected to
Registration judging unit: search the accounts information of corresponding terminal according to the identity information of terminal, and judge that whether this terminal is registered, if unregistered, be judged as random account;
If judge, this terminal is registered, and according to terminal, corresponding user right returns to corresponding accounts information and list information; If unregistered, be judged as random account.
In a preferred embodiment, if being used anonymous to send request acquiescence, terminal sends request the voice gateways to VOIP, the address that the Server Default in request message is these VOIP voice gateways;
Described modification message module also comprises: inquiry is arranged on the address of the VOIP server of these VOIP voice gateways, revises request message, records source IP and the transmit port of terminal.
In a preferred embodiment, described VOIP server returns to module and also comprises: upgrade the user list state according to the address of VOIP voice gateways and the terminal that is connected to these VOIP voice gateways, identifying user, generate returned packet, sends to the VOIP voice gateways,
The VOIP voice gateways are received returned packet, and returned packet is transmitted to terminal;
Terminal, according to accounts information and the VOIP server address information of returned packet, is resolved the standard request information that generates;
The described list corresponding to random user is the local user's list that is connected to same VOIP voice gateways.
A kind of VOIP voice gateways comprise:
Receive request module: receive the VOIP voice call solicited message of obtaining terminal,
User's judge module: judge user's request type of terminal according to the solicited message of terminal,
If the judgement terminal is anonymous, be connected to
Revise the message module: revise the request message of terminal transmission, increase the identification marking of these VOIP voice gateways, send amended request message to the VOIP server,
The VOIP voice gateways are returned to module: receive the VOIP server and generate accounts information and, to list information that should user right, return to client according to the user right of terminal.
The above-mentioned call method based on the VOIP voice gateways, system and VOIP voice gateways, the user is without remembeing any parameter or information, can obtain corresponding accounts information and list information to the VOIP server by the VOIP voice gateways, and can call according to the accounts information obtained and list information, realize conversation, be user-friendly to; In conjunction with the function of VOIP voice gateways and the soft phone of VOIP, allow the user when using the soft phone of VOIP without too much setting, the accounts information can automatic acquisition needed to VOIP and user's list information, more convenient to use, more easily deployment.
Embodiment
As shown in Figure 1, one embodiment of the invention realize call method based on VOIP (the Voice over Internet Protocol networking telephone) voice gateways, comprise the steps:
The VOIP voice gateways are carried out
Step S101 receives request: receive the VOIP voice call request message that obtains terminal;
Step S103, user's judgement: the user's request type that judges terminal according to the request message of terminal;
If the judgement terminal is anonymous,
Step S105, revise message: revise request message, increase the identification marking of these VOIP voice gateways, send amended request message to the VOIP server;
VOIP server 40 is carried out
Step S107, random account judgement: judge whether terminal is random user,
If be judged as random user
Step S109, the VOIP server returns: the VOIP server is according to the random user rights of using, generates accounts information, by accounts information with corresponding to the list information of random user authority, returns to this VOIP voice gateways;
The VOIP voice gateways are carried out
Step S111, the VOIP voice gateways are returned: the accounts information that the VOIP voice gateways are returned to the VOIP server and corresponding list information return to client.
As shown in Fig. 1 and 2, further, the step S107 of the present embodiment, random account judgement also comprises:
Step S108, identity judgement: the identity information that judges whether to receive terminal;
If do not receive, the judgement terminal is random user;
If receive and carry out
Step S112, registration judgement: search the accounts information of corresponding terminal according to the identity information of terminal, and judge that whether this terminal is registered, if unregistered, be judged as random account; If judge, this terminal is registered, according to the authority of the accounts information of terminal, returns to corresponding accounts information and list information.Wherein, VOIP server 40 returns to corresponding accounts information and list information to VOIP voice gateways 20 according to the authority of the accounts information of terminal; The accounts information that the VOIP voice gateways are returned to the VOIP server and corresponding list information return to client.
Further, in the present embodiment, if being used anonymous to send request acquiescence, terminal 60 sends request to VOIP voice gateways 20 address that the VOIP Server Default in request message is these VOIP voice gateways.
Preferably, as worked as terminal 60 in requests for page, when the input message of corresponding account name and password all is Guest, be judged as anonymous.Certainly solicited message also is not limited to this, and when terminal, in requests for page, its solicited message is not the SIP communicating request information of standard, can think anonymous.
Further, the step S105 of the present embodiment, revise message and also comprise: inquiry is arranged on the address of the VOIP server of these VOIP voice gateways, revises request message, records source IP and the transmit port of terminal.
Further, the step S109 of the present embodiment, the VOIP server also returns and comprises: upgrade the user list state according to the address of VOIP voice gateways and the terminal that is connected to these VOIP voice gateways, identifying user, generate returned packet, sends to the VOIP voice gateways.Wherein, identifying user mainly carries out class indication according to user's type of service, as the user is identified for the local user.The local user is the random user terminal that is connected to the VOIP voice gateways, and rights of using can be set in all terminals that are connected on these VOIP voice gateways.
Further, the VOIP voice gateways 20 of the present embodiment are received the returned packet of VOIP server 40, and returned packet is transmitted to terminal 60.Terminal 60 generates standard request information according to accounts information and VOIP server 40 address informations of returned packet; It is mutual that terminal 60 can be carried out the SIP of standard by input standard request information.
Further, the list corresponding to random user of the present embodiment is the local user's list that is connected to same VOIP voice gateways.
One embodiment of the invention realize call method based on VOIP (the Voice over Internet Protocol networking telephone) voice gateways, also comprise:
VOIP voice gateways 20
The online request of receiving terminal 60; Obtain IP and send the online request as terminal is connected to the VOIP voice gateways by WIFI etc.The IP that terminal is obtained is the IP in the local area network (LAN) that the VOIP voice gateways arrange.
Judge that terminal is whether in register list;
If judgement, not in register list, pushes the VOIP voice call page or dialog box to terminal; As login or First Contact Connections for the first time to the terminal of these VOIP voice gateways, or the terminal that again is connected to these VOIP voice gateways after the setting-up time of interval.
If receive the solicited message of terminal, be standard VOIP voice call solicited message, the SIP of operative norm is mutual;
If receiving the solicited message of terminal is the anonymous solicited message, revises request message, and record the source IP of terminal and the VOIP signaling port of acquiescence in the VOIP signaling.When terminal adopts anonymous to be asked, transmit port is the VOIP signaling port (this port can maybe need to be arranged according to actual requirement) of acquiescence.
The present embodiment realize call method, the protocol stack based on standard Session Initiation Protocol stack and expansion thereof based on VOIP (the Voice over Internet Protocol networking telephone) voice gateways.Be mainly concerned with the parts such as the soft phone of VOIP, VOIP voice gateways, VOIP server.
The VOIP server of the present embodiment: mainly comprise the registration management of VOIP and the function of call manager, and support user list, the generation random user account obtained of the present invention.
The VOIP voice gateways of the present embodiment, for supporting the VOIP voice gateway router of Session Initiation Protocol stack, support the VOIP signaling to forward, and at least one uplink network communication modes such as WIFI is provided.
Terminal can be the VOIP calling customer terminal based on the Android/IOS mobile terminal, supports the Session Initiation Protocol stack of standard, the VOIP-SIP server of compatible main flow.By being connected to VOIP voice gateways of the present invention, realize automatic acquisition and the user list automatic acquisition of SIP account/password.Can be also the PC network phone: run on the VOIP networking telephone client on PC, support the Session Initiation Protocol stack of standard.Can be also common phone: by the RJ11 mouth, directly receive the ordinary telephone set on the VOIP voice gateways.
As shown in Figure 3, the another preferred embodiment of the present invention realize call method based on VOIP (the Voice over Internet Protocol networking telephone) voice gateways, comprising:
Step S501, terminal is connected to the VOIP voice gateways by modes such as WIFI and gets IP (agreement interconnected between Internet Protocol network), to be surfed the Net.
VOIP voice gateways 20 judge that terminal 60 is whether in register list, and according to whether determining whether to push the VOIP voice call page or dialog box to terminal in register list.
Step S505, terminal can open the soft phone of VOIP or the VOIP voice call page pushed in the VOIP voice gateways or dialog box on carry out, if the user inputs the isoparametric standard request information of sip server, SIP account, SIP password of standard, the SIP interaction flow of Application standard, this reciprocal process adopts existing network phone request interaction flow to realize, does not repeat them here; If the user does not input SIP information or parameter, it is anonymous account, give tacit consent to the VOIP voice gateways of connection and send the i.e. anonymous voice call request message that sends of registration request, the address that now server of this request message is the VOIP voice gateways, account name and password can be given tacit consent to employing Guest.
Preferably, in request message, also can add the sign that can identify this terminal, be convenient to sip server and be assigned to applicable SIP account to terminal; Terminal sends request the VOIP signaling side slogan (this port numbers can arrange as required) that the port numbers of message is acquiescence.
Step S507, the VOIP voice gateways receive the request message that mails to this gateway address, and the account name and the password that receive are Guest, inquiry is arranged on the address of SIP account server in the VOIP server 40 of these VOIP voice gateways or VOIP server, revise request message, and record source IP and the transmit port of terminal in the route of the VOIP signaling in request message, and increase the sign of identifying these VOIP voice gateways in request message, amended request message is transmitted to VOIP server 40.
Step S509, the VOIP server receives that account name/password is the request message of Guest, according to the terminal iidentification in message, the user right set, generation accounts information, according to the address of VOIP voice gateways, upgrade the user list state, which identifies for the local user, generate returned packet, send to the VOIP voice gateways.If in the request message that the VOIP server receives or request, the phone number of the identity information of terminal as user's input arranged, whether the identity information that judges this terminal is as registered as the phone number of user's input, if registered, according to the identity information of this terminal, the user right of corresponding account returns to accounts information and reaches the user list corresponding to this user right.If unregistered, be judged as random user, according to the authority of random user, generate accounts information, the list of the accounts information of generation and corresponding random user authority is returned to VOIP voice gateways 20.
Step S511, the VOIP voice gateways are received returned packet, and the judgement message is to need oneself to forward, and then forwarding the packet to the purpose terminal is the soft phone of SIP.
Terminal is that the soft phone of SIP is received returned packet, the accounts information returned according to returned packet and VOIP server address information, and the VOIP voice call solicited message of generation standard, then the Session Initiation Protocol according to standard carries out voice call or is made a phone call.
The present invention utilize the logon message of existing Session Initiation Protocol and VOIP signaling to E-Packet to realize account with the obtaining of user list, comprise: terminal is that to send request message to destination address be the VOIP voice gateways to soft phone, the VOIP voice gateways detect the request message that destination address is this VOIP voice gateways address, after obtaining the VOIP server configured be the sip server address information on these VOIP voice gateways, this request message is revised as to the request message that the VOIP signaling forwards, added VOIP voice gateways sign in request message, after the VOIP server is received this request message, according to setting the corresponding SIP accounts information of permission build, and send to the VOIP voice gateways, the VOIP voice gateways forward returned packet, terminal is that the soft phone of SIP is received returned packet, parse SIP (Session Initiation Protocol) accounts information and the user list information of the inside.The solicited message of terminal input standard, the SIP of the flow process of after this making a phone call and standard (Session Initiation Protocol) agreement is the same.
As shown in Figure 4, the phone system based on the VOIP voice gateways 100 of one embodiment of the invention comprises:
VOIP voice gateways 20 comprise:
Receive request module 22: receive the VOIP voice call solicited message of obtaining terminal,
User's judge module 24: judge user's request type of terminal according to the solicited message of terminal,
If the judgement terminal is anonymous, be connected to
Revise message module 26: revise the request message of terminal transmission, increase the identification marking of these VOIP voice gateways, send amended request message to VOIP server 40,
VOIP server 40 comprises:
Random account judge module 42: judge whether terminal is random user,
If being judged as random user is connected to
The VOIP server returns to module 44:VOIP server according to the random user rights of using, generates accounts information, by accounts information with corresponding to the list information of random user authority, returns to this VOIP voice gateways;
VOIP voice gateways 20 also comprise:
The VOIP voice gateways are returned to module 28: random client account information and list information that the VOIP server is transmitted return to client 60.
As shown in Figure 5, further, the random account judge module 42 of the present embodiment also comprises: identity judging unit 422.
Identity judging unit 422: the identity information that judges whether to receive terminal 60;
If do not receive, judgement terminal 60 is random user;
If receive and be connected to
Registration judging unit 424: search the accounts information of corresponding terminal according to the identity information of terminal, and judge that whether this terminal is registered, if unregistered, be judged as random account; If judge, this terminal is registered, according to the authority of the accounts information of terminal, returns to corresponding accounts information and list information.
Preferably, the registration judging unit of the present embodiment mainly judge terminal whether with existing relevant cooperation agreement or the User Agreement of service provider, and according to different User Agreement permission matchs different user list as local user's list, long-distance user's list etc.; Or give different services according to different User Agreements or authority.
Identity judging unit 422 can be judged according in request message or in solicited message, whether containing identity information; As terminal can be passed through to input identity information as phone number or telephone number or MAC Address etc. in soft telephone interface or request interface, and automatically be carried in request message.The sign that certainly also can directly in the request message generated, automatically add mounted terminal is carried out as the identity information sign.
If terminal 60 is used anonymous to send request acquiescence and is sent request the voice gateways to VOIP, the address that the Server Default in request message is these VOIP voice gateways.Use input Guest login as terminal 60 on dialog box or client, be judged as anonymous.
Further, the modification message module 26 of the present embodiment also comprises: inquiry is arranged on the address of the VOIP server 40 on these VOIP voice gateways 20, revises request message, records source IP and the transmit port of terminal 60.
Further, the VOIP voice gateways of the present embodiment are returned to module 28 and are also comprised: according to the address of VOIP voice gateways 20 and the terminal 60 that is connected to these VOIP voice gateways 20, upgrade the user list states, identifying user, generate returned packet, sends to VOIP voice gateways 20.
The VOIP voice gateways of the present embodiment are returned to the main identifying user of module 28 identifying user for the local user, and the registered user of related service agreement is still arranged with service provider.
Further, the VOIP voice gateways 20 of the present embodiment are received returned packet, and returned packet is transmitted to terminal 60.
Terminal 60 is according to accounts information and the VOIP server address Information generation standard request information of returned packet.It is mutual that on client, solicited message corresponding to input can be carried out the SIP of standard.
Further, the list corresponding to random user of the present embodiment is the local user's list that is connected to same VOIP voice gateways 20.
As shown in Figure 6, the VOIP voice gateways 20 of one embodiment of the invention comprise: reception request module 22, user's judge module 24, modification message module 26, VOIP voice gateways are returned to module 28.
Receive request module 22: receive the VOIP voice call solicited message of obtaining terminal;
User's judge module 24: the user's request type that judges terminal according to the solicited message of terminal;
If the judgement terminal is anonymous, be connected to
Revise message module 26: revise the request message of terminal transmission, increase the identification marking of these VOIP voice gateways, send amended request message to VOIP server 40;
The VOIP voice gateways are returned to module 28: receive that VOIP server 40 generates accounts information according to the rights of using of terminal 60 and to the list information of rights of using that should terminal 60, and return to client 20.
The present invention combines VOIP server, VOIP voice gateways and mobile terminal, a kind of talking mode has more easily been proposed, the user can use the phone system 100 based on the VOIP voice gateways of the present invention, more quick and easy being made a phone call, make popularization more effective, use the phone system 100 based on the VOIP voice gateways of the present invention, enterprise, businessman, school, individual etc. can be convenient the VOIP communication system of foundation oneself, the cost of communication can be reduced greatly, also the convenience that mobile communication is brought can be enjoyed.
Enterprise is without disposing complicated VOIP telephone line, also without using expensive mobile communications network, by disposing the phone system 100 based on the VOIP voice gateways of the present invention, can realize the mobile communications network of enterprises, and realize efficiently, link up easily by the WIFI network.
VOIP server 40: for VOIP Account Registration management and call manager, can be the VOIP server of native system inside, can be also the server that outside VOIP operator provides.The VOIP server generally comprises SIP registrar server, sip proxy server, STUN server etc.; SIP registrar server provides the user to register.
VOIP voice gateways 20: support the voice gateway router of WIFI, Ethernet interface and WIFI are supported in the downlink network access, support the access of RJ11 plain old telephone mouth, and uplink network is supported the accesses such as ADSL/3G/LTE, and networking mode very flexibly is provided.
The terminal of the present embodiment can adopt mobile terminal, also can adopt the PC network phone, also can adopt common phone.
Mobile terminal: can be the VOIP calling customer terminal based on the Android/IOS mobile terminal, the Session Initiation Protocol stack of support standard, the VOIP-SIP server of compatible main flow, support VOIP account management agreement simultaneously, by being connected to VOIP voice gateways 20, realize the automatic acquisition of SIP account/password and the automatic acquisition of local account list and remote account list.PC network phone: run on the VOIP networking telephone client on PC, support the Session Initiation Protocol stack of standard.Common phone: directly receive the ordinary telephone set on VOIP voice gateways 20 by the RJ11 mouth, but depend on the interface quantity of VOIP voice gateways.
The VOIP signaling protocol of the present embodiment is for setting up and cancelling and calling out, and transmission is for consumer positioning and the required information of negotiation ability.
The terminal of the present embodiment sends the request of obtaining accounts information to VOIP voice gateways 20, and VOIP voice gateways 20 can be obtained subscriber identity information as phone number.VOIP voice gateways 20 according to the VOIP server 40 configured as SIP account server address to this VOIP server 40 as SIP account server Forward-reques message, whether VOIP server 40 inputs identity information as the SIP account server according to the user is carried out the authority processing as loCal number, if inputted identity information as loCal number, search information corresponding to SIP account corresponding to the terminal of this identity information, if registered setting, return to corresponding SIP accounts information and list information, not being used as the casual user processes, return to local user list as be connected to the user list of same VOIP voice gateways according to casual user's authority, the VOIP voice gateways receive that VOIP server 40 records the current accounts information returned as the returned packet of SIP account server, the information that can be used as the local account renewal is notified to the terminal that is connected to these VOIP voice gateways.
The above embodiment has only expressed several execution mode of the present invention, and it describes comparatively concrete and detailed, but can not therefore be interpreted as the restriction to the scope of the claims of the present invention.It should be pointed out that for the person of ordinary skill of the art, without departing from the inventive concept of the premise, can also make some distortion and improvement, these all belong to protection scope of the present invention.Therefore, the protection range of patent of the present invention should be as the criterion with claims.