WO2004079994A1 - Ip access system and method for performing voice service and media-stream process - Google Patents

Ip access system and method for performing voice service and media-stream process Download PDF

Info

Publication number
WO2004079994A1
WO2004079994A1 PCT/CN2004/000185 CN2004000185W WO2004079994A1 WO 2004079994 A1 WO2004079994 A1 WO 2004079994A1 CN 2004000185 W CN2004000185 W CN 2004000185W WO 2004079994 A1 WO2004079994 A1 WO 2004079994A1
Authority
WO
WIPO (PCT)
Prior art keywords
gateway
access
calling
user terminal
called
Prior art date
Application number
PCT/CN2004/000185
Other languages
French (fr)
Chinese (zh)
Inventor
Xuan Luo
Original Assignee
Huwaei Technologies 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
Priority claimed from CNB031069509A external-priority patent/CN1288884C/en
Priority claimed from CNB031203957A external-priority patent/CN1306779C/en
Application filed by Huwaei Technologies Co., Ltd. filed Critical Huwaei Technologies Co., Ltd.
Publication of WO2004079994A1 publication Critical patent/WO2004079994A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04QSELECTING
    • H04Q3/00Selecting arrangements
    • H04Q3/0016Arrangements providing connection between exchanges
    • H04Q3/0025Provisions for signalling
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04QSELECTING
    • H04Q2213/00Indexing scheme relating to selecting arrangements in general and for multiplex systems
    • H04Q2213/13034A/D conversion, code compression/expansion
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04QSELECTING
    • H04Q2213/00Indexing scheme relating to selecting arrangements in general and for multiplex systems
    • H04Q2213/13076Distributing frame, MDF, cross-connect switch
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04QSELECTING
    • H04Q2213/00Indexing scheme relating to selecting arrangements in general and for multiplex systems
    • H04Q2213/13389LAN, internet

