Firewall-penetrating is set up the VOIP method for communicating
One, technical field
The invention belongs to the telecommunication technology field, particularly a kind of firewall-penetrating is set up VOIP (VoiceOver IP IP phone) method for communicating.
Two, background technology
The realization principle of VOIP is earlier the phone speech to be become digital signal through coding with compressing and converting, is sent to receiving terminal by the ICP/IP protocol network after packing, and receiving terminal is reduced to telephone speech signal to audio digital signals reorganization, decompress(ion), decoding.
The problem that VOIP often occurs in actual applications is when the VOIP gateway is placed on fire compartment wall inside, and how outside VOIP gateway device sets up control signalling path and media channel with the VOIP gateway of inside, carries out VOIP communication then.
The key of problem is that in actual applications the VOIP gateway of fire compartment wall inside all adopts private network IP, and outside VOIP gateway can only be seen the fire compartment wall with public network IP address, therefore produces two problems, is described below:
1) foundation of control channel
Because the VOIP gateway of fire compartment wall inside adopts private network IP, when outside VOIP gateway is done caller, need transmit control message to the called VOIP gateway of fire compartment wall inside, message directly can't be sent to called VOIP gateway but be actually, thereby can't set up the VOIP control channel.
2) foundation of media channel
The another one problem is relevant information (the IP address of VOIP media channel, port, voice compression algorithm etc.) consult to obtain by control messages, the IP address that inner VOIP gateway is filled in the local media passage in fact also is private network IP, and so outside VOIP gateway and inner VOIP gateway also can't be set up media channel.
Also can not solve firewall-penetrating at present, make outside VOIP gateway device and inner VOIP gateway set up the technical solution of VOIP communication issue, the difficulty that this explanation solves this class problem is very big, also illustrate simultaneously under VOIP application main trend more and more widely, provide firewall-penetrating to set up the urgency of the technical solution of VOIP communication.
Three, summary of the invention
The purpose of this invention is to provide a kind of firewall-penetrating and set up the VOIP method for communicating, for setting up an indirect VOIP control channel between the calling and called VOIP gateway, thereby realize that inside and outside VOIP gateway control Signalling exchange, further set up media channel, carry out VOIP communication.
Concrete technic relization scheme of the present invention is: the regional regional center at IP telephony network is provided with a call server with public network IP address, the corresponding VOIP protocol stack of call server support, for example H.323, H.248, MGCP, call server is as VOIP control signaling retransmission center, be main, set up an indirect VOIP control channel between the called VOIP gateway, all VOIP gateways in the call server compass of competency are after powering up startup, need set up a TCP with call server and be connected (this TCP connects hereinafter referred to as survival TCP and connects), and regularly report alive message to call server.In addition, the VOIP gateway is set to mode back-to-back, that is to say the IP address that called gateway ip address all is set to call server.The VOIP gateway Shi Douhui that makes a call issues call server with control messages like this.The relevant information of all VOIP gateways comprises that sign, IP address, the VOIP gateway of VOIP gateway is with the user's telephone number scope in the compass of competency of call server configuration simultaneously.
When the caller gateway will be called out, earlier and call server sets up that a new TCP is connected and to call server transmission Setup message.Call server parses the called gateway at called number place, then by being connected to called gateway forwards Setup message with survival TCP that called gateway has been set up.Called gateway connects at survival TCP receives Setup message, and knowing has new calling to produce, just oppositely set up a new TCP and be connected with call server, and in this TCP connection to subsequent control message such as call server transmission Call Proceeding.Same, call server is transmitted to the caller gateway with the control messages of receiving.Like this, call server just is main, and called gateway has been set up an indirect control channel.
After control channel is set up, the calling and called gateway is consulted media channel, call server is configured to the call server local ip address with called gateway ip address in giving the media channel negotiation result of caller gateway forwards, the port that the control channel TCP that port arrangement becomes this road of call server and caller gateway to call out is connected; Call server is configured to the call server local ip address with the caller gateway ip address in giving the media channel negotiation result of called gateway forwards, the port that the control channel TCP that port arrangement becomes this road of call server and called gateway to call out is connected.Like this calling and called gateway with medium voice IP bag all by and call server between control channel TCP connect and send to call server, call server is transmitted to corresponding gateway with the medium voice IP bag of receiving again then.
In fact pass through call server, for one of the calling and called gateway call out indirect foundation a TCP connect, the mutual control messages of calling and called gateway in this TCP connection, and medium voice IP bag also is encapsulated in the TCP bag, in this TCP connections, transmit.Utilize call server to set up VOIP communication for calling and called gateway penetration fire compartment wall.
In the practical application of VOIP, integrated access equipment IAD (Integrated Access Device) is the VOIP gateway of low capacity, usually support 2-16 road VOIP passage, and the normally enterprise customer of use low capacity integrated access equipment, the enterprise customer has the local area network (LAN) of oneself mostly, fire compartment wall is placed in outlet at local area network (LAN), and the internal unit of local area network (LAN) comprises that integrated access equipment all adopts private network IP.
Intercommunication between the integrated access equipment of a large amount of like this local area network (LAN) inside is exactly very difficult thing, control protocol according to VOIP, be to carry out addressing by the IP address of integrated access equipment, but integrated access equipment uses the words of private network IP, equipment for the local area network (LAN) outside is sightless, therefore the integrated access equipment in LAN can't directly carry out VOIP communication, has so also limited the promotion and application of VOIP technology.
Adopt firewall-penetrating of the present invention to set up the VOIP method for communicating, can make the normal two-way communication of integrated access equipment in LAN, integrated access equipment both can be breathed out like this, but also incoming call, solved this technical barrier of firewall-penetrating effectively, for the wider application of VOIP provides new technical solution.
Four, description of drawings
Fig. 1 is an IP Access Network networking schematic diagram;
Fig. 2 carries out the flow chart of VOIP communication for firewall-penetrating.
Five, embodiment
With the networking of IP Access Network is that example illustrates the specific embodiment of the present invention, and relatively typical application of the present invention is to utilize correlation technique provided by the invention to solve the problem of the firewall-penetrating that exists in the networking of IP Access Network.The IP Access Network is based on the IP network framework, can comprehensively inserts speech data and multimedia service, speech business is finished the conversion of circuit switching to packet switching at the integrated access equipment access gateway node, carries on the IP access network by packet mode again and realizes that at local side OLT (Optical LineTerminal optical line terminal) speech inserts public switched telephone network (PSTN) PSTN (Public switched telephone network) by the V5 interface again from the conversion that is grouped into TDM (Time DivisionMultiplexing time division multiplexing).
Because adopt the VOIP technology, there is the integrated access equipment problem how firewall-penetrating is communicated by letter with local side OLT that adopts private network IP equally in the IP Access Network, in practical application is provided with, can realize the function of call server at terminal OLT device, be that OLT adopts public network IP, the integrated access equipment in the OLT compass of competency all adopts private network IP.
IP Access Network networking schematic diagram is referring to accompanying drawing 1.Wherein the IP address of integrated access equipment 1 is IP1, the IP address of the fire compartment wall A of integrated access equipment 1 place local area network (LAN) is IP2, the IP address of integrated access equipment 2 is IP3, and the IP address of the fire compartment wall B of integrated access equipment 2 place local area network (LAN)s is IP4, and the IP address of call server is IP5.Wherein IP1, IP3 are private network IP address, and IP2, IP4, IP5 are public network IP address.
The solution of two subject matters being brought with regard to private network IP is described below, referring to accompanying drawing
2 illustrate that firewall-penetrating sets up the process of VOIP communication:
1) foundation of control channel
When call out producing, suppose that integrated access equipment 1 will call out certain user of integrated access equipment 2, be convenient the description, suppose that integrated access equipment 1, integrated access equipment 2 all are gateways H.323, the steps A that control channel is set up is as follows:
A1 integrated access equipment 1 with set up TCP with call server respectively after integrated access equipment 2 powers up startup and be connected, be numbered TCP1 and TCP2;
A2 integrated access equipment 1 user will call out integrated access equipment 2 users, integrated access equipment 1 is at first set up a TCP and is connected (being numbered TCP3) to call server transmission Setup message, call server is inquired about the configuration of local VOIP gateway according to the called number in the Setup message, the relevant information that obtains integrated access equipment 2 is not (if find, illustrate that the called subscriber is not in local call server compass of competency, can not do description in this article by the inquiry of higher level's call server);
The A3 call server connects to integrated access equipment 2 by the TCP2 that has set up transmits Setup message, notices that call server all will replace to source IP address in the message IP address of call server oneself when transmitting message;
A4 integrated access equipment 2 receives that it is that new calling arrives that the back is judged, the TCP that sets up again between and the call server connects (being numbered TCP4), and subsequent control message such as Call Proceeding are transmitted on TCP4;
After the A5 call server is received the subsequent control message of integrated access equipment 2, transmit message to integrated access equipment 1, so just between integrated access equipment 1 and integrated access equipment 2, set up an indirect control channel by TCP3;
Need write down a pair of TCP link information that call out on this road at call server simultaneously, it is the relevant information such as source IP address, source port of TCP3 and TCP4, in fact because the process firewall network address is changed the conversion of NAT (Network Address Translation), these information are actually the IP address and the port of fire compartment wall.
So far, set up an indirect control by call server between integrated access equipment 1 and the integrated access equipment 2, integrated access equipment 1, integrated access equipment 2 are controlled the mutual of signaling by this control channel.
2) foundation of media channel
After control channel was set up, the calling and called gateway was consulted the relevant information of media channel, so that carry out media communication, the step B that media channel is set up is as follows:
The B1 call server is configured to call server local ip address IP5 with called gateway ip address in giving the media channel negotiation result of integrated access equipment 1, port arrangement is the port that is connected with this TCP of TCP3 of integrated access equipment 1;
The B2 call server is configured to call server local ip address IP5 with the caller gateway ip address in giving the media channel negotiation result of integrated access equipment 2, port arrangement is the port that is connected with this TCP of TCP4 of integrated access equipment 2.Integrated access equipment 1, integrated access equipment 2 all will send medium voice IP bag to call server like this;
B 3 integrated access equipment 1 are realtime transmission protocol RTP (Real-time Transport Protocol) voice IP bag with pulse code modulation PCM (Pulse Code Modulation) voice by Digital Signal Processing DSP (Digital Signal Processor) compress speech, by TCP3 the RTP bag is sent to call server with call server foundation, that is to say, the TCP control channel that utilizes integrated access equipment 1 and call server to set up transmits the realtime transmission protocol RTP voice packet, and TCP connects and is equivalent to a tunnel;
After the B4 call server is received RTP bag, source IP address replaced with local ip address IP5 after, the realtime transmission protocol RTP bag is issued integrated access equipment 2 by TCP4;
After B5 integrated access equipment 2 is received the RTP bag, decompression is reduced to the PCM voice packet, same, it also is similar process to integrated access equipment 1 that integrated access equipment 2 sends the realtime transmission protocol RTP bag: integrated access equipment 2 is RTP voice IP bag with the PCM voice by Digital Signal Processing DSP compress speech, by the TCP4 with call server foundation the realtime transmission protocol RTP bag is sent to call server;
After the B6 call server is received the realtime transmission protocol RTP bag, source IP address replaced with local ip address IP5 after, the RTP bag is issued integrated access equipment 1 by TCP3;
So just set up media channel by call server between integrated access equipment 1 and integrated access equipment 2, the user can carry out the VOIP conversation.After user's on-hook, discharge this road accordingly and call out corresponding TCP connection, i.e. TCP3 and TCP4.
The present invention's " firewall-penetrating is set up VOIP communication " technology can be applied to other the firewall-penetrating that needs widely and set up in the application of VOIP communication.For example in the VOIP network that H.323 gateway is formed, among the next generation network NGN that media gateway and Media Gateway Controller are formed, the IP terminal (as computer) between the different local area network (LAN)s is carried out VOIP communication etc.
For those skilled in the art; after having understood content of the present invention and principle; can be under the situation that does not deviate from the spirit and scope of the present invention; carry out the processing method of VOIP communication according to firewall-penetrating of the present invention and carry out multiple correction and distortion, but these based on correction of the present invention and distortion still within claim protection range of the present invention.