CN101753739B - Implementation method for non-local sound reproduction of terminal under NAT - Google Patents

Implementation method for non-local sound reproduction of terminal under NAT Download PDF

Info

Publication number
CN101753739B
CN101753739B CN200810217926A CN200810217926A CN101753739B CN 101753739 B CN101753739 B CN 101753739B CN 200810217926 A CN200810217926 A CN 200810217926A CN 200810217926 A CN200810217926 A CN 200810217926A CN 101753739 B CN101753739 B CN 101753739B
Authority
CN
China
Prior art keywords
media
terminal
nat
gateway
borde gateway
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
CN200810217926A
Other languages
Chinese (zh)
Other versions
CN101753739A (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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN200810217926A priority Critical patent/CN101753739B/en
Publication of CN101753739A publication Critical patent/CN101753739A/en
Application granted granted Critical
Publication of CN101753739B publication Critical patent/CN101753739B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention provides an implementation method for non-local sound reproduction of a terminal under the NAT supported by a border gateway and overcomes the defect that a calling party does not hear the ring-back tone in the networking structure in the existing implementation mode. The essence of the method is that the terminal sends a media package to the border gateway by the NAT in advance before a media server transmits the ring-back tone, and the border gateway records a media address and an interface of the NAT in the media package so as to accurately forward a media stream to the recorded media address and interface of the NAT after receiving the media stream of the media server and successfully forward the media stream to the terminal by the NAT.

Description

A kind of implementation method of NAT non-local sound reproduction of terminal under
Technical field
The present invention relates to the method for a kind of NAT (network address translation apparatus) non-local sound reproduction of terminal under in the communications field, relate more specifically to the method that a kind of borde gateway is supported realization non-local sound reproduction in terminal under the NAT.
Background technology
The serious lack of IP address resource causes operator to be difficult to adopt fully legal public network IP address to make up its Operation Network.A kind of very typical pattern that solves this situation is that the Operator Specific Service net adopts public network IP address, and the local network of users adopts private network IP address, and the local network of users need be enjoyed the related service that the Operator Specific Service net provides.In this case, at first need solve the intercommunication problem of medium and signaling between the public network private network.
NAT device can solve the intercommunication of the public network private network of signaling, but can not replace media address in the message and port because of it, so can not solve the intercommunication of the public network private network of medium.Because borde gateway (BGW) equipment can fine solution signaling, the public network private network intercommunication of medium, therefore can well alleviate the networking difficult problem of current runner public-network IP address resource wretched insufficiency.
Fig. 1 passes through the networking structure of media server playback when being terminal process NAT device access borde gateway; Comprise: terminal, NAT, borde gateway, gateway controller, media server; Media Stream is sent by media server in this networking is used; Through borde gateway, NAT, final incoming terminal.But because NAT device can not be replaced media address in the signaling message and port; So before first package media is sent through NAT device in the terminal; What borde gateway can perceive only is the media address and the port at terminal, and for basic call business (ring-back tone employing local sound reproduction), this networking is used and do not had any problem; Because local sound reproduction is produced by the terminal and sends to the user, without NAT.But to the application (as putting ring-back tone through media server) of non-local sound reproduction, the application of this networking will have problems.
Fig. 2 has in the networking of NAT device, puts the process (only relate to the present invention discuss related procedure) of ring-back tone when H.248 the terminal of agreement is as caller to caller through media server:
S201: terminal to report dialer event;
S202:NAT transmits the dialing request message and gives borde gateway;
S203: borde gateway is transmitted the dialing request message and is given gateway controller;
S204: gateway controller is replied and is replied;
S205: borde gateway is transmitted the gateway controller response message and is given NAT;
S206:NAT transmits response message and gives the terminal;
S207: gateway controller analyzes the called free time according to the called number that reports;
S208: gateway controller issues the request message of applying for medium to calling terminal, and the media mode that wherein carries is " only receiving " pattern (because also do not set up the media channel of callee side at this moment, so the media mode of Calling Side is " only receiving ");
S209: borde gateway distributes the media address and the port of local terminaloriented side and gateway controller side;
S210: after the borde gateway allocation medium resource success, the request message of gateway controller is transmitted to NAT;
S211:NAT transmits request message and gives the terminal;
S212: self media address and port are distributed after receiving the request message of application medium in the terminal, and setting media mode is " only receiving ".And the media address that will apply for and port be filled up in the response message, and response message is issued NAT;
S213:NAT transmits response message and gives borde gateway;
S214: borde gateway writes down the media address and the port at the terminal of carrying in the response message, and the media address port at the terminal in the message is replaced with media address and the port of borde gateway towards the gateway controller side, gives gateway controller with forwards;
S215: gateway controller control callee side is set up media channel, finds and will send ring-back tone (having registered color tinkling of pieces of jade business such as callee side) to Calling Side through media server according to called register information;
S216: gateway controller is through the media address on the message application media server of application medium, and brings media server with what the borde gateway that borde gateway is come through aforementioned response message band distributed towards gateway controller side media address and port;
S217: borde gateway distributes in the media server record request message media address and port, and distribute local media address and port.And inform gateway controller through replying media address and port that self is distributed;
S218: media server sends the medium bag to media address and the port towards the gateway controller side that borde gateway distributes;
S219: borde gateway is transmitted to Media Stream the media address and the port at the terminal of record, but terminal and borde gateway can not intercommunications, and Media Stream can't incoming terminal.。
Can find out from above-mentioned flow process; Because NAT device can not replaced media address in the terminal signaling message and port; So what borde gateway can perceive is the media address and the port at terminal; The directly intercommunication of terminal and borde gateway will cause directly incoming terminal of Media Stream that borde gateway forwards, that is to say that caller can't hear ring-back tone.The basic reason that this problem occurs is: borde gateway is before Media Stream is sent at the terminal, and media address and port that can not perception NAT be so have no idea directly Media Stream to be transmitted to the terminal through NAT.
Summary of the invention
The present invention provides the implementation method that a kind of borde gateway is supported the NAT non-local sound reproduction of terminal under.
The message that has " transmitting-receiving " media mode from borde gateway is received at the terminal; The terminal is sent the medium bag through NAT device and is given borde gateway, and borde gateway is according to the media address and the port of medium bag record NAT device; When borde gateway was received the Media Stream from media server, borde gateway sent media address and the port that this Media Stream distributes for the NAT device of record, sends to the terminal by NAT device again.
Further, said having, the message of " transmitting-receiving " media mode was after borde gateway is received the request message from the application medium of gateway controller, and its " only receiving " media mode that carries is modified as the message behind " transmitting-receiving " media mode.
Further, said having " transmitting-receiving " media mode message be to receive from the request message of the application medium of gateway controller and after transmitting the terminal, send to the message that has " transmitting-receiving " media mode at terminal when borde gateway.
Further, said medium bag is quiet bag.
Further, the terminal sends to borde gateway to notify media server to after the playback of terminal with response message, and the medium bag is sent to borde gateway in the terminal.
This method has overcome the defective that existing implementation calling terminal in this networking structure can't hear ring-back tone, makes to support that at borde gateway calling terminal can be received the Media Stream from media server under the NAT.
Description of drawings
The networking diagram of non-local sound reproduction when Fig. 1 inserts through NAT device for the terminal;
Fig. 2 is protocol terminal H.248, the handling process of existing mode during non-local sound reproduction;
Fig. 3 supports the processing procedure of terminal under the NAT device (is example with agreement H.248) non-local sound reproduction for the borde gateway of present embodiment.
Embodiment
Below in conjunction with accompanying drawing the present invention is done further detailed explanation.
Fig. 3 is the execution mode (just listing out the main flow process that the present invention relates to) of the H.248 protocol terminal non-local sound reproduction under the NAT of present embodiment.May further comprise the steps:
S301: terminal to report dialer event;
S302:NAT transmits the dialing request message and gives borde gateway;
S303: borde gateway is transmitted the dialing request message and is given gateway controller;
S304: gateway controller is replied dialing and is replied;
S305: borde gateway is transmitted the gateway controller response message and is given NAT;
S306:NAT transmits response message and gives the terminal;
S307: gateway controller according on the called number offered, analyze the called free time;
S308: gateway controller issues the request message of applying for medium to calling terminal, and wherein media mode is " only receiving ";
S309: the media address and the port of local terminaloriented side of borde gateway application and gateway controller side;
S310: the media mode from the request message of gateway controller that borde gateway will be received is revised as " transmitting-receiving ", inserts the address and the port of the terminaloriented side of self distributing simultaneously in the message, gives NAT with forwards;
S311:NAT transmits request message and gives the terminal;
S312: media address and the port that distributes self behind the request message received at the terminal, and setting media mode is " transmitting-receiving ".And the media address that will apply for and port be filled up in the response message, and response message is issued NAT;
S313:NAT transmits response message and gives borde gateway;
S314: borde gateway writes down the media address and the port at terminal in the response message, and it is replaced with media address and the port of borde gateway towards the gateway controller side, gives gateway controller with forwards;
S315: because the terminal has known that the media address of borde gateway and media mode are " transmitting-receiving ", so medium bag (such as quiet medium) can be sent in the terminal;
S316:NAT is transmitted to borde gateway with the medium bag;
S317: borde gateway is noted the source address and the port of medium bag, i.e. the media address and the port of NAT distribution;
S318: gateway controller control callee side is set up media channel, finds and will send ring-back tone (having registered Ring Back Tone service such as callee side) to Calling Side through media server according to called register information;
S319: gateway controller is through the media address on the message application media server of application medium, and brings media server with what the borde gateway that borde gateway is come through aforementioned response message band distributed towards gateway controller side media address and port;
S320: borde gateway distributes in the media server record request message media address and port, and distribute local media address and port.And inform gateway controller through replying media address and port that self is distributed;
S321: after the media channel of media server side was set up and accomplished, media server sent the medium bag to media address and the port towards the gateway controller side that borde gateway distributes;
S322: borde gateway is transmitted to the medium bag media address and the port of the NAT of record;
S323:NAT is transmitted to the terminal with the medium bag.
Wherein S310, S311 also can use other a kind of mode to realize: the address and the port of the terminaloriented side of self distributing do not made an amendment and inserted to the request message from gateway controller that borde gateway will be received; Transmit this request message to behind the terminal, the message that has " transmitting-receiving " media mode of redispatching one is given the terminal.
In said process; If if carried media mode, borde gateway will be changeed back media mode " only receiving " again, is transmitted to gateway controller then in the response message of the application medium at terminal; That is to say the operation of borde gateway modification pattern; To gateway controller is transparent, and the purpose of revising like this is that gateway controller is the device that sends operational order, and generally other device can not instruct to its transmit operation; If carried distant end media media address and port in the response message of the application medium at terminal, borde gateway will be removed far-end information from message, be transmitted to gateway controller then.
In sum, adopt the inventive method, be applied to the non-local sound reproduction at terminal under the NAT, implement simple and flexible.
Certainly; The present invention can also have other multiple instance; Under the situation that does not deviate from spirit of the present invention and essence thereof, those of ordinary skill in the art can make corresponding change and distortion according to the present invention, but these changes and distortion all belong to the protection range of the appended claim of the present invention.

Claims (5)

1. the implementation method of a non-local sound reproduction of terminal is characterized in that:
A. the message that has " transmitting-receiving " media mode from borde gateway is received at the terminal;
B. the terminal is sent the medium bag through NAT device and is given borde gateway, media address and port that borde gateway distributes according to medium bag record NAT device;
C. when borde gateway was received the Media Stream from media server, borde gateway sent media address and the port that this Media Stream distributes for the NAT device of record, sends to the terminal by NAT device again.
2. method according to claim 1; It is characterized in that: among the said a; Said having, the message of " transmitting-receiving " media mode was after borde gateway is received the request message from the application medium of gateway controller, and its " only receiving " media mode that carries is modified as the message behind " transmitting-receiving " media mode.
3. method according to claim 1; It is characterized in that: among the said a; Said having, the message of " transmitting-receiving " media mode was to receive from the request message of the application medium of gateway controller and after transmitting the terminal, send to the message that has " transmitting-receiving " media mode at terminal when borde gateway.
4. method according to claim 1 is characterized in that: among the said b, said medium bag is quiet bag.
5. according to each method of claim 1 to 4, it is characterized in that: among the said b, the terminal sends to borde gateway with response message and gives after the playback of terminal with the notice media server, and the medium bag is sent to borde gateway in the terminal.
CN200810217926A 2008-12-01 2008-12-01 Implementation method for non-local sound reproduction of terminal under NAT Active CN101753739B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN200810217926A CN101753739B (en) 2008-12-01 2008-12-01 Implementation method for non-local sound reproduction of terminal under NAT

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN200810217926A CN101753739B (en) 2008-12-01 2008-12-01 Implementation method for non-local sound reproduction of terminal under NAT

Publications (2)

Publication Number Publication Date
CN101753739A CN101753739A (en) 2010-06-23
CN101753739B true CN101753739B (en) 2012-09-05

Family

ID=42480098

Family Applications (1)

Application Number Title Priority Date Filing Date
CN200810217926A Active CN101753739B (en) 2008-12-01 2008-12-01 Implementation method for non-local sound reproduction of terminal under NAT

Country Status (1)

Country Link
CN (1) CN101753739B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108270938B (en) * 2016-12-30 2020-07-28 华为技术有限公司 Call processing method and switching device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2003032601A1 (en) * 2001-10-09 2003-04-17 Orange Sa Method for selecting a media gateway control function based on the monitoring of resources of media gateway functions
CN101119270A (en) * 2007-09-14 2008-02-06 华中科技大学 Network boundary treatment method
CN101212405A (en) * 2006-12-29 2008-07-02 中国移动通信集团公司 Media route control system and method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2003032601A1 (en) * 2001-10-09 2003-04-17 Orange Sa Method for selecting a media gateway control function based on the monitoring of resources of media gateway functions
CN101212405A (en) * 2006-12-29 2008-07-02 中国移动通信集团公司 Media route control system and method
CN101119270A (en) * 2007-09-14 2008-02-06 华中科技大学 Network boundary treatment method

Also Published As

Publication number Publication date
CN101753739A (en) 2010-06-23

Similar Documents

Publication Publication Date Title
CN104363409B (en) Realize the video conference method and system synchronous with data conferencing
JP4603070B2 (en) Method and system for processing ringback tone (RingBackTone) and ringback image (RingBackImage) in videophone (VP) service
CN107592429B (en) Multi-seat multimedia scheduling system
CN104822139A (en) Method of realizing communication number isolation and privacy protection based on middle number
CN101079934B (en) Method and system for utilizing session initialization protocol soft terminal to record the voice
CN102769633A (en) Call recording system and call recording method
US20070115388A1 (en) Management of video transmission over networks
CN102055857B (en) Packet switching-based digital multi-channel director system and control method thereof
CN105516176A (en) Call center system, communication connection method and device of call center system
US10440155B2 (en) Private connection multi-media transition
US20090299735A1 (en) Method for Transferring an Audio Stream Between a Plurality of Terminals
CN103621019A (en) Multimedia ringtone
CN104869262A (en) Method and device for intercepting terminal blacklist
CN101552952B (en) A broadcast call implementation method and system
CN101753739B (en) Implementation method for non-local sound reproduction of terminal under NAT
CN100463404C (en) Method for implementing telephone conference service by using media resource server
CN104158989A (en) Fixed telephone roaming system and method
CN100502328C (en) A method, system and monitoring media gateway for multimedia monitoring
CN101123637B (en) Intelligent phone terminal, call recording device, method and system for synchronizing call record
CN101247564B (en) Method, device and system for implementing multimedia polychrome service on the base of call forwarding service
CN104702567B (en) The method and system of xenogenesis voice resource intercommunication based on IP scheduling switch
CN102185828B (en) Method for binding and controlling personal computer (PC) software and session initiation protocol user agent (SIP UA)
CN103532935B (en) Domain strategy-based P2P (Peer-to-Peer) streaming media transmission control method
CN103458374A (en) Method, device and system for implementing value added services
CN102045598A (en) Method and device for realizing called party payment service in IP (internet protocol) multimedia sub-system (IMS) network

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant