CN104158884B - Voice communication method based on mobile internet - Google Patents

Voice communication method based on mobile internet Download PDF

Info

Publication number
CN104158884B
CN104158884B CN201410412508.2A CN201410412508A CN104158884B CN 104158884 B CN104158884 B CN 104158884B CN 201410412508 A CN201410412508 A CN 201410412508A CN 104158884 B CN104158884 B CN 104158884B
Authority
CN
China
Prior art keywords
client
message
media server
request
communication method
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201410412508.2A
Other languages
Chinese (zh)
Other versions
CN104158884A (en
Inventor
郑俊鑫
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Huaduo Network Technology Co Ltd
Original Assignee
Beijing Biling Online Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Biling Online Information Technology Co Ltd filed Critical Beijing Biling Online Information Technology Co Ltd
Priority to CN201410412508.2A priority Critical patent/CN104158884B/en
Publication of CN104158884A publication Critical patent/CN104158884A/en
Application granted granted Critical
Publication of CN104158884B publication Critical patent/CN104158884B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

Disclose a kind of voice communication method based on mobile Internet, being burrowed by P2P, make between client can direct communication, client had both received the voice packet of media server forwarding, also the voice packet that call the opposing party directly sends is received, received by the transmission of double-channel pronunciation bag, reduce because packet loss caused by network reason, so as to improve speech quality.

Description

Voice communication method based on mobile Internet
Technical field
The invention belongs to mobile Internet speech communication field, leads to more particularly to a kind of voice based on mobile Internet Letter method.
Background technology
With the development of instant messaging technology, instant communicating system also has in addition to possessing basic instant communication function Other many additional functions, such as voice call function.Voice call, which is carried out, using instant communicating system has become mass society One of tool of communications used in masses, at present existing mobile Internet voice-enabled chat can be transmitted across because unstable networks Journey lost packets, cause speech quality to decline.
The content of the invention
It is an object of the invention to provide a kind of voice communication method based on mobile Internet.
According to the present invention, there is provided a kind of voice communication method based on mobile Internet, including:First client is to signaling Server sends call request;Signal server receives call request, and session is established according to the call request, and by session mark Know the second client sent to the first client and with the first client session;First client and the second client connect respectively Session identification is received, and sends registration message to media server respectively;Media server receives the registration message, obtains first Client and the respective network address of the second client, session list is established, and distinguished to the first client and the second client Return is succeeded in registration message;Receive media server to succeed in registration after message, the first client and the second client are respectively to matchmaker Body server sends that the first P2P burrows request and the 2nd P2P burrows request;Media server receives the first P2P and burrowed request, and First P2P, first message that burrows that request synthesizes with the network address of the first client that burrows is sent to the second client, with And the 2nd P2P second message that burrows that request synthesizes with the network address of the second client that burrows is sent to the first client; Second client receives first and burrowed message, obtains the first network address for burrowing the first client in message;First client Receive second to burrow message, obtain the second network address for burrowing the second client in message;First client and the second client End carries out P2P and burrowed, and records the successful network address that burrows;Speech message is transmitted directly to the second client by the first client Network address, while the second client is transmitted to by media server;And second client speech message is directly sent out The network address of the first client is given, while the first client is transmitted to by media server.
Preferably, in the voice communication method, the network address is included in outer net address and internal address extremely It is few one.
Preferably, in the voice communication method, in the step of media server receives the registration message, obtain First client and the respective outer net address of the second client.
Preferably, in the voice communication method, the first P2P burrow request bag contain the first client internal address, And the 2nd P2P burrow request bag contain the second client internal address.
Preferably, in the voice communication method, in addition to:One in first client and the second client is simultaneously Receive another speech message directly transmitted in media server forwarding and the first client and the second client.
Preferably, in the voice communication method, the number of first client and the second client is respectively one It is individual.
Preferably, in the voice communication method, media server session list according to corresponding to being established session identification.
Preferably, in the voice communication method, the session list includes the use of the client of both call sides first Family identifies and outer net address.
The voice communication method based on mobile Internet according to embodiments of the present invention, burrowed by P2P make client it Between can direct communication, client both received the voice packet of media server forwarding, and also received call the opposing party and directly send Voice packet, received, reduced because packet loss caused by network reason by the transmission of double-channel pronunciation bag, so as to improve call Quality.
Brief description of the drawings
Fig. 1 is the flow chart according to the voice communication method based on mobile Internet of the embodiment of the present invention,
Fig. 2 is the data control schematic diagram started according to the voice call of the embodiment of the present invention,
Fig. 3 is the data control schematic diagram that voice packet is sent in voice-enabled chat according to embodiments of the present invention.
Embodiment
Following discloses provide many different embodiments or example to implement the different characteristic of the application.Describe below Part or the specific embodiment of arrangement are to simplify the present invention.Certainly, these are only that example is not intended to limit the present invention.
In the specification and in the claims, term " first ", " second " etc. are used to make a distinction between analogous element, And if the order of time sequencing, spatial order, hierarchal order or any other mode may not be described, it should be appreciated that using These terms it is interchangeable under appropriate environment, and embodiments of the invention described herein can be to be described herein or show Other beyond going out sequentially operate.
In addition, in the specification and in the claims, term " P2P burrows " is the known technology in end-to-end communication, i.e., Two terminals (such as A, B) for being in different internal networks realize penetrating for NAT networks using UDP, finally realize two terminals It is direct-connected.
It should be noted that the term " comprising " used in detail in the claims should not be construed as limited to hand listed below Section, it is not precluded from other elements or step.Thus, it should be interpreted specify such as relating to the feature, numeral, step Or the presence of part, but it is not excluded that the presence of one or more other features, numeral, step or parts or its combination Or addition.Therefore, the scope of word " equipment for including device A and B " should not be limited to the device being only made up of component A and B. This means for the present invention, the associated component of equipment is A and B.
This specification in the whole text in reference to " one embodiment " or " embodiment " mean that combining the embodiment describes Special characteristic, structure or characteristic include at least one embodiment of the present invention in.Thus, everywhere occur in specification Phrase " in one embodiment " is not necessarily all referring to the same embodiment " in embodiment ", but may be so.In addition, root Disclosed according to the present invention it will be readily apparent to one skilled in the art that in one or more embodiments, special characteristic, knot Structure or characteristic can combine in any suitable manner.
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete Site preparation describes, it is clear that described embodiment is only part of the embodiment of the present invention, rather than whole embodiments.It is based on Embodiment in the present invention, those of ordinary skill in the art are obtained every other under the premise of creative work is not made Embodiment, belong to the scope of protection of the invention.
Below in described embodiment, the voice communication that is related between two clients.Client is, for example, intelligent hand The application of machine, tablet personal computer, notebook and desktop computer on any one.
Fig. 1 is the flow chart according to the voice communication method based on mobile Internet of the embodiment of the present invention, according to Fig. 2 The data control schematic diagram that the voice call of the embodiment of the present invention starts.Methods described includes:
S1, the first client send call request to signal server.
In the present embodiment, the first client initiates session to the second client, then sending call to signal server please Ask.
S2, signal server receive call request, and session is established according to the call request, and by session identification send to First client and the second client with the first client session.
S3, the first client and the second client receive session identification respectively, and send register to media server respectively Message.
S4, media server receive the registration message, with obtaining the first client and the respective network of the second client Location, session list is established, and the message that succeeds in registration is returned respectively to the first client and the second client.
In the present embodiment, the first customer end A and signal server is passed through with the second customer end B of the first client session Establish and converse with media server, the first customer end A sends call request to signal server, and signal server is the first client Hold A and establish a common session with the second customer end B of the first client session, the session has a session identification Callid, the session identification is returned into the first customer end A and the second customer end B, the first customer end A and the second customer end B will Session identification and the user of itself identify userid and are packaged as registration message and are sent to media server being registered, media clothes The session identification and user's mark being engaged in device acquisition registration message, and the network of the first customer end A and the second customer end B Location, it will words mark, user's mark, network address correspond and establish session list, and to the first client and the second client End returns to the message that succeeds in registration respectively.
S5, receive media server and succeed in registration after message, the first client and the second client are respectively to media services Device sends that the first P2P burrows request and the 2nd P2P burrows request.
In the present embodiment, after the first client and the second client receive the message that media server succeeds in registration, point P2P is not sent to media server to burrow request.If the first customer end A and the second customer end B are receiving media server hair After the message that succeeds in registration sent, the first customer end A sends the first P2P to media server and burrowed request, and the second customer end B is to matchmaker Body server sends the 2nd P2P and burrowed request.
S6, media server receive the first P2P and burrowed request, and the net of the first P2P burrowed request and the first client The message that burrows of the first of network address synthesis is sent to the second client, and the 2nd P2P is burrowed request and the second client Second message that burrows of network address synthesis is sent to the first client.
In the present embodiment, media server receives the first P2P that the first client is sent and burrowed request, then asks this Ask and the network address of the first client send jointly to the first client call the second client.Specifically, media Server receives the P2P that the first customer end A is sent and burrowed request, then by the request and the network address of the first customer end A The second customer end B is sent to, similarly, media server receives the 2nd P2P that the second customer end B is sent and burrowed request, then The network address of the request and the second customer end B is sent to the first customer end A.
S7, the second client receive first and burrowed message, obtain the first network address for burrowing the first client in message.
S8, the first client receive second and burrowed message, obtain the second network address for burrowing the second client in message.
S9, the first client and the second client carry out P2P and burrowed, and record the successful network address that burrows.
In the present embodiment, the second client with the call of the first client receives burrow request and first client Outer net address, then carry out P2P and burrow, record the successful network address that burrows.Specifically, the second customer end B receives the first visitor The outer net address of family end A burrow request and the first customer end A, then carry out P2P and burrow, record is with burrowing successful network Location, similarly, the first customer end A receive the outer net address of burrow request and the second customer end B of the second customer end B, Ran Houjin Row P2P burrows, and records the successful network address that burrows.
S10, after P2P burrows successfully, speech message with being transmitted directly to the network of the second client by the first client Location, while the second client is transmitted to by media server;And second client speech message is transmitted directly to first The network address of client, while the first client is transmitted to by media server.
In the present embodiment, Fig. 3 is that the data control that voice packet is sent in voice-enabled chat according to embodiments of the present invention is shown It is intended to, after the mutual P2P of client burrows successfully, the first client issues speech message the network address of the second client, Speech message is transmitted to the second client by media server simultaneously.Specifically, the first customer end A starts to send one UDP information is on the public network address of the second customer end B, at the same time, further through transit server send a message request to Second customer end B, the second customer end B of request also send a UDP information to the public network of the first customer end A to the first customer end A On address.At this moment the information that the first customer end A is sent to the public network IP of the second customer end B causes NAT A to open one in the Communication session between the private address of one customer end A and the public network address of the first customer end B, at the same time, NAT B are also opened Communication session between one private address in the second customer end B and the public network address of the first customer end A.Once this is new UDP sessions each opened to other side, the first customer end A and the second customer end B burrow mutually success.Then the first customer end A with It can be acted as a go-between between second customer end B with direct communication without server.
After customer end A burrows successfully with the mutual P2P of customer end B, customer end A directly can send voice to customer end B and disappear Breath, also can be transmitted to customer end B by media server by speech message.Similarly, customer end B can also be directly to client B directly transmits speech message, also speech message can be transmitted into customer end A by media server.
The voice communication method based on mobile Internet according to embodiments of the present invention, burrowed by P2P make client it Between can direct communication, client both received the voice packet of media server forwarding, and also received call the opposing party and directly send Voice packet, received, reduced because packet loss caused by network reason by the transmission of double-channel pronunciation bag, so as to improve call Quality.
Above-described embodiment is the citing of the present invention, although disclosing embodiments of the invention and accompanying drawing for the purpose of illustration, But it will be appreciated by those skilled in the art that:Without departing from the spirit and scope of the invention and the appended claims, respectively It is all possible that kind, which is replaced, changed and modifications,.Therefore, the present invention should not be limited to embodiment and accompanying drawing disclosure of that.

Claims (9)

1. a kind of voice communication method based on mobile Internet, including:
First client sends call request to signal server;
Signal server receives call request, establishes session according to the call request, and session identification is sent to the first visitor Family end and the second client with the first client session;
First client and the second client receive session identification respectively, and respectively by the session identification and the user of itself Mark is packaged into log-on message and sent to media server;
Media server receives the registration message, obtains the first client and the respective network address of the second client, establishes Session list, and the message that succeeds in registration is returned respectively to the first client and the second client;
Receive media server to succeed in registration after message, the first client and the second client send the to media server respectively One P2P burrows request and the 2nd P2P burrows request;
Media server receives the first P2P and burrowed request, and the first P2P is burrowed request and the network address conjunction of the first client Into first message that burrows be sent to the second client, and the 2nd P2P is burrowed request and the network address of the second client Second message that burrows of synthesis is sent to the first client;
Second client receives first and burrowed message, obtains the first network address for burrowing the first client in message;
First client receives second and burrowed message, obtains the second network address for burrowing the second client in message;
First client and the second client carry out P2P and burrowed, and record the successful network address that burrows;
After P2P burrows successfully, speech message is transmitted directly to the network address of the second client by the first client, leads to simultaneously Cross media server and be transmitted to the second client;And second client speech message is transmitted directly to the net of the first client Network address, while the first client is transmitted to by media server.
2. voice communication method according to claim 1, wherein, the network address comprises at least outer net address.
3. voice communication method according to claim 1 or 2, wherein, the network address also includes internal address.
4. voice communication method according to claim 2, wherein, media server receives the registration message the step of In, obtain the first client and the respective outer net address of the second client.
5. voice communication method according to claim 3, wherein, the first P2P request bags that burrow are interior containing the first client Net address, and the 2nd P2P burrow request bag contain the second client internal address.
6. voice communication method according to claim 1, wherein, methods described also includes:
One in first client and the second client receives media server forwarding and the first client and the second visitor simultaneously Another speech message directly transmitted in the end of family.
7. voice communication method according to claim 1, wherein, the number point of first client and the second client Wei not be one.
8. voice communication method according to claim 1, wherein, media server meeting according to corresponding to being established session identification Talk about list.
9. voice communication method according to claim 1, wherein, the session list includes the client of both call sides first User's mark at end and outer net address.
CN201410412508.2A 2014-08-20 2014-08-20 Voice communication method based on mobile internet Active CN104158884B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410412508.2A CN104158884B (en) 2014-08-20 2014-08-20 Voice communication method based on mobile internet

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410412508.2A CN104158884B (en) 2014-08-20 2014-08-20 Voice communication method based on mobile internet

Publications (2)

Publication Number Publication Date
CN104158884A CN104158884A (en) 2014-11-19
CN104158884B true CN104158884B (en) 2018-02-23

Family

ID=51884289

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410412508.2A Active CN104158884B (en) 2014-08-20 2014-08-20 Voice communication method based on mobile internet

Country Status (1)

Country Link
CN (1) CN104158884B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109462638B (en) * 2018-10-24 2021-10-29 青岛海信智慧家居系统股份有限公司 Equipment state management method and system
CN109451009A (en) * 2018-10-31 2019-03-08 厦门安胜网络科技有限公司 A kind of point-to-point instant communicating method

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101499968A (en) * 2008-12-26 2009-08-05 深圳市同洲电子股份有限公司 Multimedia data transmission method and system
CN102215276A (en) * 2011-06-20 2011-10-12 中兴通讯股份有限公司 Video monitoring system and method of media traverse of network address translation equipment
CN102647483A (en) * 2012-03-31 2012-08-22 中兴通讯股份有限公司 Method for obtaining network address translation (NAT) types, peer-to-peer (P2P) endpoint entity and NAT entity
CN103475638A (en) * 2013-07-29 2013-12-25 深圳市融创天下科技股份有限公司 Media-data transmission method and system
CN103618747A (en) * 2013-12-11 2014-03-05 中国联合网络通信集团有限公司 Method and system for realizing session initiation protocol (SIP) information service

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101499968A (en) * 2008-12-26 2009-08-05 深圳市同洲电子股份有限公司 Multimedia data transmission method and system
CN102215276A (en) * 2011-06-20 2011-10-12 中兴通讯股份有限公司 Video monitoring system and method of media traverse of network address translation equipment
CN102647483A (en) * 2012-03-31 2012-08-22 中兴通讯股份有限公司 Method for obtaining network address translation (NAT) types, peer-to-peer (P2P) endpoint entity and NAT entity
CN103475638A (en) * 2013-07-29 2013-12-25 深圳市融创天下科技股份有限公司 Media-data transmission method and system
CN103618747A (en) * 2013-12-11 2014-03-05 中国联合网络通信集团有限公司 Method and system for realizing session initiation protocol (SIP) information service

Also Published As

Publication number Publication date
CN104158884A (en) 2014-11-19

Similar Documents

Publication Publication Date Title
CN104158808B (en) Portal authentication method and its device based on APP applications
US9148333B2 (en) System and method for providing anonymity in a session initiated protocol network
CN104270379B (en) HTTPS agency retransmission methods and device based on transmission control protocol
CN103905463B (en) Connecting management and control method suitable for multi-path transmitting
US20100283827A1 (en) System and method for providing anonymity in a video/multimedia communications session over a network
CN104243281B (en) Voice communication method based on mobile internet
CN109548008A (en) Network side is to the identification of remote user equipment and control method and equipment
CN107786669B (en) Load balancing processing method, server, device and storage medium
CN106899500B (en) Message processing method and device for cross-virtual extensible local area network
CN110247848A (en) Send method, the network equipment and the computer readable storage medium of message
CN103688516B (en) There is provided the method for public accessibility and in relation to system and device
US7542475B2 (en) Communication between users located behind a NAT device
CN101227344A (en) Method for simulating L2TP dialing
CN106850502A (en) Service request retransmission method, storage method, apparatus and system based on connection long
WO2016179966A1 (en) Method for realizing network access, terminal and computer storage medium
WO2017107623A1 (en) User registration information processing method and apparatus, and evolved packet data gateway (epdg) device
WO2016101510A1 (en) Method andbroadband remote access serverdevice for acquiringnetwork address translation information
CN104158884B (en) Voice communication method based on mobile internet
CN104506405B (en) The method and device of cross-domain access
CN105592038B (en) Portal authentication method and device
CN104105222B (en) Establish communication
CN104468326B (en) A kind of exchange method of the group based on communication network
CN107547680A (en) A kind of data processing method and device
CN107071900A (en) A kind of user facility positioning method and device
CN100496024C (en) A method to forward the channel message and a network device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20180320

Address after: 511442 Guangzhou City, Guangdong Province, Panyu District, South Village, Huambo, No. 79, No. two road, Business District Wanda Commercial Plaza, North building, B-1 floor, floor

Patentee after: Guangzhou Huaduo Network Technology Co., Ltd.

Address before: 100020 7 layer 710, No. 39, Chaoyang District diazepam Road, Beijing

Patentee before: BEIJING BILING ONLINE INFORMATION TECHNOLOGY CO., LTD.