Definitions

  • IP access system and method for realizing voice service and media stream processing
  • the present invention relates to network voice service technologies, and in particular, to an IP access system based on an IP network and a method for implementing voice service and media stream processing. Background of the invention.
  • IP network With the gradual opening up of the telecommunications market and the formation of a new competition pattern, all-round competition in the communications field is becoming increasingly fierce. Operators build networks that take into account both speed and cost, and gradually shift their investment focus to the most directly user-oriented access layer. With the rapid development of the IP network, it is becoming more and more possible to provide cheap and high-quality voice and data services on the IP network, and it is increasingly receiving the attention of telecommunication equipment manufacturers and operators. For telecommunications operators, the use of existing IP MANs to provide IP voice and multimedia services to users such as IP supermarkets, communities, small businesses, and SOHO is gradually becoming an effective supplementary solution in the construction of access networks.
  • the existing new operators have the following characteristics when developing voice and multimedia services: 1.
  • the bandwidth of the existing IP MAN of the new operator is very rich and has not been effectively used. Therefore, it is required that the voice access to IP and the development of multimedia services best meet the existing network characteristics and the operator's interests.
  • NGN next-generation network
  • This scheme belongs to a comprehensive, open network architecture that provides voice, data, and multimedia services.
  • NGN uses soft switching technology to separate the functional modules of traditional switches into independent network components. Each component is divided according to corresponding functions and developed independently.
  • NGN adopts separation of service and call control, separation of call control and bearer technology to achieve open distribution Network structure, making the business independent of the network.
  • services can be provided flexibly and quickly, and individual users can define service characteristics themselves, without having to worry about the network form and terminal types that carry the services.
  • an object of the present invention is to provide an IP access system so that it can easily and conveniently implement IP voice and multimedia services.
  • Another object of the present invention is to provide a method for implementing voice services through IP access, which can meet the needs of a new operator using IP networks to implement voice services based on existing network resources.
  • Another object of the present invention is to provide a method for processing media streams in an IP network, which can further improve the call quality of the IP access technology, reduce the call delay, and simplify the processing flow.
  • An IP access system including an IP network, the system further includes: a local switch for implementing call services and resource control; more than one access gateway for connecting a broadband network and a user terminal to implement IP access; an edge A relay gateway, which is set in an IP network and is used to implement Order conversion and media stream conversion; the local switch is connected to the edge relay gateway through a relay link, and interacts through a narrowband signaling protocol; and the access gateway is connected to the edge relay gateway through an IP network.
  • the edge relay gateway further includes a loopback control module that controls a media stream to perform a self-loop on the IP side.
  • the access gateway and the edge relay gateway are media and media gateway control protocols.
  • the narrowband signaling protocol includes V5 signaling, or No. 7 signaling, or No. 1 signaling, or PRA signaling protocol.
  • the access gateway is an access media gateway (AMG), or an integrated access device (IAD), or a combination thereof.
  • the present invention also provides a method for implementing voice services through IP access, including the following steps:
  • the calling user terminal initiates a call to the called user terminal through the access gateway;
  • the edge relay gateway on the calling user terminal and the called user terminal side respectively establishes a real-time transmission protocol (RTP) channel between the edge relay gateway on the two user sides and the access gateway.
  • RTP real-time transmission protocol
  • the voice service flow between the calling user terminal and the called user terminal is transmitted through the real-time transmission protocol channel of the corresponding side.
  • step B specifically includes:
  • the access gateway on the calling user terminal side reports the calling event of the calling user to the edge relay gateway, and the edge relay gateway converts the received call event protocol format and reports it to the local switch; and
  • the relay gateway establishes a real-time transmission protocol (RTP) channel between the edge relay gateway and the access gateway;
  • RTP real-time transmission protocol
  • the edge relay gateway on the calling user terminal side reports the called user number to the local switch. Only the local switch sends the called user number to the edge relay gateway on the user side to send an instruction about the call event.
  • the edge relay gateway on the called user terminal converts the indicated protocol format, it is delivered to the access gateway on the called user terminal side, and between the edge relay gateway and the access gateway.
  • step of establishing a real-time transmission protocol (RTP) channel between the edge relay gateway and the access gateway described in step B1 may be performed anywhere before step B6.
  • RTP real-time transmission protocol
  • a media gateway control protocol (MGCP), or an H.248 protocol, or an H.323 protocol or a session initiation protocol (SIP) format is used between the edge relay gateway and the access gateway; the edge relay gateway.
  • MGCP media gateway control protocol
  • H.248 protocol or an H.248 protocol, or an H.323 protocol or a session initiation protocol (SIP) format is used between the edge relay gateway and the access gateway; the edge relay gateway.
  • SIP session initiation protocol
  • the V5 signaling or No. 7 signaling, or No. 1 signaling, or PRA signaling protocol format is used with the local switch.
  • step B2 the edge relay gateway reports the called user number converted by its own protocol to the local switch through signaling, or reports the called user number to the local switch through a real-time transmission protocol (RTP) channel through media streaming.
  • RTP real-time transmission protocol
  • the edge relay gateway in step B2 reporting the called user number to the local switch further includes:
  • the local switch sends a ringback tone to the calling user terminal.
  • the edge relay gateway converts the pulse code modulation (PCM) ringback tone into an IP packet and transmits it to the access gateway through a real-time transmission protocol (RTP) channel; or instructs the access gateway to send a ringback tone through a control protocol;
  • PCM pulse code modulation
  • the access gateway converts the IP packet into a pulse code modulated ringback tone and sends it to the calling user terminal; or sends the ringback tone to the calling user terminal according to an instruction of the edge relay gateway.
  • the method further includes: when either the calling user terminal or the called user terminal terminates the service, the RTP channel corresponding to the terminating service party is closed and the related resources are released.
  • the method further includes: each user completes state initialization and registration in the edge relay gateway and the local switch through the access gateway before accessing.
  • the present invention also provides a method for processing media streams in an IP network. After receiving the call access request initiated by the calling user terminal, the edge relay gateway performs the following steps:
  • the called user terminal belongs to the edge relay gateway, use the IP address and port number corresponding to the called user terminal as the peer address on the calling side of the media stream, and use the IP address and port corresponding to the calling user terminal.
  • the number is used as the peer address of the called side of the media stream, and directly connects the media stream between the calling and called parties.
  • step 2) further includes the following steps:
  • the edge relay gateway instructs the access gateway on the calling and called sides to change the peer address on the calling side of the media stream to the IP address corresponding to the called user terminal And the port number, and change the peer address on the called side of the media stream to the IP address and port number corresponding to the calling user terminal, directly connect the media stream between the calling and called parties, and end the current process; if no media stream is obtained The RTP address of the receiver, then proceed to step 23);
  • the edge relay gateway instructs the access gateway on the calling and called sides to set the peer address on the calling side of the media stream to the IP address and port number corresponding to the called user terminal, and The peer address is set to the IP address and port number corresponding to the calling user terminal, and directly connects the media stream between the calling and called parties.
  • the edge relay gateway first cuts off the real-time transmission protocol channel between the edge relay gateway and the access media gateway connected to the calling and called user terminal, and then controls the connection connected to the calling and called user terminal.
  • the ingress gateway changes the peer address on the calling and called sides of the media stream.
  • the method further includes: judging whether a calling or called user terminal on-hook / fork signal or abnormal signal is received.
  • the edge relay gateway controls the access to which the calling and called user terminals are connected The gateway modifies the address of the opposite end of the calling side and the called side of the media stream to the address of the edge relay gateway.
  • step 1) further includes: the edge relay gateway searches its own user information database according to the called user number carried in the received call access request, and determines whether the called user number exists, If it exists, the calling and called user terminals belong to the edge relay gateway; if not, the called user terminal does not belong to the edge relay gateway.
  • the calling user terminal and the called user terminal are connected to the same access gateway, or are connected to different access gateways.
  • the access gateway may be an access media gateway, or an integrated access device, or a combination thereof.
  • the system of the present invention integrates the existing technology and the current status of the network of the new operator, and can better meet the needs of the operator, so that the new operator can use the IP network to comprehensively access a variety of services with only a small investment.
  • the implementation of the solution in the present invention mostly adopts more mature technology, and the newly added part only completes the functions of transparent transmission and conversion, so it has better stability and is easy to implement.
  • the gateway equipment used in the networking is the same as the equipment in the next generation network (NGN), then when the NGN matures, it only needs to introduce a new Media Gateway Control (MGC), and the existing networking can be It becomes the standard NGN network of MGC + IAD / AMG and MGC + TMG + LE. Therefore, operators can invest in one step and eventually transition to NGN smoothly, which is in line with the long-term interests of operators and the direction of technology development.
  • MGC Media Gateway Control
  • the calling process is the calling user terminal 1> Caller accesses the media gateway 1> Called accesses the media gateway—)
  • the called user terminal only needs to go through PCM ⁇ > IP " ⁇ > PCM conversion, that is, only one encoding and decoding, reducing the gateway side Conversion, thereby improving performance parameters such as call quality and latency, reducing Following the gateway's processing burden, it can also save egress bandwidth, improve the carrying capacity of the IP access system for large traffic volumes, and also meet the special debugging and testing needs of operators or equipment manufacturers.
  • the invention can simultaneously support the realization of voice services, all existing data and multimedia services.
  • FIG. 1 is a schematic diagram of the composition of the IP access system of the present invention.
  • FIG. 2 is a schematic diagram of the IP access system of the present invention.
  • FIG. 3 is an initial registration flowchart of IP access according to the present invention.
  • 4 to 6 are schematic diagrams of call connection of a method for implementing a voice service according to the present invention.
  • FIG. 7 is a flowchart of the present invention.
  • FIG. 8 is a schematic diagram of a state in which media loop processing is performed by using an internal loopback according to the present invention.
  • FIG. 9 is a schematic diagram of a state after loopback in the present invention.
  • FIG. 10 is a flowchart of loopback processing in a preferred embodiment of the present invention. Mode of Carrying Out the Invention
  • the IP access system of the present invention is mainly composed of devices such as a local exchange (LE), an edge relay gateway (ETG), an integrated access device, and an access media gateway (AMG).
  • the local switch is responsible for implementing call services and resource control;
  • the edge relay gateway implements signaling conversion and media stream conversion functions;
  • integrated access equipment and access media gateways are respectively used to connect narrowband side telephone users and broadband networks to achieve IP access.
  • the integrated access device and the access media gateway may be collectively referred to as an access gateway.
  • Narrowband phone users are connected to the access gateways through subscriber lines, and each access gateway and edge relay gateway are connected to the IP metropolitan area network through Category 5 or network cables; the edge relay gateway is connected to the local switch through E1 / T1 trunk .
  • the local switch controls the call of the telephone user under the jurisdiction of the access gateway through the edge relay gateway to implement voice services.
  • the media gateway control protocol MGCP
  • H.248 protocol H.323 protocol or Start Session Protocol (SIP) communication
  • the local switch and the edge relay gateway use V5 signaling protocol, No. 7 signaling protocol, No. 1 signaling or Start Session Protocol (SIP) communication.
  • the IP access system of the present invention is based on the existing IP phone gateway functions, and adds MGCP / H.248 network side and V5 access side functions, so that the existing IP phone gateways are transformed into the edge. Following the gateway, the signaling conversion and media stream conversion functions are implemented.
  • the signaling interaction on the side of the media gateway / integrated access device uses the MGCP / H.248 protocol, and the switch side
  • the signaling interaction uses the V5 / N0.7 protocol, so the implementation core of the present invention is based on the existing IP telephone gateway, and the conversion between the MGCP / H.248 protocol and the V5 / No.7 protocol is implemented by software. Complete the connection between the two.
  • the existing IP telephony gateway is also transformed into an edge relay gateway. After interacting through signaling, the edge relay gateway creates an RTP channel connected to the access media gateway / integrated access gateway to carry the user's voice.
  • the IP access system of the present invention is characterized in that: on the local switch side, the edge relay gateway and the access media gateway / integrated access device (ETG + AMG / IAD) behave as an access network (AN ); On the side of the access media gateway / integrated access device (AMG / IAD), the local switch and the edge relay gateway (LE + ETG) behave as a media gateway controller (MGC).
  • the edge relay gateway is responsible for completing the corresponding protocols, such as the conversion between MGCP H.248 signaling and V5 signaling, and replaces the original V5 access method with IP access at the access layer. Then, based on the original software, the MGCP / H.248 protocol stack, the V5 layer 2 and layer 3 protocols need to be transplanted, and the corresponding protocol stack adaptation and conversion control functions need to be added.
  • IP access For IP access, it includes: the initial registration process and the call connection process.
  • an access gateway is used as an access media gateway as an example.
  • the initial registration process of IP access is shown in FIG. 3. After the relevant data is configured on the edge relay gateway, the access media gateway is powered on and the initialization is started. Registration process:
  • the access media gateway After the user terminal initiates the initial registration process to the access media gateway where it is located, the access media The gateway sends a normal status endpoint status report message RSIP to the edge relay gateway; the edge relay gateway returns a response message RSIP ACK after receiving the RSIP message, and the edge relay gateway sends an endpoint audit message AUDIT to the access media gateway, auditing each Endpoint users; When the access media gateway completes the audit, it returns an audit response AUDIT ACK to the edge relay gateway, and the response is normal; the edge relay gateway reports the ASL user channel normal message ASL CHANNEL REPORT OK to the local switch, and simultaneously reports to the access The media gateway sends an RQNT (Off hook) message to detect the off-hook signal of the user, and waits for the call to be initiated.
  • RQNT Off hook
  • FIG. 7 is a schematic diagram of the connection process of the called user terminal 2.
  • Fig. 5 is a schematic diagram of the connection establishment between the called user terminal 2 and the local exchange.
  • Fig. 6 is a schematic diagram of the connection setup for the called party. The solid line with arrows in the figure indicates signaling. The dotted line indicates the RTP channel.
  • the call connection process includes the following steps:
  • Step 701 The calling user side, that is, the access media gateway 1 of the user terminal 1, reports the call event of the calling user to the edge relay gateway.
  • the access media gateway When the caller initiates a call, the access media gateway detects the off-hook signal of the calling user and reports the off-hook event to the edge relay gateway.
  • the format of the call event message reported by the access media gateway is Media Gateway Control Protocol (MGCP). ) Or H.248 protocol format.
  • Step 702 The control function module of the edge relay gateway establishes a real-time transmission protocol (RTP) channel between the edge relay gateway and the access media gateway, and converts the received call event protocol format to a local switch.
  • RTP real-time transmission protocol
  • the control function module of the edge relay gateway completes the establishment of the RTP channel and the resource allocation between the access media gateway and the edge relay gateway, and converts the message format of the user off-hook event. Report to local switch for V5 message format. This way, in Before the user dials, an RTP channel has been established between the access media gateway and the edge relay gateway to carry the voice channel.
  • Step 703 The control function module of the edge relay gateway on the calling user side uploads the user address to the local switch.
  • the edge relay gateway After the calling user dials, the edge relay gateway uploads the user's phone number to the local switch through signaling or an established RTP channel, and the local switch connects according to the called user's number, and at the same time, a ringback tone is returned to the caller.
  • PCM Pulse Code Modulation
  • the edge relay gateway When passing through the edge relay gateway, it is converted into IP packets by Pulse Code Modulation (PCM), transmitted to the access media gateway through the RTP channel, and then converted into PCM signals by the access media gateway and put into the calling user to listen.
  • PCM Pulse Code Modulation
  • Step 704 The local switch delivers an instruction about the call event to the edge relay gateway on the user side according to the called user address.
  • the local switch issues an instruction to play a ring tone.
  • Step 705 The control function module of the called user-side edge relay gateway converts the indicated protocol format, and sends it to the called user-side access media gateway, and sends the edge relay gateway and the access medium to the access media gateway.
  • a real-time transmission protocol (RTP) channel is established between the gateways.
  • RTP real-time transmission protocol
  • the edge relay gateway on the called side When the edge relay gateway on the called side receives an instruction from the local switch to release ringing tones, it converts the V5 protocol format to the MGCP / H248 protocol format, and notifies the called user to access the media gateway to release the ringing to the user.
  • An RTP channel between the called side edge relay gateway and the access media gateway is also established. In this way, before the called user goes off-hook, the RTP channel between the called side edge relay gateway and the access media gateway has also been set up.
  • Step 706 The access media gateway on the called user side notifies the called user of the call event.
  • the access media gateway on the called user side plays a ring tone to the called user, and the call connection is completed.
  • Step 707 The calling user and the called user carry a voice service stream through an RTP channel.
  • the calling party and the called party enter the call state.
  • the user's voice is converted through the media stream of PCM->IP->PCM->IP-> PCM.
  • the RTP channel between the access media gateways carries the transmission, as shown in Figure 6.
  • control function module of the edge relay gateway described in step 702 establishes a real-time transmission protocol (RTP) channel between the edge relay gateway and the access media gateway, which may be performed in any step between steps 701 and 705. carry out.
  • RTP real-time transmission protocol
  • the RTP channel corresponding to that party is closed, and related resources are released.
  • the busy tone is released to the unhanged user through the local switch.
  • the corresponding RTP channel of the party is also closed and the related resources are released, and the call flow is ended.
  • the present invention also proposes an internal loopback method to solve the problem of two codecs in the IP access technology. Specifically, when a calling user calls a telephone terminal of another called user through a telephone terminal, as shown in FIG.
  • the edge relay gateway Analysis of the called user number that is, searching the called user number in the user information database of the edge relay gateway; if the called user number is not found in the database, it means that the called user number does not belong to the edge relay gateway, At this time, follow-up operations are performed according to the obtained normal RTP address of the media stream receiver, and there is no need to modify or reset the address of the opposite end of the media stream master and callee. If the called user number is found in the database, it indicates that the master If the called user number belongs to the same edge relay gateway, the peer address of the media stream is set or modified.
  • the edge relay gateway instructs the access media gateway on the calling and called sides, and the corresponding access media gateway calls the media stream.
  • the peer address on the side is changed to the IP address and port number corresponding to the called user, and the peer address on the called side of the media stream is changed to the IP address and port number corresponding to the calling user.
  • Media streams are directly connected; if the RTP address of the media stream receiver is not obtained, the edge relay gateway instructs the calling and called sides to access the media gateway, and the corresponding access media gateway sends the corresponding address of the media stream to the calling side.
  • Set the IP address and port number corresponding to the called user and set the peer address on the called side of the media stream to the IP address and port number corresponding to the calling user, so that the media stream between the calling and called parties is directly connected .
  • Figures 8 and 9 show the states after internal loopback and when the internal loopback is suspended.
  • the lines with arrows in each figure indicate the flow of media streams.
  • the dashed lines in Figure 8 indicate the edge relay gateway and the access media gateway.
  • the thick solid line indicates the newly created media flow channel between the access media gateways.
  • the thick dashed line in FIG. 9 indicates the interrupted media flow channel between the access media gateways.
  • the calling channel of the called party can be directly connected, and the internal loopback of the IP network is completed.
  • the voice channel is directly transmitted from the media stream channel between the two access media gateways, that is, the access media gateway 1 and the access media gateway 2, and between the media gateway and the edge relay gateway.
  • the path is no longer processing voice, but only reserved for switching.
  • the edge relay gateway controls the access media gateway where the calling and called users are located, that is, the connection where the calling user terminal 1 is located. Enter media gateway 1 and access media gateway 2 where the called user terminal 2 is located, and modify the address of the peer end of the calling side and the called side of the media stream to the address of the edge relay gateway, thereby interrupting the two access media gateway.
  • the speech channel between them returns to the normal state shown in FIG. 6. After the internal loopback is suspended, the call is still processed according to the original processing flow of IP access.
  • edge relay gateway In order to realize the internal loopback of the IP network, it is necessary to establish the association between the calling party and the called party within the edge relay gateway.
  • the edge relay gateway itself must know where a new call is to be called, and then according to the location of the called user terminal Decide whether to perform internal loopback.
  • IP access for edge Following the position of the gateway in the network, it is only a transmission component, not a switching component. After the voice channel is created, the number dialed by the user is sent to the local switch through transparent transmission, and the local switch will respond accordingly. Number analysis.
  • the edge relay gateway itself must implement a simple number resolution function and have a control function of state transition from the general state to the internal loopback. 5 required for this purpose take the following measures: 1) increasing the ETG properties: whether internal loopback; 2) to increase the allocation order, number length; 3) increase the loopback control function.
  • all users under the edge relay gateway and their information, such as phone numbers, have been stored in its database, so it is only necessary to add a query interface.
  • the edge relay gateway After the edge relay gateway is configured to support the internal loopback mode, when the user dials the number, the edge relay gateway reports the number to the local switch and also reports it to the loopback control module.
  • the loopback control module detects whether the number is currently waiting for receiving the number. If it is in the state of waiting for receiving the number, it collects the number. After receiving a predetermined number of digits, the state is set to the state of waiting for the loopback. Query the database. If this number is found, it indicates that the call belongs to the same edge relay gateway.
  • the loopback control module is quite an internal call control unit. When it is found that the calling and called users are all users of the same edge relay gateway, it orders to loop the media stream on the IP side to reduce one encoding and decoding. .
  • the command to make the media stream loop is sent to the calling and called parties respectively. After receiving the command, the corresponding control module will cut off the RTP channel between the edge relay gateway and the access media gateway, and no longer send and receive RTP packets. Operation, of course, you can still restore the original state when you receive the restore command.
  • the edge relay gateway controls the access to the media gateway to modify the peer address of the media stream, change the peer address on the calling side to the IP address and port number corresponding to the called user, and change the peer address on the called side to The corresponding IP address and port number of the calling user, so that the media streams between the calling and called parties are directly connected, and the internal loopback of the network is completed.
  • the internal loopback of the present invention is not visible to the switch, and there is no change with the control channel of the switch.
  • the loopback control mode The block switches the control media stream back to the state before the modification.
  • the above embodiments have described the case where internal loopback is performed on calls between user phone terminals under the same edge relay gateway and under two different access media gateways. 5
  • the solution of the present invention is not It is limited to the above-mentioned embodiment.
  • the location of the calling user terminal and the called user terminal may be in the same access media gateway 5 or in the same integrated access device, or in two different integrated access devices, or a user is connected. To the media gateway and another user to the integrated access device.

