Summary of the invention
Given this, be necessary to provide a kind of method, server and system of the PTT of foundation trunked call, the problem in order to the session to original POC creates a mechanism is optimized PTT conversation establishing flow process, to shorten the time of conversation establishing.
Particularly, one aspect of the present invention provides a kind of method of the PTT of foundation trunked call:
Application server receives the conversation establishing request at first terminal, and said conversation establishing request comprises the group identification that this first terminal is selected, and wherein, said group identification is used to identify the group at the terminal of participating in cluster conversation;
Application server is according to said group identification, and from the corresponding included terminal information of group of the said group identification of data base querying, said terminal information comprises the RTP port information at terminal and the RTCP port information at terminal;
Application server is created the group meeting-place, and adds the terminal that is inquired to the group meeting-place according to the included terminal information of the group that inquires;
After the meeting-place is created successfully; Application server is according to the RTCP port information at said first terminal that inquires; The RTCP port of said words power allowance information through said first terminal sent to said first terminal; Said application server is according to the RTCP port information of the said other-end that inquires, and the RTCP port of said words power occupied information through said other-end sent to said other-end;
Said application server receives the RTP voice messaging that send at said first terminal, and according to the RTP port information of the said other-end that inquires the RTP voice messaging is transmitted to said other-end.
The present invention provides a kind of application server that is applied to set up the PTT trunked call on the other hand, and this application server comprises:
The request receiving element is used to receive the conversation establishing request at first terminal, and said conversation establishing request comprises the group identification that said first terminal is selected, and wherein, said group identification is used to identify the group at the terminal of participating in cluster conversation;
Query unit is used for the group identification according to said conversation establishing request, and from the corresponding included terminal information of group of the said group identification of data base querying, said terminal information comprises the RTP port information at terminal and the RTCP port information at terminal;
The unit is created in the meeting-place, is used to create the group meeting-place, and adds the said terminal that inquires to the group meeting-place according to the included terminal information of the group that inquires;
Words power information transmitting unit is used for the RTCP port information according to said first terminal that inquires, and the RTCP port of said words power allowance information through said first terminal sent to said first terminal; According to the RTCP port information of the said other-end that inquires, the RTCP port of said words power occupied information through said other-end sent to said other-end;
Retransmission unit is used to receive the RTP voice messaging that send at said first terminal, and according to the RTP port information of the said other-end that inquires the RTP voice messaging is transmitted to said other-end.
The present invention also provides a kind of system of the PTT of foundation trunked call on the other hand, and wherein, this system comprises:
Authentication server, application server, and at least two terminals comprise first terminal and the other-end that removes said first terminal at least in said two terminals;
Said application server is used to receive the conversation establishing request at said first terminal, and said conversation establishing request comprises the group identification that said first terminal is selected, and wherein, said group identification is used to identify the group at the terminal of participating in cluster conversation; Also be used for the group identification according to said conversation establishing request, to the corresponding included terminal information of group of the said group identification of data base querying, said terminal information comprises the RTP port information at terminal and the RTCP port information at terminal; Also be used to create the group meeting-place, add the said terminal that inquires to the group meeting-place according to the included terminal information of the group that inquires; Inquire the RTCP port information at said first terminal; And the RTCP port of said words power allowance information through said first terminal sent to said first terminal; Said application server is according to the RTCP port information of the said other-end that inquires, and the RTCP port of said words power occupied information through said other-end sent to said other-end; And receive the RTP voice messaging that send at said first terminal, and the RTP voice messaging is transmitted to said other-end according to the RTP port information of the said other-end that inquires;
Said authentication server is used for the register requirement of receiving terminal, and according to the authentication information in the said register requirement authentication is carried out at said terminal.
The method of a kind of PTT of foundation trunked call that the embodiment of the invention provides; System and application server can make application server needn't wait for other-end feedback terminal RTP port information and terminal RTCP port information; But directly arrive above-mentioned information through data base querying; Thereby directly directly send RTP information and RTCP information, optimized the flow process of setting up of trunked call, shortened the time of conversation establishing to the terminal through RTP port and RTCP port.
Embodiment
For the purpose, technical scheme and the advantage that make the embodiment of the invention clearer; To combine the accompanying drawing in the embodiment of the invention below; Technical scheme in the embodiment of the invention is carried out clear, intactly description; Obviously, described embodiment is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills are not making the every other embodiment that is obtained under the creative work prerequisite, all belong to the scope of the present invention's protection.
Below in conjunction with accompanying drawing and embodiment, the method for setting up the PTT trunked call, server and the system that the present invention set forth explained further details.Should be appreciated that specific embodiment described herein only in order to explanation the present invention, and be not used in qualification the present invention.
At first, a kind of method of the PTT of foundation trunked call is provided, please refer to Fig. 1, this method comprises:
S101: application server receives the conversation establishing request at first terminal, and said conversation establishing request comprises the group identification that said first terminal is selected, and wherein, said group identification is used to identify the group at the terminal of participating in cluster conversation;
S103: application server is according to the group identification in the said conversation establishing request, and to the corresponding included terminal information of group of the said group identification of data base querying, said terminal information comprises the RTP port information at terminal and the RTCP port information at terminal;
S105: application server is created the group meeting-place, and adds the said terminal that inquires to the group meeting-place according to the included terminal information of the group that inquires;
S107: after the meeting-place is created successfully; Application server is according to the RTCP port information at said first terminal that inquires; And the RTCP port of said words power allowance information through said first terminal sent to said first terminal; Said application server is according to the RTCP port information of the said other-end that inquires, and the RTCP port of said words power occupied information through said other-end sent to said other-end;
S109: said application server receives the RTP voice messaging that send at said first terminal.
S111: application server is transmitted to said other-end according to the RTP port information of the said other-end that inquires with the RTP voice messaging.
Wherein, receive at application server before the conversation establishing request at first terminal, said method also comprises: the RTP port information at the terminal that authentication server carries during with each endpoint registration and the RTCP port information at terminal are stored in the database.
The RTP port information at the terminal that above-mentioned authentication server carries during with each endpoint registration and the RTCP port information at terminal are stored in the database and specifically comprise:
The login request message of A, authentication server receiving terminal, said login request message comprises authentication information, and the RTCP port information at the RTP port information at terminal and terminal;
B, authentication server carry out authentication according to said authentication information to said terminal, and after the authentication success, said authentication server is stored into the RTP port information at said terminal and the RTCP port information at terminal in the database.
The implementation of the inventive method embodiment is described through concrete reciprocal process below:
Whole PTT trunked call finishes to be divided into to be three phases from being established to, is respectively the registration process at terminal, the establishment of trunked call, the end of trunked call.The information of being mentioned in the embodiment of the invention is all transmitted through Session Initiation Protocol except that through RTP and the rtcp protocol transmission.Below this process is specified:
Phase I, the registration process at terminal please refer to accompanying drawing 2:
S201, authentication server receives the register requirement at each terminal (comprising first terminal and other-end).Except that authentication information, also comprise following configuration information in the login request message, comprising: the RTCP port information at terminal, RTP port information, sip message port information, IP address of terminal information.Wherein the RTCP port is used to receive and dispatch the RTCP control information, and this RTCP bag is used to control the transmission of speech data RTP voice messaging; The RTP port is used for receiving and transmitting voice data RTP voice messaging; The sip message port is used for the relevant sip message in transmitting-receiving meeting-place under the Session Initiation Protocol, and IP address of terminal is used for the marking terminal position.
S203, if authentication server carries out authentication to the terminal, if after the terminal authentication success, then authentication server returns application server IP address to the terminal in the registration return messages.
S205, authentication server stores the as above configuration information in the login request message in the database into, so that application server can obtain said configuration information from database when session is operated.
Need to prove; In the concrete process that realizes; To the authentication server among the S203 registration return in the return messages application server the IP address, with S205 in authentication server on execution sequence, do not limit the process that the configuration information in the login request message stores in the database; Can carry out S203 earlier, carry out S205 again; Also can carry out S205 earlier, carry out S203 again, in addition, two steps also can be carried out simultaneously.
S207, authentication server sends user's notification message of reaching the standard grade to application server, so that application server can be confirmed the terminal of having succeeded in registration.
Second stage, the establishment of trunked call please refer to accompanying drawing 3:
S301, application server receive the INVITE that send at first terminal.
Wherein, first terminal is as calling terminal.Said INVITE is the request message that calling terminal initiates to create cluster conversation.Wherein first terminal is sent this message through the application server IP address that the back authentication server that succeeds in registration returns to application server; Carry the number of the account at first terminal in this said INVITE; The selected group identification in first terminal, wherein the number of the account at first terminal is used for application server and discerns first terminal; Through group identification, can inquire the number of the account at the terminal that is included in this group;
S303, application server is through the whole end messages in this session group of data base querying.
In concrete the realization, application server utilizes the group identification inquiry in the INVITE that first terminal sends to participate in the terminal information of group call.Said terminal information just has been stored in when authentication server is registered in the database at the terminal, specifically can comprise the RTP port information at terminal number of the account, terminal name, IP address of terminal information, terminal, the RTCP port information at terminal.
S305, application server receives the Query Result that database returns.
Need to prove that the application server of mentioning among S303 and the S305 can be the equipment that separates with database physically, also can be integrated on the same physical entity.
S307, application server is created the group meeting-place according to the first terminal number of the account, and the online situation of the other-end that obtains according to data base querying is added the terminal called that inquires in the group meeting-place to.
In concrete the realization, the mode in application server establishment group meeting-place has multiple, except above-mentioned number of the account according to first terminal is created, can also create according to the title at first terminal, perhaps can name the group meeting-place that is created with random number.
Need to prove, after creating the group meeting-place, can by application server with from data base querying to the terminal add to the group meeting-place.
S309, after the meeting-place was created successfully, application server was represented the conversation establishing success to calling terminal feedback 200OK message.This 200OK message comprises the RTP port information of application server.
S311, after the message of application server 200OK was received at first terminal, to application server feeding back ACK message, expression acknowledged receipt of.
After S313, application server received ACK message, the terminal RTCP port information according to Query Database obtains sent GRANT message through the RTCP port to first terminal, and this GRANT message is for application server is weighed allowance information to the words that calling terminal sends.
S315; After application server is received ACK message; The RTCP port information of the other-end that obtains according to Query Database sends TAKEN message through the RTCP port to other-end, and this TAKEN message is the announcement information that words power that application server sends to terminal called takies.
Need to prove that S313 and S315 do not have clear and definite sequence requirement in concrete implementation procedure, can carry out S313 earlier and carry out S315 again, also can carry out S315 earlier and carry out S313 again, can also S313 and S315 carry out simultaneously.To this, embodiments of the invention do not add any qualification.
S317 after GRANT message is received at first terminal, can initiate audio call, and the RTP port through the application server that carries among the 200OK among the S309 sends the RTP voice messaging to application server.
S319, application server is transmitted to other-end according to the RTP port information at the terminal that Query Database obtains with the RTP voice messaging that first terminal sends over.
Need to prove that in this stage, application server can directly inquire the RTP port information of other-end and the RTCP port information at terminal during the first terminal initiation session, and needn't from the response message of terminal called, obtain.This just makes the terminal of winning after the other-end login, can be directly acquainted with its online situation and sends voice messaging to it, and needn't wait for the response of other-end, and then has shortened the time of conversation establishing greatly.
Phase III: the end of trunked call please refer to accompanying drawing 4:
S401, BYE message is sent in order to end session to application server in first terminal.
After S403, application server receive conversation end message, discharge whole terminals.
S405, application server is replied 200OK to first terminal, shows that the meeting-place can finish.
S407, application server sends each other-end conversation end of end of calling message informing to other-end through rtcp protocol.
S409, application server discharges the meeting-place resource, finishes trunked call.
More than be that present embodiment PTT trunked call is from being established to the overall process of end.In addition, embodiments of the invention also provide a kind of situation that after trunked call begins, has the terminal to add trunked call, please refer to accompanying drawing 5:
S501, the cluster session is created, and first terminal begins to send the RTP voice messaging to application server.
S503, application server is transmitted the RTP voice messaging to other-end.
S505, lagging adds the success of endpoint registration authentication server, and authentication server is with the notification applications server, and concrete steps such as the described S101 of preceding text phase I terminal login registration are to S107.
S507, succeed in registration at authentication server in the adding terminal that lags.
S509, authentication server notification applications server lag and add the terminal and reach the standard grade.
S511, application server judges according to the preset whole end messages that belong to this group in the database whether this terminal that lags belongs in the conversation starting terminal scope.If then application server adds this adding terminal that lags to meeting-place, and obtains the RTCP port information at this terminal and the RTP port information at terminal from data base querying.
S513, if the speech of current first terminal, application server lags to this and adds terminal transmission RTCP (TAKEN) message, the RTP voice messaging at first terminal that the while application server will receive is transmitted to this user.Even not online when this adding terminal that lags makes a call at first terminal at first like this, also can receive the current speech message that sends of meeting caller after the login that lags.
Secondly, the present invention also provides a kind of system embodiment of the PTT of foundation trunked call, please refer to Fig. 6.
This system comprises: authentication server 610, and application server 630, and at least two terminals comprise first terminal 650 and the other-end 670 that removes said first terminal at least in said two terminals;
Application server 630 is used to receive the conversation establishing request at first terminal 650, and this conversation establishing request comprises the group identification that first terminal 650 is selected, and wherein, this group identification is used to identify the group at the terminal of participating in cluster conversation; According to the group identification in the conversation establishing request, to the corresponding included terminal information of group of the database said group identification of 690 inquiries, this terminal information comprises the RTP port information at terminal and the RTCP port information at terminal; Create the group meeting-place, add the terminal that inquires to the group meeting-place according to the included terminal information of the group that inquires; RTCP port information according to first terminal 650 that inquires; Send to first terminal 650 with talking about the RTCP port of power allowance information through first terminal; Application server 630 sends to other-end 670 according to the RTCP port information of the other-end that inquires with talking about the RTCP port of power occupied information through other-end; And receive the RTP voice messaging that send at first terminal 650, and the RTP voice messaging is transmitted to said other-end 670 according to the RTP port information of the other-end that inquires;
Authentication server 610 is used for the registration information of receiving terminal, and according to the authentication information in the said registration information authentication is carried out at said terminal.
The registration information at said terminal also comprises the RTP port information at terminal and the RTCP port information at terminal; Said authentication server 610, the RTP port information at the terminal that also is used for the terminal is carried when the register requirement and the RTCP port information at terminal are stored in database.
At last, application server 630 embodiment that provide a kind of PTT of being applied to trunked call to set up please refer to Fig. 7.This application server 630 comprises with lower unit:
Request receiving element 631 is used to receive the conversation establishing request at first terminal, and this conversation establishing request comprises the group identification that first terminal is selected, and wherein, this group identification is used to identify the group at the terminal of participating in cluster conversation;
Query unit 633 is used for the group identification according to this conversation establishing request, and to the corresponding included terminal information of group of this group identification of data base querying, this terminal information comprises the RTP port information at terminal and the RTCP port information at terminal;
Unit 635 is created in the meeting-place, is used to create the group meeting-place, and adds the said terminal that inquires to the group meeting-place according to the included terminal information of the group that inquires;
Words power information transmitting unit 637 is used for the RTCP port information according to said first terminal that inquires, and the RTCP port of said words power allowance information through said first terminal sent to said first terminal; According to the RTCP port information of the said other-end that inquires, the RTCP port of said words power occupied information through said other-end sent to said other-end;
Retransmission unit 639 is used to receive the RTP voice messaging that send at said first terminal, and according to the RTP port information of the said other-end that inquires the RTP voice messaging is transmitted to said other-end.
Application server can directly inquire the RTP port information of other-end and the RTCP port information at terminal during the first terminal initiation session, and needn't from the response message of terminal called, obtain above-mentioned information.This just makes the terminal of winning after the other-end login, can be directly acquainted with its online situation and sends voice messaging to it, and needn't wait for the response of other-end, and then has shortened the time of conversation establishing greatly.
One of ordinary skill in the art will appreciate that all or part of flow process that realizes in the foregoing description method; Be to instruct relevant hardware to accomplish through computer program; Described program can be stored in the computer read/write memory medium; This program can comprise the flow process like the embodiment of above-mentioned each side method when carrying out.Wherein, described storage medium can be magnetic disc, CD, read-only storage memory body (Read-Only Memory, ROM) or at random store memory body (Random Access Memory, RAM) etc.
What should explain at last is: above embodiment is only in order to explaining technical scheme of the present invention, but not to its restriction; Although with reference to previous embodiment the present invention has been carried out detailed explanation, those of ordinary skill in the art is to be understood that: it still can be made amendment to the technical scheme that aforementioned each embodiment put down in writing, and perhaps part technical characterictic wherein is equal to replacement; And these are revised or replacement, do not make the spirit and the scope of the essence disengaging various embodiments of the present invention technical scheme of relevant art scheme.