Summary of the invention
In view of the above problems, it proposes the embodiment of the present invention and overcomes the above problem or at least partly in order to provide one kind
A kind of method and apparatus of terminal communication to solve the above problems.
To solve the above-mentioned problems, the embodiment of the invention discloses a kind of method of terminal communication, the method is applied to
Depending in networking, which comprises
Receive the calling service request instruction that source terminal is directed to target terminal;
By the calling service request instruction, passed according to the target terminal downstream communications link configured to the target terminal
It send to the target terminal;
Receive the calling service response instruction that the target terminal is fed back based on the calling service request instruction;
The calling service is responded and is instructed, is sent to according to the source terminal downstream communications link configured to the source terminal
The source terminal;
Receive calling service connection confirmation instruction of the source terminal based on calling service response instruction feedback;
The calling service is connected into confirmation instruction, according to the target terminal downlink communication chain configured to the target terminal
Road is sent to the target terminal.
Preferably, the terminal includes view networked terminals and ethernet terminal, the view networking include regard networked server,
Node server, access switch, the view networked terminals pass through access switch or view networked server and node serve
Device is connected, and the ethernet terminal is connected by access switch or couple in router with node server.
Preferably, when the target terminal accesses view networking, the node server is that the target terminal is assigned
Target terminal mark, obtains destination terminal addresses and port information when node server connects, and establish target terminal mark and
The mapping relations of destination terminal addresses are simultaneously stored in content-address mapping table, and the calling service request instruction includes source end
Hold address and target terminal mark;It is described by the calling service request instruction, according to the target configured to the target terminal
The step of user equipment downlink communication link is sent to the target terminal include:
Destination terminal addresses are extracted in content-address mapping table according to target terminal mark;
According to the destination terminal addresses, target terminal downstream communications link, the target terminal downlink communication chain are obtained
Road includes target terminal downstream communication ports;
By the calling service request instruction, it is whole that the target is sent to by the target terminal downstream communication ports
End.
Preferably, when the source terminal accesses view networking and networks, the node server is that the source terminal is assigned
Source terminal mark, and distribution source terminal address, and establish the mapping relations of source terminal mark and source terminal address and be stored in
In content-address mapping table, calling service response instruction includes that destination terminal addresses and source terminal identify, it is described will be described
Calling service response instruction is sent to according to the source terminal downstream communications link that the node server is source terminal configuration
The step of source terminal includes:
According to source terminal mark extraction source terminal address in content-address mapping table;
According to the source terminal address, source terminal downstream communications link is obtained, the source terminal downstream communications link includes
Source terminal downstream communication ports;
The calling service is responded and is instructed, is sent to the source terminal by the source terminal downstream communication ports.
Preferably, the method also includes:
When the unlatching audio, video data service order for receiving the source terminal, according to the audio, video data service order
Open audio/video encoding/decoding function;
After opening audio/video encoding/decoding function, the meeting audio, video data that the source terminal is sent is received;
The meeting audio, video data is converted, the meeting audio, video data after being converted;
By the meeting audio, video data after the conversion, the mesh is sent to according to the target terminal downstream communications link
Mark terminal.
Preferably, the method also includes:
The hang-up request instruction that source terminal is sent is received to instruct with end-sound video data service;
It is instructed according to the end-sound video data service and closes encoding and decoding audio and video data function;
The hang-up request is instructed, is sent to according to the target terminal downstream communications link configured to the target terminal
The target terminal;
Receive hang-up request response message of the target terminal based on the hang-up request instruction feedback.
On the other hand, the present invention provides a kind of device of terminal communication, described device is applied in view networking, the dress
It sets and includes:
Calling service request instruction receiving module refers to for receiving source terminal for the calling service request of target terminal
It enables;
Calling service request instruction sending module is used for the calling service request instruction, according to whole to the target
The target terminal downstream communications link of end configuration is sent to the target terminal;
Calling service responds command reception module, is based on the calling service request instruction for receiving the target terminal
The calling service of feedback responds instruction;
Calling service responds instruction sending module, instructs for responding the calling service, according to the source terminal
The source terminal downstream communications link of configuration is sent to the source terminal;
Calling service connection confirmation command reception module, is referred to for receiving the source terminal based on calling service response
Enable the calling service connection confirmation instruction of feedback;
Calling service connection confirmation instruction sending module, for the calling service to be connected confirmation instruction, according to institute
The target terminal downstream communications link for stating target terminal configuration is sent to the target terminal.
Preferably, the terminal includes regarding networked terminals and ethernet terminal, described depending on networking including node server, connecing
Enter interchanger, for the view networked terminals by access switch and node server access view networking, the ethernet terminal is logical
Couple in router is crossed to be connected with node server.
Preferably, described device further include:
Audio, video data service order receiving module, for when the unlatching audio, video data business for receiving the source terminal
Instruction opens audio/video encoding/decoding function according to the audio, video data service order;
Meeting audio, video data receiving module, for after opening audio/video encoding/decoding function, receiving the source terminal hair
The meeting audio, video data sent;
Conversion module, for being converted to the meeting audio, video data, the meeting audio, video data after being converted;
Meeting audio, video data sending module, for by the meeting audio, video data after the conversion, according to the target
User equipment downlink communication link is sent to the target terminal.
Preferably, described device further include:
Hang-up request command reception module, for receiving hang-up request instruction and the end-sound video counts of source terminal transmission
According to service order;
Encoding and decoding audio and video data function closedown module closes sound for instructing according to the end-sound video data service
Video data codec functions;
Hang-up request instruction sending module, for instructing the hang-up request, according to what is configured to the target terminal
Target terminal downstream communications link is sent to the target terminal;
Hang-up request response message receiving module is based on the hang-up request instruction feedback for receiving the target terminal
Hang-up request response message.
The embodiment of the present invention includes following advantages:
The characteristic of application view networking of the embodiment of the present invention is requested when receiving calling service of the source terminal for target terminal
When instruction, by calling service request instruction, target is sent to according to the target terminal downstream communications link configured to target terminal
Terminal, when receiving the calling service response instruction that target terminal is fed back based on calling service request instruction, by calling service
Response instruction is sent to source terminal according to the source terminal downstream communications link configured to source terminal, receives source terminal and is based on calling
The calling service connection confirmation instruction of service response instruction feedback, connects confirmation instruction for calling service, according to target terminal
The target terminal downstream communications link of configuration is sent to target terminal.Further, source terminal can be view networked terminals, target
Terminal can be ethernet terminal, it is thereby achieved that interconnecting depending on networked terminals and ethernet terminal.
Further, after establishing connection depending on networked terminals and ethernet terminal, can also be networked audio data industry by view
Business instruction and video data service instruction carry out the mutual conversion and transmission of meeting audio, video data, realize view networked terminals
The conference communication between ethernet terminal.
Specific embodiment
In order to make the foregoing objectives, features and advantages of the present invention clearer and more comprehensible, with reference to the accompanying drawing and specific real
Applying mode, the present invention is described in further detail.
It is the important milestone of network Development depending on networking, is a real-time network, can be realized HD video real-time Transmission,
Push numerous Ethernet applications to HD video, high definition is face-to-face.
Real-time high-definition video switching technology is used depending on networking, it can be such as high in a network platform by required service
Clear video conference, Intellectualized monitoring analysis, emergency command, digital broadcast television, delay TV, the Web-based instruction, shows video monitoring
Field live streaming, VOD program request, TV Mail, individual character records (PVR), Intranet (manages) channel by oneself, intelligent video Broadcast Control, information publication
All be incorporated into a system platform etc. services such as tens of kinds of videos, voice, picture, text, communication, data, by TV or
Computer realizes that high-definition quality video plays.
Embodiment in order to enable those skilled in the art to better understand the present invention is introduced to depending on networking below:
Networking depending on networking is as described below:
It is a kind of central controlled network structure depending on networking, which can be Tree Network, Star network, ring network etc. class
Type, but centralized control node is needed to control whole network in network on this basis.
As shown in Figure 1, being divided into access net and Metropolitan Area Network (MAN) two parts depending on networking.
The equipment of access mesh portions can be mainly divided into 3 classes: node server, access switch, terminal (including various machines
Top box, encoding board, memory etc.).Node server is connected with access switch, and access switch can be with multiple terminal phases
Even, and it can connect Ethernet.
Wherein, node server is the node that centralized control functions are played in access net, can control access switch and terminal.
Node server can directly be connected with access switch, can also directly be connected with terminal.
Similar, the equipment of metropolitan area mesh portions can also be divided into 3 classes: metropolitan area server, node switch, node serve
Device.Metropolitan area server is connected with node switch, and node switch can be connected with multiple node servers.
Wherein, node server is the node server for accessing mesh portions, i.e. node server had both belonged to access wet end
Point, and belong to metropolitan area mesh portions.
Metropolitan area server is the node that centralized control functions are played in Metropolitan Area Network (MAN), can control node switch and node serve
Device.Metropolitan area server can be directly connected to node switch, can also be directly connected to node server.
It can be seen that be entirely a kind of central controlled network structure of layering depending on networking network, and node server and metropolitan area
The network controlled under server can be the various structures such as tree-shaped, star-like, cyclic annular.
Visually claim, access mesh portions can form unified video platform (part in virtual coil), and multiple unified videos are flat
Platform can form view networking;Each unified video platform can be interconnected by metropolitan area and wide area depending on networking.
Classify depending on networked devices
1.1 embodiment of the present invention can be mainly divided into 3 classes: server depending on the equipment in networking, interchanger (including ether
Net gateway), terminal (including various set-top boxes, encoding board, memory etc.).Depending on networking can be divided on the whole Metropolitan Area Network (MAN) (or
National net, World Wide Web etc.) and access net.
1.2 equipment for wherein accessing mesh portions can be mainly divided into 3 classes: node server, access switch (including ether
Net gateway), terminal (including various set-top boxes, encoding board, memory etc.).
The specific hardware structure of each access network equipment are as follows:
Node server:
As shown in Fig. 2, mainly including Network Interface Module 201, switching engine module 202, CPU module 203, disk array
Module 204;
Wherein, Network Interface Module 201, the Bao Jun that CPU module 203, disk array module 204 are come in enter switching engine
Module 202;Switching engine module 202 look into the operation of address table 205 to the packet come in, to obtain the navigation information of packet;
And the packet is stored according to the navigation information of packet the queue of corresponding pack buffer 206;If the queue of pack buffer 206 is close
It is full, then it abandons;All pack buffer queues of 202 poll of switching engine mould, are forwarded: 1) port if meeting the following conditions
It is less than to send caching;2) the queue package counting facility is greater than zero.Disk array module 204 mainly realizes the control to hard disk, including
The operation such as initialization, read-write to hard disk;CPU module 203 is mainly responsible between access switch, terminal (not shown)
Protocol processes, to address table 205 (including descending protocol packet address table, uplink protocol package address table, data packet addressed table)
Configuration, and, the configuration to disk array module 204.
Access switch:
As shown in figure 3, mainly including Network Interface Module (downstream network interface module 301, uplink network interface module
302), switching engine module 303 and CPU module 304;
Wherein, the packet (upstream data) that downstream network interface module 301 is come in enters packet detection module 305;Packet detection mould
Whether mesh way address (DA), source address (SA), type of data packet and the packet length of the detection packet of block 305 meet the requirements, if met,
It then distributes corresponding flow identifier (stream-id), and enters switching engine module 303, otherwise abandon;Uplink network interface mould
The packet (downlink data) that block 302 is come in enters switching engine module 303;The data packet that CPU module 304 is come in enters switching engine
Module 303;Switching engine module 303 look into the operation of address table 306 to the packet come in, to obtain the navigation information of packet;
If the packet into switching engine module 303 is that downstream network interface is gone toward uplink network interface, in conjunction with flow identifier
(stream-id) packet is stored in the queue of corresponding pack buffer 307;If the queue of the pack buffer 307 is close full,
It abandons;If the packet into switching engine module 303 is not that downstream network interface is gone toward uplink network interface, according to packet
Navigation information is stored in the data packet queue of corresponding pack buffer 307;If the queue of the pack buffer 307 is close full,
Then abandon.
All pack buffer queues of 303 poll of switching engine module, are divided to two kinds of situations in embodiments of the present invention:
If the queue is that downstream network interface is gone toward uplink network interface, meets the following conditions and be forwarded: 1)
It is less than that the port sends caching;2) the queue package counting facility is greater than zero;3) token that rate control module generates is obtained;
If the queue is not that downstream network interface is gone toward uplink network interface, meets the following conditions and is forwarded:
1) it is less than to send caching for the port;2) the queue package counting facility is greater than zero.
Rate control module 308 is configured by CPU module 304, to all downlink networks in programmable interval
Interface generates token toward the pack buffer queue that uplink network interface is gone, to control the code rate of forwarded upstream.
CPU module 304 is mainly responsible for the protocol processes between node server, the configuration to address table 306, and,
Configuration to rate control module 308.
Terminal:
It mainly include Network Interface Module, Service Processing Module and CPU module;For example, set-top box mainly connects including network
Mouth mold block, video/audio encoding and decoding engine modules, CPU module;Encoding board mainly includes Network Interface Module, video encoding engine
Module, CPU module;Memory mainly includes Network Interface Module, CPU module and disk array module.
The equipment of 1.3 metropolitan area mesh portions can be mainly divided into 2 classes: node server, node switch, metropolitan area server.
Wherein, node switch mainly includes Network Interface Module, switching engine module and CPU module;Metropolitan area server mainly includes
Network Interface Module, switching engine module and CPU module are constituted.
2, networking data package definition is regarded
2.1 access network data package definitions
Access net data packet mainly include following sections: destination address (DA), source address (SA), reserve bytes,
payload(PDU)、CRC。
As shown in the table, the data packet for accessing net mainly includes following sections:
DA |
SA |
Reserved |
Payload |
CRC |
Wherein:
Destination address (DA) is made of 8 bytes (byte), and first character section indicates type (such as the various associations of data packet
Discuss packet, multicast packet, unicast packet etc.), be up to 256 kinds of possibility, the second byte to the 6th byte is metropolitan area net address,
Seven, the 8th bytes are access net address;
Source address (SA) is also to be made of 8 bytes (byte), is defined identical as destination address (DA);
Reserve bytes are made of 2 bytes;
The part payload has different length according to the type of different datagrams, is if it is various protocol packages
64 bytes are 32+1024=1056 bytes if it is single group unicast packets words, are not restricted to above 2 kinds certainly;
CRC is made of 4 bytes, and calculation method follows the Ethernet CRC algorithm of standard.
2.2 Metropolitan Area Network (MAN) packet definitions
The topology of Metropolitan Area Network (MAN) is pattern, may there is 2 kinds, connection even of more than two kinds, i.e. node switching between two equipment
It can all can exceed that 2 kinds between machine and node server, node switch and node switch, node switch and node server
Connection.But the metropolitan area net address of metropolitan area network equipment is uniquely, to close to accurately describe the connection between metropolitan area network equipment
System, introduces parameter in embodiments of the present invention: label, uniquely to describe a metropolitan area network equipment.
(Multi-Protocol Label Switch, multiprotocol label are handed over by the definition of label and MPLS in this specification
Change) label definition it is similar, it is assumed that between equipment A and equipment B there are two connection, then data packet from equipment A to equipment B just
There are 2 labels, data packet also there are 2 labels from equipment B to equipment A.Label is divided into label, outgoing label, it is assumed that data packet enters
The label (entering label) of equipment A is 0x0000, and the label (outgoing label) when this data packet leaves equipment A may reform into
0x0001.The networking process of Metropolitan Area Network (MAN) is to enter network process under centralized control, also means that address distribution, the label of Metropolitan Area Network (MAN)
Distribution be all to be dominated by metropolitan area server, node switch, node server be all passively execute, this point with
The label distribution of MPLS is different, and the distribution of the label of MPLS is the result that interchanger, server are negotiated mutually.
As shown in the table, the data packet of Metropolitan Area Network (MAN) mainly includes following sections:
DA |
SA |
Reserved |
Label |
Payload |
CRC |
That is destination address (DA), source address (SA), reserve bytes (Reserved), label, payload (PDU), CRC.Its
In, the format of label, which can refer to, such as gives a definition: label is 32bit, wherein high 16bit retains, only with low 16bit, its position
Set is between the reserve bytes and payload of data packet.
Based on the above-mentioned characteristic of view networking, one of the core concepts of the embodiments of the present invention is proposed, it then follows regard the association of networking
View, the target terminal being attached thereto by source terminal (depending on networked terminals or ethernet terminal) requesting node server call (with
Too network termination or view networked terminals), node server receives after calling service request instruction by conversion, is sent to target
Terminal and the calling service request response instruction for receiving target terminal, receive the calling service connection confirmation instruction of source terminal, will
Calling service connection confirmation instruction, is sent to target terminal, the calling connection of source terminal and target terminal, source terminal is established with this
It can be carried out the transmission of meeting audio, video data with target terminal, realize the video conference industry between source terminal and target terminal
Business.
Referring to Fig. 4, a kind of step flow chart of the embodiment of the method for terminal communication of the invention is shown, this method can be with
Applied in view networking, it can specifically include following steps:
Step 401, the calling service request instruction that source terminal is directed to target terminal is received.
In the concrete realization, source terminal can be view networked terminals, and target terminal can be the networking of ethernet terminal view eventually
End can be set-top box (SetTopBox, STB), commonly referred to as box on set-top box or machine, be a connection television set and external letter
The equipment in number source, the digital signal of compression can be changed into television content by it, and be shown on a television set.
In general, set-top box can connect camera and microphone, it is more for acquiring video data and audio data etc.
Media data also can connect television set, for multi-medium datas such as playing video data and audio datas.
Ethernet terminal can be PC, VOIP videophone, VOIP voice frequency telephone or other soft electricity of standard SIP
Words etc..
In the application scenarios such as video conference, source terminal and target terminal outside source each other, i.e. source terminal acquisition the
One multi-medium data is simultaneously sent to target terminal, and target terminal plays first multi-medium data, meanwhile, target terminal acquisition the
Two multi-medium datas are simultaneously sent to source terminal, and source terminal plays second multi-medium data.
Due to the communication between terminal be it is lasting, the first multi-medium data of source terminal acquisition, target terminal adopts
Second multi-medium data of collection is lasting.
In practical applications, user can be by some operations in menu (gtml) file, for example dial target end
End mark, target terminal identify the service number that can be target terminal, and triggering source terminal is directed to and target terminal calling service
Request instruction is sent to node server, with requesting node server call target terminal.
In view networking, source terminal can be view networked terminals, can be generated and be called by 8e01 agreement depending on networked terminals
Request instructions are sent to the view networked server being attached thereto, and generate calling service according to 8e02 agreement depending on networked server
Request instruction is sent to node server, and relative to view networked server, node server can be a terminal, 8e02 association
The specification of view can be as shown in the table:
In the embodiment of the present invention, service parameter can be with are as follows:
#define SERVICE_TYPE_TELEPHONE_DIRECT 0x8005, i.e. application dial videophone.
Step 402, logical according to the target terminal downlink configured to the target terminal by the calling service request instruction
Letter link is sent to the target terminal.
In this practical application, networking is regarded as the network with centralized control functions, including main control server and undernet
Equipment, which includes terminal, and one of the core idea depending on networking is, by notifying to exchange by main control server
Equipment is directed to when time downstream communications link of service matches table, and the table for being then based on the configuration carries out the transmission of data packet.
That is, including: depending on the communication means in networking
Main control server configuration is when time downstream communications link of service;
Work as time data packet of service for what source terminal was sent, is sent to target terminal (such as according to the downstream communications link
Ethernet terminal).
In embodiments of the present invention, it includes: notice when the downlink of secondary service is logical that time downstream communications link of service is worked as in configuration
Believe that switching equipment involved in link matches table;
It furthermore, include: the configured table of inquiry according to downstream communications link transmission, switching equipment is received to institute
Data packet is transmitted by corresponding port, and therefore, the calling service request instruction is configured according to the target terminal
Target terminal downstream communications link the step of being sent to the target terminal include following sub-step:
Sub-step S11 extracts destination terminal addresses in content-address mapping table according to target terminal mark;
Sub-step S12 obtains target terminal downstream communications link, the target terminal according to the destination terminal addresses
Downstream communications link includes target terminal downstream communication ports;
The calling service request instruction is sent to institute by the target terminal downstream communication ports by sub-step S13
State target terminal.
In the embodiment of the present invention, when target terminal accesses view networking, node server is that target terminal distribution target is whole
End mark and password, node server available destination terminal addresses and port information when connecting, while establishing has target whole
End mark and destination terminal addresses mapping relations simultaneously is stored in content-address mapping table, when receive source terminal initiation
It include service type information, service content information in calling service request instruction when calling service request instruction;Wherein, it services
It include that target terminal identifies in content information;It can be identified in content-address mapping table according to target terminal, it is whole to extract target
Address is held, according to service type information, source terminal and destination terminal addresses, is obtained when time target terminal downstream communications link, it can
To be sent to target terminal by the port in target terminal downstream communications link for calling service request instruction.
Step 403, the target terminal is received to refer to based on the calling service response that the calling service request instruction is fed back
It enables.
After target terminal receives the calling service request instruction of source terminal, calling service response instruction is made.The present invention
In embodiment, target terminal can be ethernet terminal, and calling service response instruction is sent initially to node server, for view
For networked server, node server belongs to terminal, can generate calling service by 8e01 agreement in node server and ring
It should instruct, the specification of 8e01 agreement can be as shown in the table:
In embodiments of the present invention, service parameter can be SERVICE_TYPE_PERMISSION, i.e. target terminal is responded
Source terminal can permit connection.
Step 404, the calling service is responded and is instructed, according to the source terminal downlink communication chain configured to the source terminal
Road is sent to the source terminal.
In embodiments of the present invention, described respond the calling service instructs, according to the source configured to the source terminal
It may include following sub-step that user equipment downlink communication link, which is sent to the source terminal:
Sub-step S21, according to source terminal mark extraction source terminal address in content-address mapping table;
Sub-step S22 obtains source terminal downstream communications link according to the source terminal address, and the source terminal downlink is logical
Believe that link includes source terminal downstream communication ports;
The calling service is responded and is instructed by sub-step S23, is sent to by the source terminal downstream communication ports described
Source terminal.
In the embodiment of the present invention, it can be identified in content-address mapping table according to source terminal, extraction source terminal address,
According to service type information, the address of source terminal and target terminal, obtains and work as secondary source user equipment downlink communication link, can will call
Service response instruction, is sent to source terminal by the port in source terminal downstream communications link.
Step 405, calling service connection confirmation of the source terminal based on calling service response instruction feedback is received
Instruction;
Step 406, the calling service is connected into confirmation instruction, according under the target terminal configured to the target terminal
Row communication link is sent to the target terminal.
Source terminal can make calling service connection confirmation instruction after receiving calling service response instruction, be sent to target end
Calling service connection is completed at end.
Through the above steps, the calling connection between terminal can be realized in view networking.
As shown in figure 5, in another embodiment of the invention, a kind of method of terminal communication further include:
Step 407, when the unlatching audio, video data service order for receiving the source terminal, according to the audio, video data
Service order opens audio/video encoding/decoding function.
In the embodiment of the present invention, after source terminal and target terminal establish calling connection, the data of other business can be carried out
Communication, such as can carry out audio, video data service communication, specifically, can be source terminal and target terminal is broadcast live video
The communication of meeting audio, video data.Since target terminal can be ethernet terminal, source terminal and node server needs are beaten
Audio/video encoding/decoding function is opened, specifically, depending on networked server audio, video data service order can be generated by 8704 agreements
And unlatching audio, video data service order is sent simultaneously and is received to source terminal and node server, source terminal and node server
Audio/video encoding/decoding function is opened after the instruction, in embodiments of the present invention, the specification of 8704 agreements as shown in the table (can take
Business instruction is coding and decoding instruction):
In above-mentioned table, video input Source Type HB (input video source): 0=(component), 1=VGA, 2=composite
(compound);LB (input video format): 0=720p-60hz, 1=720p-50hz, 3=D1;Video exports Source Type HB (output
Source video sequence): 0=(component), 1=VGA, 2=composite (compound);LB (output video format): 0=720p-60hz, 1
=720p-50hz, 3=D1;Service type: 4ts is broadcast live in videophone 1es, and 5es is broadcast live, and broadcasts 6ts, program request 7ts, watches straight
8es is broadcast, be delayed TV 9ts, delay monitoring 10ts, meeting 11es.It can be selected according to the actual situation, the embodiment of the present invention
It is without limitation.
Step 408, after opening audio/video encoding/decoding function, the meeting audio, video data that the source terminal is sent is received.
In practical applications, source terminal can be view networked terminals or ethernet terminal, source terminal can be by therewith
The meeting audio, video data at camera and microphone acquisition the meeting scene of connection.
Step 409, the meeting audio, video data is converted, the meeting audio, video data after being converted.
In the embodiment of the present invention, when sending meeting audio, video data to ethernet terminal depending on networked terminals, by 2001 meetings
Audio data and 2002 TV news data are converted into the RTP audio-video of Ethernet by 2001 agreements and 2002 protocol conversions
Data packet is sent to ethernet terminal by Ethernet;The RTP audio, video data packet of ethernet terminal acquisition, by 2001 associations
After view and 2002 protocol conversions, 2001 conference audio data and 2002 TV news data are obtained, are sent out by node server
Give view networked terminals.
The specification of 2001 agreements can be as shown in the table:
In above table, audio data format may is that the G711 of 0=AES, the AAC of 1=AES, can be according to practical feelings
Condition is selected.
The specification of 2002 agreements can be as shown in the table:
When receiving video data, data are encoded according to upper table, such as video is divided into data packet, data packet
Current time when including frame number, coding, the parameters such as packet serial number thus can be by video data with data packet, video flowing
Form be sent to target terminal, after target terminal receives data packet, can according in data packet frame number, coding when
Current time, packet serial number etc. play out.
Step 410, it by the meeting audio, video data after the conversion, is transmitted according to the target terminal downstream communications link
To the target terminal.
Source terminal and target terminal have been assigned communication link when establishing connection, can be according to communication link by meeting sound
Video data is sent to target terminal.
Step 411, when receiving the hang-up request instruction of source terminal transmission with the instruction of end-sound video data service.
At the end of conference communication, source terminal can generate hang-up request by 8e01 agreement and instruct and be sent to view networking
Server, depending on networked server can by 8704 agreements generate end-sound video data service instruct and be sent to source terminal with
Node server, node server receive hang-up request instruction and instruct with end-sound video data service.
Step 412, it is instructed according to the end-sound video data service and closes encoding and decoding audio and video data function.
When needing to terminate communication, the instruction of end-sound video data service is received, 8704 agreements can be specifically passed through
The instruction of end-sound video data service is generated, when receiving the instruction of end-sound video data service, audio, video data is closed and compiles solution
Code function.
Step 413, the hang-up request is instructed, according to the target terminal downlink communication chain configured to the target terminal
Road is sent to the target terminal.
Source terminal and target terminal have been assigned communication link when establishing connection, can will be hung up and be asked according to communication link
Instruction is asked to be sent to target terminal by downlink port.
Step 414, hang-up request response message of the target terminal based on the hang-up request instruction feedback is received.
After target terminal receives hang-up request instruction, hang-up request response message is made, terminate communication, when receiving mesh
After the hang-up request response message for marking terminal, node server communication close, release port.
The characteristic of application view networking of the embodiment of the present invention is requested when receiving calling service of the source terminal for target terminal
When instruction, calling service request instruction is sent to according to the target terminal downstream communications link configured to the target terminal
Target terminal will be called when receiving the calling service response instruction that target terminal is fed back based on calling service request instruction
Service response instruction is sent to source terminal according to the source terminal downstream communications link configured to source terminal, receives source terminal and is based on
Calling service responds the calling service connection confirmation instruction of instruction feedback, calling service is connected confirmation instruction, according to target
The target terminal downstream communications link of terminal configuration is sent to target terminal.Further, source terminal can be view networked terminals,
Target terminal can be ethernet terminal, it is thereby achieved that interconnecting depending on networked terminals and ethernet terminal.
Further, after establishing connection depending on networked terminals and ethernet terminal, can also be networked audio data industry by view
Business instruction and video data service instruction carry out the mutual conversion and transmission of meeting audio, video data, realize view networked terminals
The conference communication between ethernet terminal.
Referring to Fig. 6, show a kind of method design frame chart of terminal communication of the invention, the example be view networked terminals and
Ethernet terminal communication carries out calling connection communication, can specifically include:
Depending on networked terminals 501, depending on networked server 502, node server 503, ethernet terminal 504, wherein view networking
Terminal 501 is connected by regarding networked server 502 with node server 503, and ethernet terminal 504 passes through node server 503
It is connected with depending on networked server 502.
In an Ethernet service module built in node server 503, realization is connect with the networking of ethernet terminal;It is built-in
One view networking module, realization are connect with the networking depending on networked terminals;Finally, based on Ethernet service module and view networking module
It realizes a signaling and media transcoding module, completes the connection of view networked terminals and ethernet terminal.
Referring to Fig. 7, a kind of signalling example flow chart of the method for terminal communication of the invention is shown, which is view connection
Network termination and ethernet terminal communication, can specifically include following steps:
Step 10,8e01 (CallSetup) calling service request instruction is sent depending on networked terminals give view networked server.
Step 20,8e01 (CallSetup) is converted into 8e02 (CallSetup) instruction depending on networked server and issues node
Server.
Step 30, after node server receives 8e02 (CallSetup) calling service request instruction, to the calling service
Request instruction is parsed, and is converted into Ethernet INVITE calling service request instruction and is sent to ethernet terminal.
Step 40, it after ethernet terminal receives INVITE calling service request instruction, is sent to node server
100Trying response.
Step 50, it after the legitimacy of ethernet terminal inspection INVITE calling service request instruction, is sent out to node server
180Ringing is sent to respond, expression has just been disposed in SIP INVITE, please wait the response of ethernet terminal.
Step 60, ethernet terminal is completed to the media detection in INVITE calling service request instruction and confirms that media are believed
Breath is negotiated after passing through, and sends 200OK response to node server.
Step 70, after node server receives 200OK response, 200OK is converted into 8e01 (CallAccept) calling and is asked
Receiving instruction is asked, and is sent to view networked server.
Step 80,8e01 (CallAccept) call request is received depending on networked server and receive instruction, carry out relevant treatment
And it is converted to 8e02 (CallAccept) call request receiving instruction and issues view connection terminal.
Step 90, node server receives instruction to depending on networked server transmission 8e01 (CallAccept) call request
Afterwards, ACK is sent to ethernet terminal and confirm signaling, complete the calling connection of view networked terminals and ethernet terminal.
Step 100, after sending 8e02 (CallAccept) calling receiving instruction to view networked terminals depending on networking, respectively to view
Networked terminals and node server send 8704 (OpenDecoder) instruction, open the audio/video encoding/decoding of both sides.
Step 110, after receiving 8704 (OpenDecoder) instruction depending on networked terminals and successfully opening audio/video encoding/decoding,
Instruction is successfully established to 8e01 (CallConnected) calling connection is sent depending on networked server.
Step 120, it is received after 8e01 (CallConnected) calling connection is successfully established instruction depending on networked server, to
Node server sends 8e02 (CallConnected) calling connection and is successfully established instruction.
Step 130, after being successfully established instruction depending on networked terminals transmission 8e01 (CallConnected) calling connection, to view
Networked server sends 2001 audio datas and 2002 video datas.
Step 140, after receiving 2001 audio datas and 2002 video datas depending on networked server, it is transmitted to node serve
Device.
Step 150, it after node server receives 2001 audio datas and 2002 video datas, is decoded and encodes,
Treated, audio, video data is converted to RTP packet is sent to ethernet terminal.
Step 160, ethernet terminal is acquired and encodes to local audio-video, is encapsulated as RTP packet and is sent to node
Server.
Step 170, it after the audio, video data of node server reception ethernet terminal, is decoded and encodes, sound is regarded
Frequency evidence is packaged into 2001 audio datas and 2002 video datas are sent to view networked server.
Step 180,2001 audio datas received and 2002 video datas are transmitted to view networking depending on networked server
Terminal.
Step 190, the instruction of 8e01 (CallHangup) hang-up request is sent to view networked server depending on networked terminals.
Step 200,8e01 (CallHangup) is converted into 8e02 (CallHangup) hang-up request depending on networked server
Instruction is sent to node server.
Step 210, node server converts the instruction of 8e02 (CallHangup) hang-up request, will convert into
Bye instruction is sent to ethernet terminal and closes current audio/video communication after ethernet terminal receives Bye request.
Step 220, while sending the instruction of 8e02 (CallHangup) hang-up request depending on networked server, join respectively to view
Network termination and node server send 8704 (StopDecoder) instruction, close the audio/video encoding/decoding function of both sides.
Step 230, ethernet terminal sends 200OK and responds to node server, terminates current sessions.
Foregoing example illustrates the signaling procedures of the foundation communication of view networked terminals and ethernet terminal, pass through above-mentioned signaling
Process can establish the communication connection between view networked terminals and ethernet terminal, can further carry out meeting audio-video
Data service realizes interconnecting depending on networked terminals and ethernet terminal.
It should be noted that for simple description, therefore, it is stated as a series of action groups for embodiment of the method
It closes, but those skilled in the art should understand that, embodiment of that present invention are not limited by the describe sequence of actions, because according to
According to the embodiment of the present invention, some steps may be performed in other sequences or simultaneously.Secondly, those skilled in the art also should
Know, the embodiments described in the specification are all preferred embodiments, and the related movement not necessarily present invention is implemented
Necessary to example.
Referring to Fig. 8, a kind of structural block diagram of the Installation practice of terminal communication of the invention is shown, which can answer
For can specifically include following module in view networking:
Calling service request instruction receiving module 601 is requested for receiving source terminal for the calling service of target terminal
Instruction;
Calling service request instruction sending module 602 is used for by the calling service request instruction, according to the target
The target terminal downstream communications link of terminal configuration is sent to the target terminal;
Calling service responds command reception module 603, is requested for receiving the target terminal based on the calling service
The calling service of instruction feedback responds instruction;
Calling service responds instruction sending module 604, instructs for responding the calling service, according to whole to the source
The source terminal downstream communications link of end configuration is sent to the source terminal;
Calling service connection confirmation command reception module 605, is rung for receiving the source terminal based on the calling service
The calling service of instruction feedback is answered to connect confirmation instruction;
Calling service connection confirmation instruction sending module 606, for the calling service to be connected confirmation instruction, according to right
The target terminal downstream communications link of the target terminal configuration is sent to the target terminal.
In one preferred embodiment of the invention, the terminal includes view networked terminals and ethernet terminal, the view
Networking includes node server, access switch, and the view networked terminals are connect by node server with access switch, institute
It states ethernet terminal and view networking is accessed by access switch.
In another preferred embodiment of the invention, calling service request instruction sending module 602 includes:
Destination terminal addresses extracting sub-module, for being mentioned in content-address mapping table according to target terminal mark
Take destination terminal addresses;
Target terminal downstream communications link acquisition of information submodule, for obtaining target according to the destination terminal addresses
User equipment downlink communication link, the target terminal downstream communications link include target terminal downstream communication ports;
Calling service request instruction sending submodule, for passing through the target end for the calling service request instruction
End downstream communication ports are sent to the target terminal.
Calling service responds instruction sending module 604
Source terminal address extraction submodule, for according to source terminal mark extraction source in content-address mapping table
Terminal address;
Source terminal downstream communications link acquisition of information submodule, for obtaining under source terminal according to the source terminal address
Row communication link, the source terminal downstream communications link include source terminal downstream communication ports;
Calling service response instruction sending submodule, instructs for responding the calling service, passes through the source terminal
Downstream communication ports are sent to the source terminal.
In a kind of preferred embodiment of the present invention, described device further include:
Audio, video data service order receiving module 607, for when the unlatching audio, video data for receiving the source terminal
Service order opens audio/video encoding/decoding function according to the audio, video data service order;
Meeting audio, video data receiving module 608, for receiving the source terminal after opening audio/video encoding/decoding function
The meeting audio, video data of transmission;
Conversion module 609, the meeting audio-video number for being converted to the meeting audio, video data, after being converted
According to;
Meeting audio, video data sending module 610, for by the meeting audio, video data after the conversion, according to the mesh
Mark user equipment downlink communication link is sent to the target terminal.
In a kind of preferred embodiment of the present invention, described device further include:
Hang-up request command reception module 611, the hang-up request instruction for receiving source terminal transmission are regarded with end-sound
Frequency is according to service order;
Encoding and decoding audio and video data function closedown module 612 is closed for instructing according to the end-sound video data service
Close encoding and decoding audio and video data function;
Hang-up request instruction sending module 613 is configured for instructing the hang-up request according to the target terminal
Target terminal downstream communications link be sent to the target terminal;
Hang-up request response message receiving module 614 is instructed for receiving the target terminal based on the hang-up request
The hang-up request response message of feedback.
For device embodiment, since it is basically similar to the method embodiment, related so being described relatively simple
Place illustrates referring to the part of embodiment of the method.
All the embodiments in this specification are described in a progressive manner, the highlights of each of the examples are with
The difference of other embodiments, the same or similar parts between the embodiments can be referred to each other.
It should be understood by those skilled in the art that, the embodiment of the embodiment of the present invention can provide as method, apparatus or calculate
Machine program product.Therefore, the embodiment of the present invention can be used complete hardware embodiment, complete software embodiment or combine software and
The form of the embodiment of hardware aspect.Moreover, the embodiment of the present invention can be used one or more wherein include computer can
With in the computer-usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) of program code
The form of the computer program product of implementation.
The embodiment of the present invention be referring to according to the method for the embodiment of the present invention, terminal device (system) and computer program
The flowchart and/or the block diagram of product describes.It should be understood that flowchart and/or the block diagram can be realized by computer program instructions
In each flow and/or block and flowchart and/or the block diagram in process and/or box combination.It can provide these
Computer program instructions are set to general purpose computer, special purpose computer, Embedded Processor or other programmable data processing terminals
Standby processor is to generate a machine, so that being held by the processor of computer or other programmable data processing terminal devices
Capable instruction generates for realizing in one or more flows of the flowchart and/or one or more blocks of the block diagram
The device of specified function.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing terminal devices
In computer-readable memory operate in a specific manner, so that instruction stored in the computer readable memory generates packet
The manufacture of command device is included, which realizes in one side of one or more flows of the flowchart and/or block diagram
The function of being specified in frame or multiple boxes.
These computer program instructions can also be loaded into computer or other programmable data processing terminal devices, so that
Series of operation steps are executed on computer or other programmable terminal equipments to generate computer implemented processing, thus
The instruction executed on computer or other programmable terminal equipments is provided for realizing in one or more flows of the flowchart
And/or in one or more blocks of the block diagram specify function the step of.
Although the preferred embodiment of the embodiment of the present invention has been described, once a person skilled in the art knows bases
This creative concept, then additional changes and modifications can be made to these embodiments.So the following claims are intended to be interpreted as
Including preferred embodiment and fall into all change and modification of range of embodiment of the invention.
Finally, it is to be noted that, herein, relational terms such as first and second and the like be used merely to by
One entity or operation are distinguished with another entity or operation, without necessarily requiring or implying these entities or operation
Between there are any actual relationship or orders.Moreover, the terms "include", "comprise" or its any other variant meaning
Covering non-exclusive inclusion, so that process, method, article or terminal device including a series of elements not only wrap
Those elements are included, but also including other elements that are not explicitly listed, or further includes for this process, method, article
Or the element that terminal device is intrinsic.In the absence of more restrictions, being wanted by what sentence "including a ..." limited
Element, it is not excluded that there is also other identical elements in process, method, article or the terminal device for including the element.
Above to a kind of method and apparatus of terminal communication provided by the present invention, it is described in detail, answers herein
With a specific example illustrates the principle and implementation of the invention, the explanation of above example is only intended to help to manage
Solve method and its core concept of the invention;At the same time, for those skilled in the art, according to the thought of the present invention,
There will be changes in specific embodiment and application range, in conclusion the content of the present specification should not be construed as to this hair
Bright limitation.