Abstract

The present invention discloses a IP access system, comprising: a local exchanger, for performing calling service and controlling resource; an over-access gateway, for connecting subscriber to a wide-band network; an edge trunking gateway, mounted in the IP network, and for performing signaling conversion and media-stream conversion. Said local exchanger connects to said edge trunking gateway over a trunking link, and interacts each other by a narrow-band signaling protocol. Said IP network connects with said edge trunking gateway. The present invention also discloses a IP access method for performing voice service and media-stream process. The system and method according to the invention can be easily perform voice over IP and media service, on the media-stream processing basis. The invention can further improve the quality of speech, reduce the delay in the communication, and simplify the process.

Description

一种 IP接入系统及其实现语音业务和媒体流处理的方法 技术领域  IP access system and method for realizing voice service and media stream processing
本发明涉及网络语音业务技术, 特别涉及一种基于 IP网络的 IP接入 系统及其实现语音业务和媒体流处理的方法。 发明背景 .  The present invention relates to network voice service technologies, and in particular, to an IP access system based on an IP network and a method for implementing voice service and media stream processing. Background of the invention.
随着电信市场的逐步开放和新的竟争格局形成, 通信领域的全方位竟 争日趋激烈, 运营商建网兼顾速度和成本, 投资重心逐渐向最直接面向用 户的接入层转移, 而随着 IP网的迅猛发展, 在 IP网上提供廉价且高质量 的语音、 数据业务, 越来越成为可能, 而且日益受到电信设备制造商和运 营商的关注。 对于电信运营商而言, 利用现有 IP城域网为 IP超市、 小区、 小型企业、 SOHO等用户提供 IP语音以及多媒体业务, 正逐渐成为接入网 建设中一种有效的补充方案。  With the gradual opening up of the telecommunications market and the formation of a new competition pattern, all-round competition in the communications field is becoming increasingly fierce. Operators build networks that take into account both speed and cost, and gradually shift their investment focus to the most directly user-oriented access layer. With the rapid development of the IP network, it is becoming more and more possible to provide cheap and high-quality voice and data services on the IP network, and it is increasingly receiving the attention of telecommunication equipment manufacturers and operators. For telecommunications operators, the use of existing IP MANs to provide IP voice and multimedia services to users such as IP supermarkets, communities, small businesses, and SOHO is gradually becoming an effective supplementary solution in the construction of access networks.
现有的新运营商在开展语音及多媒体业务时, 有以下特点: 1、 本地网 建设费用巨大, 再加上与老运营商互连互通时的高额费用, 使其无法在本 地话音业务上竟争, 因此新运营商主要着眼于长话业务和多媒体业务。 2、 新运营商现有的 IP城域网的带宽非常富裕, 没有得到有效利用, 因此要求 语音接入走 IP以及发展多媒体业务, 最符合现有的网络特点和运营商的利 需求。  The existing new operators have the following characteristics when developing voice and multimedia services: 1. The huge cost of local network construction, coupled with the high cost of interconnection and interoperability with the old operators, make them unable to use the local voice services. Competition, so the new operators mainly focus on long-distance services and multimedia services. 2. The bandwidth of the existing IP MAN of the new operator is very rich and has not been effectively used. Therefore, it is required that the voice access to IP and the development of multimedia services best meet the existing network characteristics and the operator's interests.
目前,通过 IP网络实现多业务综合接入的类似方案主要是基于软交换 技术的下一代网络(NGN )方案, 该方案属于一种综合、 开放的网络构架, 提供话音、 数据和多媒体等业务。 NGN采用软交换技术, 将传统交换机的 功能模块分离为独立网络部件, 各部件按相应功能进行划分, 独立发展。  At present, a similar scheme for implementing multi-service integrated access through an IP network is mainly a next-generation network (NGN) scheme based on softswitch technology. This scheme belongs to a comprehensive, open network architecture that provides voice, data, and multimedia services. NGN uses soft switching technology to separate the functional modules of traditional switches into independent network components. Each component is divided according to corresponding functions and developed independently.
NGN采用业务与呼叫控制分离、 呼叫控制与承载分离技术, 实现开放分布 式网絡结构, 使业务独立于网络。 通过开放式协议和接口, 可灵活、 快速 地提供业务, 个人用户可自己定义业务特征, 而不必关心承载业务的网絡 形式和终端类型。 NGN adopts separation of service and call control, separation of call control and bearer technology to achieve open distribution Network structure, making the business independent of the network. Through open protocols and interfaces, services can be provided flexibly and quickly, and individual users can define service characteristics themselves, without having to worry about the network form and terminal types that carry the services.
NGN技术虽然具有明显的优点 3 并被认为是未来网络建设发展的方 向, 其组网方案也可满足新运营商需求。 但就目前状况来看, 主要存在两 点缺陷: Although NGN technology has obvious advantages 3 and is considered the future direction of network construction and development of its new networking solutions can meet the needs of operators. However, from the current situation, there are two main defects:
1、 完全采用 NGN组网成本过高, 运营商需要大量采购相关设备, 以 取代和更新现有网络。  1. The cost of fully adopting NGN networking is too high, and operators need to purchase a large amount of related equipment to replace and update the existing network.
2、 由于是新技术, NGN 目前仍在完善之中, 大规模应用存在一定的 风险。  2. Because it is a new technology, NGN is still being improved, and there are certain risks in large-scale applications.
因此综合来看, 新运营商仍需要一定的时间才可规模性应用 NGN技 术, 这就与新运营商迫切需要开展综合业务的目标产生了矛盾。 发明内容  Therefore, in a comprehensive view, it still takes a certain amount of time for new operators to apply NGN technology on a large scale, which contradicts the goal of new operators who urgently need to launch integrated services. Summary of the Invention
有鉴于此, 本发明的目的在于提供一种 IP接入系统, 使其能简单方便 地实现 IP语音和多媒体业务。  In view of this, an object of the present invention is to provide an IP access system so that it can easily and conveniently implement IP voice and multimedia services.
本发明的另一目的在于提供一种 IP接入实现语音业务的方法, 该方法 可在现有网络资源基础上, 满足新运营商利用 IP网络实现接入语音业务的 需求。  Another object of the present invention is to provide a method for implementing voice services through IP access, which can meet the needs of a new operator using IP networks to implement voice services based on existing network resources.
本发明的又一目的在于提供一种 IP网中媒体流的处理方法,使其能更 进一步地提高 IP接入技术的通话质量,降低通话时延,并且筒化处理流程。  Another object of the present invention is to provide a method for processing media streams in an IP network, which can further improve the call quality of the IP access technology, reduce the call delay, and simplify the processing flow.
为达到上述目的, 本发明的技术方案是这样实现的:  To achieve the above object, the technical solution of the present invention is implemented as follows:
一种 IP接入系统, 包括 IP网络, 该系统还包括: 本地交换机, 用于 实现呼叫业务以及对资源控制; 一个以上接入网关, 用于连接宽带网络和 用户终端, 实现 IP接入; 边缘中继网关, 设置于 IP网络中, 用于实现信 令转换和媒体流转换;所述本地交换机通过中继链路与边缘中继网关连接, 并通过窄带信令协议交互;所述接入网关通过 IP网络与边缘中继网关相连。 An IP access system, including an IP network, the system further includes: a local switch for implementing call services and resource control; more than one access gateway for connecting a broadband network and a user terminal to implement IP access; an edge A relay gateway, which is set in an IP network and is used to implement Order conversion and media stream conversion; the local switch is connected to the edge relay gateway through a relay link, and interacts through a narrowband signaling protocol; and the access gateway is connected to the edge relay gateway through an IP network.
其中, 所述边缘中继网关进一步包括控制媒体流在 IP侧进行自环的环 回控制模块。  The edge relay gateway further includes a loopback control module that controls a media stream to perform a self-loop on the IP side.
上述方案中, 接入网关与边缘中继网关之间为媒、体网关控制协议 In the above solution, the access gateway and the edge relay gateway are media and media gateway control protocols.
( MGCP )链路、 或 H.248协议链路、 或 H.323协议链路、 或起始会话协 议(SIP )链路。 所述窄带信令协议包括 V5信令、 或 7号信令、 或 1号信 令、 或 PRA信令协议。 所述接入网关为接入媒体网关(AMG )、 或综合接 入设备(IAD )、 或其组合。 (MGCP) link, or H.248 protocol link, or H.323 protocol link, or Session Initiation Protocol (SIP) link. The narrowband signaling protocol includes V5 signaling, or No. 7 signaling, or No. 1 signaling, or PRA signaling protocol. The access gateway is an access media gateway (AMG), or an integrated access device (IAD), or a combination thereof.
本发明还提供了一种 IP接入实现语音业务的方法, 包括以下步骤: The present invention also provides a method for implementing voice services through IP access, including the following steps:
A、 主叫用户终端通过接入网关向被叫用户终端发起呼叫; A. The calling user terminal initiates a call to the called user terminal through the access gateway;
B、主叫用户终端和被叫用户终端侧的边缘中继网关分别在两用户侧的 边缘中继网关和接入网关之间建立实时传输协议(RTP )通道, 并通过对 接入网关侧和本地交换机侧的协议格式转换, 在主叫用户终端和被叫用户 终端之间建立连接;  B. The edge relay gateway on the calling user terminal and the called user terminal side respectively establishes a real-time transmission protocol (RTP) channel between the edge relay gateway on the two user sides and the access gateway. Protocol format conversion on the local switch side, establishing a connection between the calling user terminal and the called user terminal;
C、主叫用户终端和被叫用户终端间的语音业务流分别通过相应侧的实 时传输协议通道承载传输。  C. The voice service flow between the calling user terminal and the called user terminal is transmitted through the real-time transmission protocol channel of the corresponding side.
上述过程中, 所述步骤 B具体包括:  In the above process, the step B specifically includes:
B1、 主叫用户终端侧的接入网关将主叫用户的呼叫事件上报边缘中继 网关, 边缘中继网关将所收到的呼叫事件的协议格式进行转换后上报本地 交换机; 并且, 该边缘中继网关在边缘中继网关与接入网关之间建立实时 传输协议 ( RTP )通道;  B1. The access gateway on the calling user terminal side reports the calling event of the calling user to the edge relay gateway, and the edge relay gateway converts the received call event protocol format and reports it to the local switch; and The relay gateway establishes a real-time transmission protocol (RTP) channel between the edge relay gateway and the access gateway;
B2、主叫用户终端侧的边缘中继网关将被叫用户号码上报本地交换机, 本地交换机才 居被叫用户号码向该用户侧的边缘中继网关下发关于呼叫事 件的指示; B3、 被叫用户终端侧的边缘中继网关对所述指示的协议格式进行转换 后, 下发给该被叫用户终端侧的接入网关, 并在该边缘中继网关与该接入 网关间建立实时传输协议通道(RTP )通道; B2. The edge relay gateway on the calling user terminal side reports the called user number to the local switch. Only the local switch sends the called user number to the edge relay gateway on the user side to send an instruction about the call event. B3. After the edge relay gateway on the called user terminal converts the indicated protocol format, it is delivered to the access gateway on the called user terminal side, and between the edge relay gateway and the access gateway. Establishing a real-time transmission protocol channel (RTP) channel;
B4¾ 被叫用户终端侧的接入网关将呼叫事件通知被叫用户终端。 B4 ¾ The access gateway on the called user terminal side notifies the called user terminal of the call event.
其中,步骤 B 1中所述在边缘中继网关与接入网关之间建立实时传输协 议(RTP )通道的步驟可以在步骤 B6之前的任何位置执行。  Wherein, the step of establishing a real-time transmission protocol (RTP) channel between the edge relay gateway and the access gateway described in step B1 may be performed anywhere before step B6.
上述方案中, 所述边缘中继网关与接入网关之间采用媒体网关控制协 议( MGCP )、 或 H.248协议、 或 H.323协议或起始会话协议 ( SIP )格式; 边缘中继网关与本地交换机之间采用 V5信令、 或 7号信令、 或 1号信令、 或 PRA信令协议格式。  In the above solution, a media gateway control protocol (MGCP), or an H.248 protocol, or an H.323 protocol or a session initiation protocol (SIP) format is used between the edge relay gateway and the access gateway; the edge relay gateway The V5 signaling, or No. 7 signaling, or No. 1 signaling, or PRA signaling protocol format is used with the local switch.
上述方案中,步驟 B2中,边缘中继网关通过信令方式将经过自身协议 转换的被叫用户号码上报本地交换机, 或以媒体流经实时传输协议(RTP ) 通道将被叫用户号码上报本地交换机。  In the above solution, in step B2, the edge relay gateway reports the called user number converted by its own protocol to the local switch through signaling, or reports the called user number to the local switch through a real-time transmission protocol (RTP) channel through media streaming. .
上述方案中,步驟 B2中所述边缘中继网关向本地交换机上报被叫用户 号码进一步包括:  In the above solution, the edge relay gateway in step B2 reporting the called user number to the local switch further includes:
B21、 本地交换机向主叫用户终端送回铃音;  B21. The local switch sends a ringback tone to the calling user terminal.
B22、 边缘中继网关将脉冲编码调制 (PCM ) 的回铃音转换为 IP包, 并通过实时传输协议(RTP )通道传送至接入网关; 或通过控制协议指示 接入网关发送回铃音;  B22. The edge relay gateway converts the pulse code modulation (PCM) ringback tone into an IP packet and transmits it to the access gateway through a real-time transmission protocol (RTP) channel; or instructs the access gateway to send a ringback tone through a control protocol;
B23、 接入网关将所述 IP包转换为脉冲编码调制的回铃音下发给主叫 用户终端; 或者根据边缘中继网关的指示将回铃音下发给主叫用户终端。  B23. The access gateway converts the IP packet into a pulse code modulated ringback tone and sends it to the calling user terminal; or sends the ringback tone to the calling user terminal according to an instruction of the edge relay gateway.
该方法进一步包括: 当主叫用户终端和被叫用户终端任一方终止业务 时, 终止业务方对应的 RTP通道关闭并译放相关资源。  The method further includes: when either the calling user terminal or the called user terminal terminates the service, the RTP channel corresponding to the terminating service party is closed and the related resources are released.
该方法进一步包括: 每个用户在接入前通过接入网关完成在边缘中继 网关和本地交换机中的状态初始化及注册。 本发明还提供了一种 IP网络中媒体流的处理方法, 边缘中继网关收到 主叫用户终端发起的呼叫接入请求后 , 执行以下步骤: The method further includes: each user completes state initialization and registration in the edge relay gateway and the local switch through the access gateway before accessing. The present invention also provides a method for processing media streams in an IP network. After receiving the call access request initiated by the calling user terminal, the edge relay gateway performs the following steps:
1 )根据呼叫接入请求中的被叫用户信息, 判断被叫用户终端是否属于 该边缘中继网关;  1) judging whether the called user terminal belongs to the edge relay gateway according to the called user information in the call access request;
2 )如果被叫用户终端属于该边缘中继网关, 则以被叫用户终端对应的 IP地址及端口号作为媒体流主叫侧的对端地址, 并以主叫用户终端对应的 IP地址及端口号作为媒体流被叫侧的对端地址, 将主被叫之间的媒体流直 接相连。  2) If the called user terminal belongs to the edge relay gateway, use the IP address and port number corresponding to the called user terminal as the peer address on the calling side of the media stream, and use the IP address and port corresponding to the calling user terminal. The number is used as the peer address of the called side of the media stream, and directly connects the media stream between the calling and called parties.
其中, 所述步骤 2 )还包括以下步骤:  Wherein, the step 2) further includes the following steps:
21 )先判断主被叫侧的接入网关是否已得到媒体流接收方的 RTP地址; 21) first determine whether the access gateway of the calling and called sides has obtained the RTP address of the media stream receiver;
22 )如果已得到媒体流接收方的 RTP地址, 则边缘中继网关指示主被 叫侧的接入网关, 由其将媒体流主叫侧的对端地址改为被叫用户终端对应 的 IP地址及端口号, 并将媒体流被叫侧的对端地址改为主叫用户终端对应 的 IP地址及端口号, 将主被叫之间的媒体流直接相连, 结束当前流程; 如 果未得到媒体流接收方的 RTP地址, 则进入步骤 23 ); 22) If the RTP address of the media stream receiver has been obtained, the edge relay gateway instructs the access gateway on the calling and called sides to change the peer address on the calling side of the media stream to the IP address corresponding to the called user terminal And the port number, and change the peer address on the called side of the media stream to the IP address and port number corresponding to the calling user terminal, directly connect the media stream between the calling and called parties, and end the current process; if no media stream is obtained The RTP address of the receiver, then proceed to step 23);
23 )边缘中继网关指示主被叫侧的接入网关, 由其将媒体流主叫侧的 对端地址设置为被叫用户终端对应的 IP地址及端口号, 并将媒体流被叫侧 的对端地址设置为主叫用户终端对应的 IP地址及端口号,将主被叫之间的 媒体流直接相连。  23) The edge relay gateway instructs the access gateway on the calling and called sides to set the peer address on the calling side of the media stream to the IP address and port number corresponding to the called user terminal, and The peer address is set to the IP address and port number corresponding to the calling user terminal, and directly connects the media stream between the calling and called parties.
所述步骤 22 ) 中, 先由所述边缘中继网关将其与主被叫用户终端所连 接的接入媒体网关之间的实时传输协议通道切断, 再控制主被叫用户终端 所连接的接入网关修改媒体流主被叫侧的对端地址。  In step 22), the edge relay gateway first cuts off the real-time transmission protocol channel between the edge relay gateway and the access media gateway connected to the calling and called user terminal, and then controls the connection connected to the calling and called user terminal. The ingress gateway changes the peer address on the calling and called sides of the media stream.
上述方案中, 所述步骤 2 ) 中将主被叫之间的媒体流直接相连之后, 该方法还包括: 判断是否收到主叫或被叫用户终端挂机 /拍叉信号或异常信 号, 如果收到, 则由所述边缘中继网关控制主被叫用户终端所连接的接入 网关, 将媒体流主叫侧和被叫侧的对端地址都修改为所述边缘中继网关的 地址。 In the above solution, after the media streams between the calling and called parties are directly connected in step 2), the method further includes: judging whether a calling or called user terminal on-hook / fork signal or abnormal signal is received. To, the edge relay gateway controls the access to which the calling and called user terminals are connected The gateway modifies the address of the opposite end of the calling side and the called side of the media stream to the address of the edge relay gateway.
上述方案中, 所述步驟 1 )进一步包括: 所述边缘中继网关根据所收 到的呼叫接入请求中携带的被叫用户号码, 查找自身用户信息数据库, 判 断是否存在该被叫用户号码, 如果存在, 则所述主被叫用户终端同属于所 述的边缘中继网关; 如果不存在, 则被叫用户终端不属于所述的边缘中继 网关。  In the above solution, step 1) further includes: the edge relay gateway searches its own user information database according to the called user number carried in the received call access request, and determines whether the called user number exists, If it exists, the calling and called user terminals belong to the edge relay gateway; if not, the called user terminal does not belong to the edge relay gateway.
上述方案中, 所述主叫用户终端和被叫用户终端与同一个接入网关相 连, 或与不同的接入网关相连。  In the above solution, the calling user terminal and the called user terminal are connected to the same access gateway, or are connected to different access gateways.
上面所提供的两种方法中, 所述接入网关可以为接入媒体网关、 或综 合接入设备、 或其组合。  In the two methods provided above, the access gateway may be an access media gateway, or an integrated access device, or a combination thereof.
本发明的系统综合了现有技术和新运营商的网络现状, 能较好的满足 运营商需求, 使得新运营商只需较小投入, 即可实现利用 IP网络综合接入 多种业务。 同时, 本发明中的方案实现大部分采用较为成熟的技术, 新增 部分也仅仅完成透传、 转换的功能, 所以稳定性较好、 实现筒单易行。  The system of the present invention integrates the existing technology and the current status of the network of the new operator, and can better meet the needs of the operator, so that the new operator can use the IP network to comprehensively access a variety of services with only a small investment. At the same time, the implementation of the solution in the present invention mostly adopts more mature technology, and the newly added part only completes the functions of transparent transmission and conversion, so it has better stability and is easy to implement.
由于在组网中采用的网关设备与下一代网络(NGN ) 中的设备一致, 那么, 当 NGN成熟时, 只需引入新的媒体网关控制 ( MGC ) 即可, 则现 有的组网就可变为 MGC+IAD/AMG、以及 MGC+TMG+LE的标准 NGN组 网。 因此运营商可一步投资到位, 最终平滑过渡到 NGN, 符合运营商的长 远利益和技术发展方向。  Because the gateway equipment used in the networking is the same as the equipment in the next generation network (NGN), then when the NGN matures, it only needs to introduce a new Media Gateway Control (MGC), and the existing networking can be It becomes the standard NGN network of MGC + IAD / AMG and MGC + TMG + LE. Therefore, operators can invest in one step and eventually transition to NGN smoothly, which is in line with the long-term interests of operators and the direction of technology development.
釆用本发明的媒体流处理方法后 , 同一边缘中继网关下的用户互相通 话时, 以分别属于两个不同的接入媒体网关的主、 被叫用户为例, 呼叫过 程为主叫用户终端一 >主叫接入媒体网关一 >被叫接入媒体网关—)被叫用户终 端, 只需经过 PCM~>IP"~>PCM的转换即可, 即只有一次编解码, 减少了网 关侧的转换, 从而使通话质量、 时延等性能参数得到提高, 减少了边缘中 继网关的处理负担, 同时可以节省出口带宽, 提高 IP接入系统对大话务量 的承载能力, 也可满足运营商或设备制造商的特殊调试、 测试需求。 釆 After using the media stream processing method of the present invention, when users under the same edge relay gateway talk to each other, taking the calling and called users belonging to two different access media gateways as examples, the calling process is the calling user terminal 1> Caller accesses the media gateway 1> Called accesses the media gateway—) The called user terminal only needs to go through PCM ~> IP "~> PCM conversion, that is, only one encoding and decoding, reducing the gateway side Conversion, thereby improving performance parameters such as call quality and latency, reducing Following the gateway's processing burden, it can also save egress bandwidth, improve the carrying capacity of the IP access system for large traffic volumes, and also meet the special debugging and testing needs of operators or equipment manufacturers.
本发明可同时支持语音业务、所有已有的数据以及多媒体业务的实现。 附图简要说明  The invention can simultaneously support the realization of voice services, all existing data and multimedia services. Brief description of the drawings
图 1为本发明 IP接入系统的组成结构示意图;  Figure 1 is a schematic diagram of the composition of the IP access system of the present invention;
图 2为本发明 IP接入系统的原理示意图;  FIG. 2 is a schematic diagram of the IP access system of the present invention;
图 3为本发明 IP接入的初始化注册流程图;  Figure 3 is an initial registration flowchart of IP access according to the present invention;
图 4〜图 6为本发明实现语音业务方法的呼叫接续示意图;  4 to 6 are schematic diagrams of call connection of a method for implementing a voice service according to the present invention;
图 7为本发明的流程图。  FIG. 7 is a flowchart of the present invention.
图 8为本发明采用内部环回进行媒体流处理的状态示意图;  FIG. 8 is a schematic diagram of a state in which media loop processing is performed by using an internal loopback according to the present invention; FIG.
图 9为本发明中环回结束后的状态示意图;  FIG. 9 is a schematic diagram of a state after loopback in the present invention;
图 10为本发明一个优选实施例中进行环回处理的流程图。 实施本发明的方式  FIG. 10 is a flowchart of loopback processing in a preferred embodiment of the present invention. Mode of Carrying Out the Invention
下面结合附图及具体实施例对本发明再作进一步详细的说明。  The present invention will be described in further detail below with reference to the drawings and specific embodiments.
如图 1所示, 本发明的 IP接入系统主要由本地交换机(LE )、 边缘中 继网关 (ETG )、 综合接入设备、 接入媒体网关 (AMG ) 等设备组成。 其 中, 本地交换机负责实现呼叫业务以及对资源控制; 边缘中继网关实现信 令转换和媒体流转换功能; 综合接入设备和接入媒体网关分别用于实现连 接窄带侧电话用户和宽带网络, 实现 IP接入, 这里, 综合接入设备和接入 媒体网关可统称为接入网关。 窄带侧电话用户通过用户线连接到各接入网 关上, 各接入网关和边缘中继网关通过五类线或网线连接到 IP城域网; 边 缘中继网关通过 E1/T1 中继线与本地交换机相连。 本地交换机通过边缘中 继网关控制接入网关所辖的电话用户的呼叫, 实现语音业务。 这里, 边缘 中继网关和接入网关之间采用媒体网关控制协议 ( MGCP )、 H.248协议、 H.323协议或起始会话协议(SIP )通信; 本地交换机和边缘中继网关采用 V5信令协议、 7号信令协议、 1号信令或起始会话协议(SIP )通信。 As shown in FIG. 1, the IP access system of the present invention is mainly composed of devices such as a local exchange (LE), an edge relay gateway (ETG), an integrated access device, and an access media gateway (AMG). Among them, the local switch is responsible for implementing call services and resource control; the edge relay gateway implements signaling conversion and media stream conversion functions; integrated access equipment and access media gateways are respectively used to connect narrowband side telephone users and broadband networks to achieve IP access. Here, the integrated access device and the access media gateway may be collectively referred to as an access gateway. Narrowband phone users are connected to the access gateways through subscriber lines, and each access gateway and edge relay gateway are connected to the IP metropolitan area network through Category 5 or network cables; the edge relay gateway is connected to the local switch through E1 / T1 trunk . The local switch controls the call of the telephone user under the jurisdiction of the access gateway through the edge relay gateway to implement voice services. Here, the media gateway control protocol (MGCP), the H.248 protocol, H.323 protocol or Start Session Protocol (SIP) communication; the local switch and the edge relay gateway use V5 signaling protocol, No. 7 signaling protocol, No. 1 signaling or Start Session Protocol (SIP) communication.
实际上, 本发明的 IP接入系统是在目前已有的 IP电话网关功能基础 上, 增加 MGCP/H.248网络侧和 V5接入侧功能, 使目前已有的 IP电话网 关转变为边缘中继网关, 实现信令转换和媒体流转换功能。  In fact, the IP access system of the present invention is based on the existing IP phone gateway functions, and adds MGCP / H.248 network side and V5 access side functions, so that the existing IP phone gateways are transformed into the edge. Following the gateway, the signaling conversion and media stream conversion functions are implemented.
在硬件上, 由于接入媒体网关 /综合接入设备、 IP电话网关、 交换机已 存在, 但接入媒体网关 /综合接入设备侧信令交互使用的是 MGCP/ H.248 协议, 而交换机侧信令交互使用的是 V5/N0.7协议, 所以本发明的实现核 心就在已有的 IP电话网关上, 通过软件实现 MGCP/H.248协议与 V5/No.7 协议之间的转换, 完成两者的连接。 这样, 现有的 IP电话网关也就转变为 边缘中继网关。 在通过信令交互后, 边缘中继网关创建一条连接接入媒体 网关 /综合接入网关的 RTP通道, 用于承载用户语音。  In terms of hardware, since the media gateway / integrated access device, IP phone gateway, and switch already exist, the signaling interaction on the side of the media gateway / integrated access device uses the MGCP / H.248 protocol, and the switch side The signaling interaction uses the V5 / N0.7 protocol, so the implementation core of the present invention is based on the existing IP telephone gateway, and the conversion between the MGCP / H.248 protocol and the V5 / No.7 protocol is implemented by software. Complete the connection between the two. In this way, the existing IP telephony gateway is also transformed into an edge relay gateway. After interacting through signaling, the edge relay gateway creates an RTP channel connected to the access media gateway / integrated access gateway to carry the user's voice.
如图 2所示, 本发明 IP接入系统的特点就是: 在本地交换机一侧, 边 缘中继网关和接入媒体网关 /综合接入设备 ( ETG+AMG/IAD )表现为接入 网 (AN ); 在接入媒体网关 /综合接入设备(AMG/IAD )—侧, 本地交换机 和边缘中继网关(LE+ETG )表现为一个媒体网关控制器(MGC )。 此时, 边缘中继网关负责完成对应协议, 比如: MGCP H.248信令和 V5信令之间 的转换, 在接入层以 IP接入取代原有的 V5接入方式。 那么, 在原有软件 基础上, 需要移植 MGCP/H.248协议栈、 V5二层、 三层协议, 以及增加对 应的协议栈适配、 转换控制功能。  As shown in FIG. 2, the IP access system of the present invention is characterized in that: on the local switch side, the edge relay gateway and the access media gateway / integrated access device (ETG + AMG / IAD) behave as an access network (AN ); On the side of the access media gateway / integrated access device (AMG / IAD), the local switch and the edge relay gateway (LE + ETG) behave as a media gateway controller (MGC). At this time, the edge relay gateway is responsible for completing the corresponding protocols, such as the conversion between MGCP H.248 signaling and V5 signaling, and replaces the original V5 access method with IP access at the access layer. Then, based on the original software, the MGCP / H.248 protocol stack, the V5 layer 2 and layer 3 protocols need to be transplanted, and the corresponding protocol stack adaptation and conversion control functions need to be added.
对于 IP接入来说, 包括: 初始化注册流程和呼叫接续流程。  For IP access, it includes: the initial registration process and the call connection process.
本发明中 , 以接入网关为接入媒体网关为例 , IP接入的初始化注册流 程如图 3所示, 在边缘中继网关上配置完相关数据后, 接入媒体网关上电, 启动初始化注册流程:  In the present invention, an access gateway is used as an access media gateway as an example. The initial registration process of IP access is shown in FIG. 3. After the relevant data is configured on the edge relay gateway, the access media gateway is powered on and the initialization is started. registration process:
用户终端向所在的接入媒体网关发起初始化注册流程后, 由接入媒体 网关向边缘中继网关发送状态正常的端点状态上报消息 RSIP; 边缘中继网 关收到 RSIP消息后返回响应消息 RSIP ACK, 并且, 边缘中继网关向接入 媒体网关发送端点审计消息 AUDIT, 审计各端点用户; 当接入媒体网关完 成审计后, 向边缘中继网关返回审计响应 AUDIT ACK, 回应审计正常; 则边缘中继网关向本地交换机上报 ASL用户通道正常消息 ASL CHANNEL REPORT OK, 同时向接入媒体网关发送检测用户摘机信号的 RQNT ( Off hook ) 消息, 等待呼叫发起。 经过初始化注册流程后, 用户完成了在交换 机及边缘中继网关上的状态初始化和注册, 成为可以进行正常呼叫的电话 用户。 After the user terminal initiates the initial registration process to the access media gateway where it is located, the access media The gateway sends a normal status endpoint status report message RSIP to the edge relay gateway; the edge relay gateway returns a response message RSIP ACK after receiving the RSIP message, and the edge relay gateway sends an endpoint audit message AUDIT to the access media gateway, auditing each Endpoint users; When the access media gateway completes the audit, it returns an audit response AUDIT ACK to the edge relay gateway, and the response is normal; the edge relay gateway reports the ASL user channel normal message ASL CHANNEL REPORT OK to the local switch, and simultaneously reports to the access The media gateway sends an RQNT (Off hook) message to detect the off-hook signal of the user, and waits for the call to be initiated. After the initialization registration process, the user completes the state initialization and registration on the switch and the edge relay gateway, and becomes a telephone user who can make normal calls.
仍以接入网关为接入媒体网关为例,本发明中 IP接入的呼叫接续过程 如图 7所示, 同时参见图 4至图 6所示, 其中, 图 4为主叫用户终端 1向 被叫用户终端 2接续过程示意图, 图 5 '为被叫用户终端 2与本地交换机间 建立接续的示意图, 图 6为主被叫建立好接续的示意图, 图中带箭头的实 线表示信令, 虛线表示 RTP通道, 则该呼叫接续流程包括以下步骤:  Still taking the access gateway as the access media gateway as an example, the call connection process of IP access in the present invention is shown in FIG. 7, and referring to FIG. 4 to FIG. 6, where FIG. Schematic diagram of the connection process of the called user terminal 2. Fig. 5 'is a schematic diagram of the connection establishment between the called user terminal 2 and the local exchange. Fig. 6 is a schematic diagram of the connection setup for the called party. The solid line with arrows in the figure indicates signaling. The dotted line indicates the RTP channel. The call connection process includes the following steps:
步骤 701 : 主叫用户侧即用户终端 1的接入媒体网关 1将主叫用户的 呼叫事件上报边缘中继网关。  Step 701: The calling user side, that is, the access media gateway 1 of the user terminal 1, reports the call event of the calling user to the edge relay gateway.
当主叫发起呼叫后, 接入媒体网关检测到主叫用户摘机信号后, 将摘 机事件上报边缘中继网关, 这里, 接入媒体网关上报的呼叫事件消息格式 为媒体网关控制协议 ( MGCP )或 H.248协议格式。  When the caller initiates a call, the access media gateway detects the off-hook signal of the calling user and reports the off-hook event to the edge relay gateway. Here, the format of the call event message reported by the access media gateway is Media Gateway Control Protocol (MGCP). ) Or H.248 protocol format.
步骤 702: 边缘中继网关的控制功能模块在边缘中继网关与接入媒体 网关之间建立实时传输协议(RTP )通道, 并将所收到呼叫事件的协议格 式转换后上 4艮本地交换机。  Step 702: The control function module of the edge relay gateway establishes a real-time transmission protocol (RTP) channel between the edge relay gateway and the access media gateway, and converts the received call event protocol format to a local switch.
边缘中继网关收到摘机事件上报后 , 边缘中继网关的控制功能模块完 成接入媒体网关和边缘中继网关之间 RTP通道的建立及资源分配, 同时将 用户摘机事件的消息格式转换为 V5 消息格式上报本地交换机。 这样, 在 用户拨号之前, 接入媒体网关和边缘中继网关之间已经建立了一条用于承 载话路的 RTP通道。 After the edge relay gateway receives the off-hook event report, the control function module of the edge relay gateway completes the establishment of the RTP channel and the resource allocation between the access media gateway and the edge relay gateway, and converts the message format of the user off-hook event. Report to local switch for V5 message format. This way, in Before the user dials, an RTP channel has been established between the access media gateway and the edge relay gateway to carry the voice channel.
步骤 703: 主叫用户侧的边缘中继网关的控制功能模块将用户地址上 艮本地交换机。  Step 703: The control function module of the edge relay gateway on the calling user side uploads the user address to the local switch.
主叫用户拨号后, 边缘中继网关将用户电话号码通过信令或已建立的 RTP通道上传到本地交换机, 本地交换机根据被叫用户号码进行接续, 同 时向主叫放回铃音, 回铃音经过边缘中继网关时, 由脉冲编码调制(PCM ) 转变为 IP包, 通过 RTP通道传到接入媒体网关, 再由接入媒体网关转换 为 PCM信号放给主叫用户听。  After the calling user dials, the edge relay gateway uploads the user's phone number to the local switch through signaling or an established RTP channel, and the local switch connects according to the called user's number, and at the same time, a ringback tone is returned to the caller. When passing through the edge relay gateway, it is converted into IP packets by Pulse Code Modulation (PCM), transmitted to the access media gateway through the RTP channel, and then converted into PCM signals by the access media gateway and put into the calling user to listen.
步骤 704: 本地交换机根据被叫用户地址向该用户侧的边缘中继网关 下发关于呼叫事件的指示。 本实施例中, 本地交换机下发播放振铃音的指 示。  Step 704: The local switch delivers an instruction about the call event to the edge relay gateway on the user side according to the called user address. In this embodiment, the local switch issues an instruction to play a ring tone.
步驟 705: 被叫用户侧边缘中继网关的控制功能模块对所述指示的协 议格式进行转换后下发给被叫用户侧的接入媒体网关, 并在该边缘中继网 关与该接入媒体网关之间建立实时传输协议(RTP )通道。  Step 705: The control function module of the called user-side edge relay gateway converts the indicated protocol format, and sends it to the called user-side access media gateway, and sends the edge relay gateway and the access medium to the access media gateway. A real-time transmission protocol (RTP) channel is established between the gateways.
当被叫侧所在边缘中继网关接到本地交换机放振铃音的指示后 ,将 V5 协议格式转换为 MGCP/H248协议格式, 通知被叫用户所在接入媒体网关 放振铃音给用户, 同时也建立一条被叫侧边缘中继网关和接入媒体网关之 间的 RTP通道, 这样, 在被叫用户摘机前, 被叫侧边缘中继网关和接入媒 体网关之间的 RTP通道也已建立。  When the edge relay gateway on the called side receives an instruction from the local switch to release ringing tones, it converts the V5 protocol format to the MGCP / H248 protocol format, and notifies the called user to access the media gateway to release the ringing to the user. An RTP channel between the called side edge relay gateway and the access media gateway is also established. In this way, before the called user goes off-hook, the RTP channel between the called side edge relay gateway and the access media gateway has also been set up.
步驟 706: 被叫用户侧的接入媒体网关将呼叫事件通知被叫用户。 被 叫用户侧的接入媒体网关放振铃音给被叫用户 , 至此完成呼叫接续。  Step 706: The access media gateway on the called user side notifies the called user of the call event. The access media gateway on the called user side plays a ring tone to the called user, and the call connection is completed.
步骤 707: 主叫用户和被叫用户之间通过 RTP通道承载传输语音业务 流。 当被叫用户摘机应答后, 主被叫进入通话状态。 用户的语音通过 PCM->IP->PCM->IP->PCM的媒体流转换,分别由主被叫侧边缘中继网关、 接入媒体网关之间的 RTP通道承载传输, 如图 6所示。 Step 707: The calling user and the called user carry a voice service stream through an RTP channel. When the called user answers the call, the calling party and the called party enter the call state. The user's voice is converted through the media stream of PCM->IP->PCM->IP-> PCM. The RTP channel between the access media gateways carries the transmission, as shown in Figure 6.
其中, 步骤 702中所述的边缘中继网关的控制功能模块在边缘中继网 关与接入媒体网关之间建立实时传输协议 ( RTP )通道, 可在步骤 701 与 步骤 705之间任意一个步驟中完成。  Wherein, the control function module of the edge relay gateway described in step 702 establishes a real-time transmission protocol (RTP) channel between the edge relay gateway and the access media gateway, which may be performed in any step between steps 701 and 705. carry out.
当有一方挂断时, 该方对应的 RTP通道随即关闭, 相关资源释放。 同 时通过本地交换机放忙音给未挂断用户。 用户挂断后该方对应的 RTP通道 也关闭并释放相关资源, 结束呼叫流程。  When one party hangs up, the RTP channel corresponding to that party is closed, and related resources are released. At the same time, the busy tone is released to the unhanged user through the local switch. After the user hangs up, the corresponding RTP channel of the party is also closed and the related resources are released, and the call flow is ended.
从上述实现过程可以看出,用户终端 1一>接入媒体网关 1→边缘中继网 关→本地交换机→边缘中继网关"接入媒体网关 2~用户终端 2这一呼叫 过程, 其对应的每一路呼叫的媒体流都需要经过 PCM→IP→PCM→IP ~ PCM的转换。 这就意味着, 在通话过程中, 需要进行两次 PCM^IP的 编解码操作, 而该编解码操作会影响话音质量和时延。  It can be seen from the above implementation process that user terminal 1-> access to media gateway 1 → edge relay gateway → local switch → edge relay gateway "calling media gateway 2 to user terminal 2", the corresponding process The media stream of a call needs to be converted from PCM → IP → PCM → IP ~ PCM. This means that during the call, two PCM ^ IP codec operations are required, and the codec operation will affect the voice Quality and latency.
为了提高话音质量和降低时延, 对于主被叫处于同一边缘中继网关下 的情况, 本发明又提出一种通过内部环回的方法来解决 IP接入技术中两次 编解码的问题。 具体说就是: 当某主叫用户通过电话终端呼叫另一被叫用 户的电话终端时, 如图 10所示, 边缘中继网关收到主叫用户发起的呼叫接 入请求后, 对主、 被叫用户号码进行分析, 即在边缘中继网关的用户信息 数据库中查找被叫用户号码; 如果在数据库中找不到该被叫用户号码, 则 表示被叫用户号码不属于该边缘中继网关, 此时按所得到的正常的媒体流 接收方 RTP地址完成后续操作, 不用修改或重新设置所述媒体流主、 被叫 侧的对端地址; 如果在数据库找到该被叫用户号码, 则表示主、 被叫用户 号码同属于一个边缘中继网关, 则对媒体流的对端地址进行设置或修改。  In order to improve the voice quality and reduce the delay, for the case where the calling party and the called party are under the same edge relay gateway, the present invention also proposes an internal loopback method to solve the problem of two codecs in the IP access technology. Specifically, when a calling user calls a telephone terminal of another called user through a telephone terminal, as shown in FIG. 10, after receiving the call access request initiated by the calling user, the edge relay gateway Analysis of the called user number, that is, searching the called user number in the user information database of the edge relay gateway; if the called user number is not found in the database, it means that the called user number does not belong to the edge relay gateway, At this time, follow-up operations are performed according to the obtained normal RTP address of the media stream receiver, and there is no need to modify or reset the address of the opposite end of the media stream master and callee. If the called user number is found in the database, it indicates that the master If the called user number belongs to the same edge relay gateway, the peer address of the media stream is set or modified.
具体设置或修改时, 先判断主、 被叫侧的接入媒体网关是否已得到媒 体流接收方的 RTP地址。 如果已得到某体流接收方的 RTP地址, 则边缘中 继网关指示主被叫侧的接入媒体网关 , 由相应接入媒体网关将媒体流主叫 侧的对端地址改为被叫用户对应的 IP地址及端口号, 并将媒体流被叫侧的 对端地址改为主叫用户对应的 IP地址及端口号, 从而使主、 被叫之间的媒 体流直接相连; 如果未得到媒体流接收方的 RTP地址, 则边缘中继网关指 示主、 被叫侧的接入媒体网关, 由相应接入媒体网关将媒体流主叫侧的对 端地址设置为被叫用户对应的 IP地址及端口号, 并将媒体流被叫侧的对端 地址设置为主叫用户对应的 IP地址及端口号, 从而使主、 被叫之间的媒体 流直接相连。 When specifically setting or modifying, first determine whether the access media gateways of the calling and called sides have obtained the RTP address of the media stream receiver. If the RTP address of the receiver of a certain stream is obtained, the edge relay gateway instructs the access media gateway on the calling and called sides, and the corresponding access media gateway calls the media stream. The peer address on the side is changed to the IP address and port number corresponding to the called user, and the peer address on the called side of the media stream is changed to the IP address and port number corresponding to the calling user. Media streams are directly connected; if the RTP address of the media stream receiver is not obtained, the edge relay gateway instructs the calling and called sides to access the media gateway, and the corresponding access media gateway sends the corresponding address of the media stream to the calling side. Set the IP address and port number corresponding to the called user, and set the peer address on the called side of the media stream to the IP address and port number corresponding to the calling user, so that the media stream between the calling and called parties is directly connected .
图 8、 图 9分别示出了内部环回后以及中止内部环回时的状态, 各图 中带箭头的线条表示媒体流的流向, 图 8中的虚线表示边缘中继网关与接 入媒体网关之间保留的媒体流通道, 粗实线表示接入媒体网关之间新建的 媒体流通道; 图 9中的粗虚线表示接入媒体网关之间已中断的媒体流通道。  Figures 8 and 9 show the states after internal loopback and when the internal loopback is suspended. The lines with arrows in each figure indicate the flow of media streams. The dashed lines in Figure 8 indicate the edge relay gateway and the access media gateway. The thick solid line indicates the newly created media flow channel between the access media gateways. The thick dashed line in FIG. 9 indicates the interrupted media flow channel between the access media gateways.
如图 8所示, 通过上述对主被叫侧对端地址的设置或修改, 可使主被 叫话路承载通道直接相连, 完成 IP网内部环回。 IP网内部环回后, 话路直 接从两个接入媒体网关, 即接入媒体网关 1和接入媒体网关 2之间的媒体 流通道上传送, 接入媒体网关和边缘中继网关之间的通路不再处理语音, 仅保留以便于切换。  As shown in FIG. 8, through the above-mentioned setting or modification of the address of the calling party and the calling party, the calling channel of the called party can be directly connected, and the internal loopback of the IP network is completed. After the internal loopback of the IP network, the voice channel is directly transmitted from the media stream channel between the two access media gateways, that is, the access media gateway 1 and the access media gateway 2, and between the media gateway and the edge relay gateway. The path is no longer processing voice, but only reserved for switching.
如图 9所示, 当出现主叫或被叫用户挂机 /拍叉或异常情况时, 由边缘 中继网关控制主、 被叫用户所在的接入媒体网关, 即主叫用户终端 1所在 的接入媒体网关 1、被叫用户终端 2所在的接入媒体网关 2, 将媒体流主叫 侧和被叫侧的对端地址都修改为边缘中继网关的地址 , 从而中断两个接入 媒体网关之间的话路通道, 回到图 6所示的正常状态。 中止内部环回后, 仍按照 IP接入的原有处理流程处理呼叫。  As shown in FIG. 9, when the calling or called user hangs up / shoots or an abnormal situation occurs, the edge relay gateway controls the access media gateway where the calling and called users are located, that is, the connection where the calling user terminal 1 is located. Enter media gateway 1 and access media gateway 2 where the called user terminal 2 is located, and modify the address of the peer end of the calling side and the called side of the media stream to the address of the edge relay gateway, thereby interrupting the two access media gateway The speech channel between them returns to the normal state shown in FIG. 6. After the internal loopback is suspended, the call is still processed according to the original processing flow of IP access.
为了实现 IP网内部环回,需要在边缘中继网关内部建立主被叫的关联, 边缘中继网关自身必须知道一个新发起的呼叫要呼到何处去, 再根据被叫 用户终端的位置来决定是否进行内部环回。 目前在 IP接入中, 对于边缘中 继网关在组网的位置来讲, 只是一个传输部件而不是一个交换部件, 在创 建话路承载通道后, 对于用户拨打的号码, 一律采用透传的方式送往本地 交换机, 由本地交换机进行相应的号码分析。 In order to realize the internal loopback of the IP network, it is necessary to establish the association between the calling party and the called party within the edge relay gateway. The edge relay gateway itself must know where a new call is to be called, and then according to the location of the called user terminal Decide whether to perform internal loopback. Currently in IP access, for edge Following the position of the gateway in the network, it is only a transmission component, not a switching component. After the voice channel is created, the number dialed by the user is sent to the local switch through transparent transmission, and the local switch will respond accordingly. Number analysis.
因此, 如果要实现 IP网内部环回, 就要求边缘中继网关自身必须实现 简单的号码解析功能, 并具有从一般状态到内部环回之间状态转换的控制 功能。 为此 5 需采取如下措施: 1 )增加 ETG属性: 是否为内部环回; 2 ) 增加配置命令, 号码长度; 3 )增加环回控制功能 。 另外, 边缘中继网关 下的所有用户及其信息, 如电话号码等, 均已在其数据库中保存, 因此只 需增加查询接口即可。 Therefore, if the internal loopback of the IP network is to be realized, the edge relay gateway itself must implement a simple number resolution function and have a control function of state transition from the general state to the internal loopback. 5 required for this purpose take the following measures: 1) increasing the ETG properties: whether internal loopback; 2) to increase the allocation order, number length; 3) increase the loopback control function. In addition, all users under the edge relay gateway and their information, such as phone numbers, have been stored in its database, so it is only necessary to add a query interface.
将边缘中继网关配置成支持内部环回模式后, 用户拨号时, 边缘中继 网关在将号码报给本地交换机的同时, 会报给环回控制模块。 由环回控制 模块检测当前是否处于等待收号状态, 若处于等待收号状态就收集号码, 收到预定的位数后, 将状态置为等待环回态, 此状态下不再收号, 然后查 询数据库, 若发现有这个号码, 说明是属于同一边缘中继网关下的呼叫。  After the edge relay gateway is configured to support the internal loopback mode, when the user dials the number, the edge relay gateway reports the number to the local switch and also reports it to the loopback control module. The loopback control module detects whether the number is currently waiting for receiving the number. If it is in the state of waiting for receiving the number, it collects the number. After receiving a predetermined number of digits, the state is set to the state of waiting for the loopback. Query the database. If this number is found, it indicates that the call belongs to the same edge relay gateway.
其中的环回控制模块相当是一个内部的呼叫控制单元, 当发现主被叫 用户都是同一边缘中继网关的用户时,就下命令将媒体流在 IP侧进行自环, 以减少一次编解码。 使媒体流自环的命令分别下发给主叫和被叫 , 对应的 控制模块接到这个命令后会切断边缘中继网关和接入媒体网关之间的 RTP 通道, 不再进行收发 RTP包的操作, 当然等接到恢复命令时仍可以恢复原 状。 同时由边缘中继网关控制接入媒体网关修改媒体流对端地址, 将主叫 侧的对端地址改为被叫用户对应的 IP地址及端口号, 并将被叫侧的对端地 址改为主叫用户对应的 IP地址及端口号, 从而使主、 被叫之间的媒体流直 接相连, 完成网络内部环回。  The loopback control module is quite an internal call control unit. When it is found that the calling and called users are all users of the same edge relay gateway, it orders to loop the media stream on the IP side to reduce one encoding and decoding. . The command to make the media stream loop is sent to the calling and called parties respectively. After receiving the command, the corresponding control module will cut off the RTP channel between the edge relay gateway and the access media gateway, and no longer send and receive RTP packets. Operation, of course, you can still restore the original state when you receive the restore command. At the same time, the edge relay gateway controls the access to the media gateway to modify the peer address of the media stream, change the peer address on the calling side to the IP address and port number corresponding to the called user, and change the peer address on the called side to The corresponding IP address and port number of the calling user, so that the media streams between the calling and called parties are directly connected, and the internal loopback of the network is completed.
本发明的内部环回对于交换机是不可见的, 与交换机的控制通道没有 任何变化, 在接到用户挂机、 拍叉事件以及任何异常发生时, 环回控制模 块将控制媒体流切换回修改前的状态。 The internal loopback of the present invention is not visible to the switch, and there is no change with the control channel of the switch. When a user hangs up, a fork event, or any abnormality occurs, the loopback control mode The block switches the control media stream back to the state before the modification.
上述实施例中的说明了对同一个边缘中继网关下、 分别在两个不同接 入媒体网关下的用户电话终端之间的通话进行内部环回时的情况5 实际上 本发明的方案并不限于上述实施例。 例如其中的主叫用户终端和被叫用户 终端的位置可以是在同一个接入媒体网关 5 或者在同一个综合接入设备, 或者分别在两个不同的综合接入设备 , 或者一个用户在接入媒体网关、 另 一用户在综合接入设备。 The above embodiments have described the case where internal loopback is performed on calls between user phone terminals under the same edge relay gateway and under two different access media gateways. 5 In fact, the solution of the present invention is not It is limited to the above-mentioned embodiment. For example, the location of the calling user terminal and the called user terminal may be in the same access media gateway 5 or in the same integrated access device, or in two different integrated access devices, or a user is connected. To the media gateway and another user to the integrated access device.
总之, 以上所述仅为本发明的较佳实施例而已, 并不用以限制本发明, 凡在本发明的精神和原则之内, 所作的任何修改、 等同替换、 改进等, 均 应包含在本发明的保护范围之内。  In short, the above description is only the preferred embodiments of the present invention and is not intended to limit the present invention. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present invention shall be included in the present invention. Within the scope of the invention.

Claims

权利要求书 Claim
1、 一种 IP接入系统, 包括 IP网络, 其特征在于, 该系统还包括: 本地交换机, 用于实现呼叫业务以及对资源控制;  1. An IP access system, including an IP network, characterized in that the system further includes: a local switch, which is used to implement call services and control resources;
一个以上接入网关, 用于连接宽带网络和用户终端, 实现 IP接入; 边缘中继网关, 设置于 IP网络中, 用于实现信令转换和媒体流转换; 所述本地交换机通过中继链路与边缘中继网关连接, 并通过窄带信令 协议交互; 所述接入网关通过 IP网络与边缘中继网关相连。  More than one access gateway is used to connect a broadband network and a user terminal to implement IP access; an edge relay gateway is provided in the IP network and used to implement signaling conversion and media stream conversion; the local switch passes a relay chain The channel is connected to the edge relay gateway and interacts through a narrowband signaling protocol; the access gateway is connected to the edge relay gateway through an IP network.
2、 如权利要求 1所述的 IP接入系统, 其特征在于: 所述边缘中继网 关进一步包括控制媒体流在 IP侧进行自环的环回控制模块。  2. The IP access system according to claim 1, wherein the edge relay gateway further comprises a loopback control module that controls a media stream to perform a self-loop on the IP side.
3、 如权利要求 1所述的 IP接入系统, 其特征在于: 接入网关与边缘 中继网关之间为媒体网关控制协议(MGCP )链路、 或 H.248协议链路、 或 H.323协议链路、 或起始会话协议( SIP )链路。  3. The IP access system according to claim 1, wherein: between the access gateway and the edge relay gateway is a Media Gateway Control Protocol (MGCP) link, or a H.248 protocol link, or H. 323 protocol link, or Start Session Protocol (SIP) link.
4、 如权利要求 1所述的 IP接入系统, 其特征在于: 所述窄带信令协 议包括 V5信令、 或 7号信令、 或 1号信令、 或 PRA信令协议。  4. The IP access system according to claim 1, wherein the narrowband signaling protocol comprises V5 signaling, or No. 7 signaling, or No. 1 signaling, or PRA signaling protocol.
5、 如权利要求 1至 4任一项所述的 IP接入系统, 其特征在于: 所述 接入网关为接入媒体网关 (AMG )、 或综合接入设备(IAD )、 或其组合。  5. The IP access system according to any one of claims 1 to 4, characterized in that: the access gateway is an access media gateway (AMG), or an integrated access device (IAD), or a combination thereof.
6、 一种 IP接入实现语音业务的方法, 其特征在于, 该方法包括以下 步骤:  6. A method for implementing voice services through IP access, characterized in that the method includes the following steps:
A、 主叫用户终端通过接入网关向被叫用户终端发起呼叫;  A. The calling user terminal initiates a call to the called user terminal through the access gateway;
B、主叫用户终端和被叫用户终端侧的边缘中继网关分别在两用户侧的 边缘中继网关和接入网关之间建立实时传输协议(RTP )通道, 并通过对 接入网关侧和本地交换机侧的协议格式转换 , 在主叫用户终端和被叫用户 终端之间建立连接;  B. The edge relay gateway on the calling user terminal and the called user terminal side respectively establishes a real-time transmission protocol (RTP) channel between the edge relay gateway on the two user sides and the access gateway. Protocol format conversion on the local switch side, establishing a connection between the calling user terminal and the called user terminal;
C、主叫用户终端和被叫用户终端间的语音业务流分别通过相应侧的实 时传输协议通道承载传输。 C. The voice service flows between the calling user terminal and the called user terminal pass through Time Transmission Protocol channels carry transmissions.
7、 如权利要求 6所述的方法, 其特征在于, 所述步骤 B具体包括: 7. The method according to claim 6, wherein the step B specifically comprises:
B1、 主叫用户终端侧的接入网关将主叫用户的呼叫事件上报边缘中继 网关, 边缘中继网关将所收到的呼叫事件的协议格式进行转换后上报本地 交换机; 并且, 该边缘中继网关在边缘中继网关与接入网关之间建立实时 传输协议( RTP )通道; B1. The access gateway on the calling user terminal side reports the calling event of the calling user to the edge relay gateway, and the edge relay gateway converts the received call event protocol format and reports it to the local switch; and The relay gateway establishes a real-time transmission protocol (RTP) channel between the edge relay gateway and the access gateway;
B2、主叫用户终端侧的边缘中继网关将被叫用户号码上报本地交换机, 本地交换机根据被叫用户号码向该用户侧的边缘中继网关下发关于呼叫事 件的指示;  B2. The edge relay gateway on the calling user terminal side reports the called user number to the local switch, and the local switch sends an instruction about the call event to the edge relay gateway on the user side according to the called user number;
B3、 被叫用户终端侧的边缘中继网关对所述指示的协议格式进行转换 后, 下发给该被叫用户终端侧的接入网关, 并在该边缘中继网关与该接入 网关间建立实时传输协议通道(RTP )通道;  B3. After the edge relay gateway on the called user terminal converts the indicated protocol format, it is delivered to the access gateway on the called user terminal side, and between the edge relay gateway and the access gateway. Establishing a real-time transmission protocol channel (RTP) channel;
B4、 被叫用户终端侧的接入网关将呼叫事件通知被叫用户终端。  B4. The access gateway on the called user terminal side notifies the called user terminal of the call event.
8、 如权利要求 6或 7所述的方法, 其特征在于: 所述边缘中继网关与 接入网关之间采用媒体网关控制协议(MGCP )、 或 H.248协议、 或 H.323 协议或起始会话协议(SIP )格式; 边缘中继网关与本地交换机之间采用 V5信令、 或 Ί号信令、 或 1号信令、 或 PRA信令协议格式。  8. The method according to claim 6 or 7, characterized in that: the edge relay gateway and the access gateway adopt a Media Gateway Control Protocol (MGCP), or an H.248 protocol, or an H.323 protocol or Initiation Session Protocol (SIP) format; the V5 signaling, or # Ί signaling, or # 1 signaling, or PRA signaling protocol format is used between the edge relay gateway and the local switch.
9、 如权利要求 6或 7所述的方法, 其特征在于: 所述接入网关为接入 媒体网关 (AMG )、 或综合接入设备(IAD )、 或其组合。  9. The method according to claim 6 or 7, characterized in that: the access gateway is an access media gateway (AMG), or an integrated access device (IAD), or a combination thereof.
10、 如权利要求 7所述的方法, 其特征在于: 步驟 B2中, 边缘中继网 关通过信令方式将经过自身协议转换的被叫用户号码上报本地交换机, 或 以媒体流经实时传输协议(RTP )通道将被叫用户号码上报本地交换机。  10. The method according to claim 7, characterized in that: in step B2, the edge relay gateway reports the called user number converted by its own protocol to the local switch through signaling, or passes the media through the real-time transmission protocol ( The RTP channel reports the called user number to the local switch.
11、 如权利要求 7或 10所述的方法, 其特征在于: 步骤 B2中所述边 缘中继网关向本地交换机上报被叫用户号码进一步包括:  11. The method according to claim 7 or 10, wherein: the edge relay gateway reporting the called user number to the local switch in step B2 further comprises:
B21、 本地交换机向主叫用户终端送回铃音; B22、 边缘中继网关将脉冲编码调制 (PCM ) 的回铃音转换为 IP包, 并通过实时传输协议(RTP )通道传送至接入网关; 或通过控制协议指示 接入网关发送回铃音; B21. The local switch sends a ringback tone to the calling user terminal. B22. The edge relay gateway converts the pulse code modulation (PCM) ringback tone into an IP packet and transmits it to the access gateway through a real-time transmission protocol (RTP) channel; or instructs the access gateway to send a ringback tone through a control protocol;
B23、 接入网关将所述 IP包转换为脉冲编码调制的回铃音下发给主叫 用户终端; 或者根据边缘中继网关的指示将回铃音下发给主叫用户终端。  B23. The access gateway converts the IP packet into a pulse code modulated ringback tone and sends it to the calling user terminal; or sends the ringback tone to the calling user terminal according to an instruction of the edge relay gateway.
12、 如权利要求 6所述的方法, 其特征在于: 该方法进一步包括: 当 主叫用户终端和被叫用户终端任一方终止业务时, 终止业务方对应的 RTP 通道关闭并释放相关资源。  12. The method according to claim 6, further comprising: when either the calling user terminal or the called user terminal terminates the service, the RTP channel corresponding to the terminating service party is closed and the related resources are released.
13、 如权利要求 6所述的方法, 其特征在于: 该方法进一步包括: 每 个用户在接入前通过接入网关完成在边缘中继网关和本地交换机中的状态 初始化及注册。  13. The method according to claim 6, further comprising: each user completing state initialization and registration in the edge relay gateway and the local switch through an access gateway before accessing.
14、 一种 IP网络中媒体流的处理方法, 其特征在于, 边缘中继网关收 到主叫用户终端发起的呼叫接入请求后, 执行以下步骤:  14. A method for processing a media stream in an IP network, wherein the edge relay gateway executes the following steps after receiving a call access request initiated by a calling user terminal:
1 )根据呼叫接入请求中的被叫用户信息, 判断被叫用户终端是否属于 该边缘中继网关;  1) judging whether the called user terminal belongs to the edge relay gateway according to the called user information in the call access request;
2 )如果被叫用户终端属于该边缘中继网关, 则以被叫用户终端对应的 IP地址及端口号作为媒体流主叫侧的对端地址, 并以主叫用户终端对应的 IP地址及端口号作为媒体流被叫侧的对端地址, 将主被叫之间的媒体流直 接相连。  2) If the called user terminal belongs to the edge relay gateway, use the IP address and port number corresponding to the called user terminal as the peer address on the calling side of the media stream, and use the IP address and port corresponding to the calling user terminal. The number is used as the peer address of the called side of the media stream, and directly connects the media stream between the calling and called parties.
15、 根据权利要求 14所述的方法, 其特征在于, 所述步骤 2 )还包括 以下步據:  15. The method according to claim 14, wherein the step 2) further comprises the following steps:
21 )先判断主被叫侧的接入网关是否已得到媒体流接收方的 RTP地址; 22 )如果已得到媒体流接收方的 RTP地址, 则边缘中继网关指示主被 叫侧的接入网关, 由其将媒体流主叫侧的对端地址改为被叫用户终端对应 的 IP地址及端口号, 并将媒体流被叫侧的对端地址改为主叫用户终端对应 的 IP地址及端口号, 将主被叫之间的媒体流直接相连, 结束当前流程; 如 果未得到媒体流接收方的 RTP地址, 则进入步骤 23 ); 21) First determine whether the access gateway of the calling and called sides has obtained the RTP address of the media stream receiver; 22) If the RTP address of the media stream receiving side has been obtained, the edge relay gateway instructs the access gateway of the calling and called side By changing the peer address on the calling side of the media stream to the IP address and port number corresponding to the called user terminal, and changing the peer address on the called side of the media stream to correspond to the calling user terminal The IP address and port number directly connect the media stream between the caller and the callee, and end the current process; if the RTP address of the media stream receiver is not obtained, proceed to step 23);
23 ) 边缘中继网关指示主被叫侧的接入网关, 由其将媒体流主叫侧的 对端地址设置为被叫用户终端对应的 IP地址及端口号, 并将某体流被叫侧 的对端地址设置为主叫用户终端对应的 IP地址及端口号,将主被叫之间的 媒体流直接相连。  23) The edge relay gateway instructs the access gateway on the calling and called sides, which sets the peer address on the calling side of the media stream to the IP address and port number corresponding to the called user terminal, and sets the called side of a media stream The peer address is set to the IP address and port number corresponding to the calling user terminal, and directly connects the media stream between the calling and called parties.
16、 根据权利要求 15所述的方法, 其特征在于, 所述步驟 22 ) 中, 先由所述边缘中继网关将其与主被叫用户终端所连接的接入媒体网关之间 的实时传输协议通道切断, 再控制主被叫用户终端所连接的接入网关修改 媒体流主被叫侧的对端地址。  16. The method according to claim 15, wherein in step 22), the edge relay gateway firstly transmits the real-time transmission between the edge relay gateway and the access media gateway to which the calling and called user terminals are connected. The protocol channel is cut off, and then the access gateway to which the calling and called user terminals are connected is modified to modify the peer address on the calling and called sides of the media stream.
17、 根据权利要求 14至 16任一项所述的方法, 其特征在于, 所述步 骤 2 ) 中将主被叫之间的媒体流直接相连之后, 该方法还包括: 判断是否 收到主叫或被叫用户终端挂机 /拍叉信号或异常信号, 如果收到, 则由所述 边缘中继网关控制主被叫用户终端所连接的接入网关, 将媒体流主叫侧和 被叫侧的对端地址都 改为所述边缘中继网关的地址。  17. The method according to any one of claims 14 to 16, characterized in that after the media stream between the calling party and the called party is directly connected in the step 2), the method further comprises: determining whether the calling party is received Or the called user terminal's on-hook / shooting signal or abnormal signal, if received, the edge relay gateway controls the access gateway to which the calling and called user terminal is connected, and the media stream on the calling side and the called side The peer address is changed to the address of the edge relay gateway.
18、 根据权利要求 14至 16任一项所述的方法, 其特征在于, 所述步 骤 1 )进一步包括: 所述边缘中继网关^ ^据所收到的呼叫接入请求中携带 的被叫用户号码, 查找自身用户信息数据库, 判断是否存在该被叫用户号 码, 如果存在, 则所述主被叫用户终端同属于所述的边缘中继网关; 如果 不存在, 则被叫用户终端不属于所述的边缘中继网关。  18. The method according to any one of claims 14 to 16, wherein the step 1) further comprises: the edge relay gateway ^ according to the called party carried in the received call access request. User number, searching its own user information database to determine whether the called user number exists, and if it exists, the calling and called user terminals both belong to the edge relay gateway; if not, the called user terminal does not belong to The edge relay gateway.
19、 根据权利要求 14至 16任一项所述的方法, 其特征在于, 所述主 叫用户终端和被叫用户终端与同一个接入网关相连, 或与不同的接入网关 相连。  19. The method according to any one of claims 14 to 16, wherein the calling user terminal and the called user terminal are connected to the same access gateway, or are connected to different access gateways.
20、 根据权利要求 14至 16任一项所述的方法, 其特征在于 3 所述接 入网关为接入媒体网关、 或综合接入设备、 或其组合。 20. The method of claim any one of claims 14 to 16, characterized in that said access gateway 3 Access Media Gateway, or integrated access devices, or combinations thereof.
PCT/CN2004/000185 2003-03-06 2004-03-08 Ip access system and method for performing voice service and media-stream process WO2004079994A1 (en)

Applications Claiming Priority (4)

Application Number Priority Date Filing Date Title
CNB031069509A CN1288884C (en) 2003-03-06 2003-03-06 IP access method and system of phonetic service
CN03106950.9 2003-03-06
CN03120395.7 2003-03-18
CNB031203957A CN1306779C (en) 2003-03-18 2003-03-18 Medium flow processing method in IP network

Publications (1)

Publication Number Publication Date
WO2004079994A1 true WO2004079994A1 (en) 2004-09-16

Family

ID=32963153

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2004/000185 WO2004079994A1 (en) 2003-03-06 2004-03-08 Ip access system and method for performing voice service and media-stream process

Country Status (1)

Country Link
WO (1) WO2004079994A1 (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2002073896A1 (en) * 2001-03-10 2002-09-19 Samsung Electronics Co., Ltd. Method of providing packet voice call service in wireless communication network and network architecture therefor
WO2002075475A2 (en) * 2001-03-20 2002-09-26 T.D. Soft Communications Ltd. Method and system for communicating voice over ip access networks
WO2003005741A2 (en) * 2001-07-06 2003-01-16 General Instrument Corporation Methods, apparatus, and systems for accessing mobile and voice over ip telephone networks with a mobile handset

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2002073896A1 (en) * 2001-03-10 2002-09-19 Samsung Electronics Co., Ltd. Method of providing packet voice call service in wireless communication network and network architecture therefor
WO2002075475A2 (en) * 2001-03-20 2002-09-26 T.D. Soft Communications Ltd. Method and system for communicating voice over ip access networks
WO2003005741A2 (en) * 2001-07-06 2003-01-16 General Instrument Corporation Methods, apparatus, and systems for accessing mobile and voice over ip telephone networks with a mobile handset

Similar Documents

Publication Publication Date Title
JP4901197B2 (en) Soft switch call control method and soft switch device using the method
CN100372304C (en) Method for implementing WIMAX dynamic QQS based on perceptionservice of soft exchange apparatus
US8625578B2 (en) Access independent common architecture for real-time communications services for networking environments
RU2299528C2 (en) Method and system for providing inter-network exchange of telecommunication services for broadband networks of various types
EP2114049B1 (en) Video interworking gateway, system and method for realizing video call service
US7460520B2 (en) Apparatus and method for using multiple call controllers of voice-band calls
JP2003324472A (en) VoIP NETWORK SYSTEM
KR20050054002A (en) Apparatus and method for testing a megaco protocol
WO2008064580A1 (en) The method, system and application server to avoid the cross-talk of color ringing back tone
CN1288884C (en) IP access method and system of phonetic service
WO2007071134A1 (en) A media gateway and the ngn communication system using it
WO2007101383A1 (en) Method and apparatus to implement media gateway internal connection
JP2004289486A (en) Method and system for setting communication path
WO2007073666A1 (en) Method and apparatus for counting parameter to adjust value
CN101350742B (en) Method and system for implementing voice listen of next generation network
CN101273609A (en) Telephone call processing method and apparatus
US20100157993A1 (en) Access gateway and method of operation by the same
CN100527740C (en) Method for switching services
CN100373901C (en) Port dynamic binding module for media gateway and dynamic binding method thereof
WO2005057850A1 (en) A media gateway system
WO2004079994A1 (en) Ip access system and method for performing voice service and media-stream process
US20070070981A1 (en) Method and apparatus for dynamically establishing links between IP private branch exchanges
WO2011069385A1 (en) Method and apparatus for dynamically selecting service bearer network
CN101394445B (en) System and method for implementing encoding and decoding conversion function
WO2006125356A1 (en) A system and method for isdn access in the next generation network (ngn)

Legal Events

Date Code Title Description
AK Designated states

Kind code of ref document: A1

Designated state(s): AE AG AL AM AT AU AZ BA BB BG BR BW BY BZ CA CH CN CO CR CU CZ DE DK DM DZ EC EE EG ES FI GB GD GE GH GM HR HU ID IL IN IS JP KE KG KP KR KZ LC LK LR LS LT LU LV MA MD MG MK MN MW MX MZ NA NI NO NZ OM PG PH PL PT RO RU SC SD SE SG SK SL SY TJ TM TN TR TT TZ UA UG US UZ VC VN YU ZA ZM ZW

AL Designated countries for regional patents

Kind code of ref document: A1

Designated state(s): BW GH GM KE LS MW MZ SD SL SZ TZ UG ZM ZW AM AZ BY KG KZ MD RU TJ TM AT BE BG CH CY CZ DE DK EE ES FI FR GB GR HU IE IT LU MC NL PL PT RO SE SI SK TR BF BJ CF CG CI CM GA GN GQ GW ML MR NE SN TD TG

121 Ep: the epo has been informed by wipo that ep was designated in this application
122 Ep: pct application non-entry in european phase