The content of the invention
In view of the above problems, it is proposed that the embodiment of the present invention overcomes the above problem or at least in part in order to provide one kindA 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 to be applied toDepending in networking, the described method includes:
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 terminalSend to the target terminal;
Receive the target terminal and instruction is responded based on the calling service that the calling service request instruction is fed back;
The calling service is responded and is instructed, is sent to according to the source terminal downstream communications link configured to the source terminalThe source terminal;
Receive calling service connection of the source terminal based on calling service response instruction feedback and confirm instruction;
The calling service is connected and confirms instruction, according to the target terminal downlink communication chain configured to the target terminalRoad is sent to the target terminal.
Preferably, the terminal includes regarding networked terminals and ethernet terminal, it is described regard networking include regarding networked server,Node server, access switch, the networked terminals that regard are by access switch or regarding networked server and node serveDevice is connected, and the ethernet terminal is connected by access switch or couple in router with node server.
Preferably, when target terminal access regards networking, the node server is assigned for the target terminalTarget terminal identifies, and destination terminal addresses and port information are obtained when node server connects, and establish target terminal mark andThe mapping relations of destination terminal addresses are simultaneously stored in content-address mapping table, and it is whole that the calling service request instruction includes sourceHold address and target terminal mark;It is described by the calling service request instruction, according to the target configured to the target terminalThe step of user equipment downlink communication link is sent to the target terminal includes:
According to the target terminal mark destination terminal addresses are extracted in content-address mapping table;
According to the destination terminal addresses, target terminal downstream communications link, the target terminal downlink communication chain are obtainedRoad includes target terminal downstream communication ports;
By the calling service request instruction, it is whole to be sent to the target by the target terminal downstream communication portsEnd.
Preferably, when source terminal access regards networking and networks, the node server is assigned for the source terminalSource terminal identifies, and distribution source terminal address, and establishes the mapping relations of source terminal mark and source terminal address and be stored inIn content-address mapping table, the calling service response instruction includes destination terminal addresses and source terminal mark, described by described inCalling service response instruction, is sent to according to source terminal downstream communications link of the node server for source terminal configurationThe 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 includesSource terminal downstream communication ports;
The calling service is responded and is instructed, the source terminal is sent to by the source terminal downstream communication ports.
Preferably, the method further includes:
When the unlatching audio, video data service order for receiving the source terminal, according to the audio, video data service orderOpen audio/video encoding/decoding function;
After audio/video encoding/decoding function is opened, the meeting audio, video data that the source terminal is sent is received;
The meeting audio, video data is changed, obtains transformed meeting audio, video data;
By the transformed meeting audio, video data, the mesh is sent to according to the target terminal downstream communications linkMark terminal.
Preferably, the method further includes:
The hang-up request instruction that source terminal is sent is received to instruct with end-sound video data service;
Instructed according to the end-sound video data service and close 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 terminalThe 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 to regard in networking, the dressPut including:
Calling service request instruction receiving module, refers to for receiving source terminal for the calling service request of target terminalOrder;
Calling service request instruction sending module, for by the calling service request instruction, according to whole to the targetThe target terminal downstream communications link of end configuration is sent to the target terminal;
Calling service responds command reception module, and the calling service request instruction is based on for receiving the target terminalThe calling service response instruction of feedback;
Calling service responds instruction sending module, is instructed for the calling service to be responded, according to the source terminalThe source terminal downstream communications link of configuration is sent to the source terminal;
Calling service connection confirms command reception module, is referred to for receiving the source terminal based on calling service responseThe calling service connection of order feedback confirms instruction;
Calling service connection confirms instruction sending module, instruction is confirmed for the calling service to be connected, according to instituteThe 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 to include node server depending on networking, connectEnter interchanger, the networked terminals that regard regard networking by access switch and node server access, and the ethernet terminal leads toCouple in router is crossed with node server to be connected.
Preferably, described device further includes:
Audio, video data service order receiving module, for when the unlatching audio, video data business for receiving the source terminalInstruction, audio/video encoding/decoding function is opened according to the audio, video data service order;
Meeting audio, video data receiving module, for after audio/video encoding/decoding function is opened, receiving the source terminal hairThe meeting audio, video data sent;
Modular converter, for being changed to the meeting audio, video data, obtains transformed meeting audio, video data;
Meeting audio, video data sending module, for by the transformed meeting audio, video data, according to the targetUser equipment downlink communication link is sent to the target terminal.
Preferably, described device further includes:
Hang-up request command reception module, for receiving hang-up request instruction and the end-sound video counts of source terminal transmissionAccording to service order;
Encoding and decoding audio and video data function closedown module, sound is closed for being instructed according to the end-sound video data serviceVideo data codec functions;
Hang-up request instruction sending module, for the hang-up request to be instructed, according to what is configured to the target terminalTarget terminal downstream communications link is sent to the target terminal;
Hang-up request response message receiving module, the hang-up request instruction feedback is based on for receiving the target terminalHang-up request response message.
The embodiment of the present invention includes advantages below:
The embodiment of the present invention applies the characteristic regarding networking, is asked when receiving calling service of the source terminal for target terminalDuring instruction, by calling service request instruction, target is sent to according to the target terminal downstream communications link configured to target terminalTerminal, when receiving the calling service response instruction that target terminal is fed back based on calling service request instruction, by calling serviceResponse instruction, source terminal is sent to according to the source terminal downstream communications link configured to source terminal, is received source terminal and is based on callingThe calling service connection of service response instruction feedback confirms instruction, and calling service is connected and confirms instruction, according to target terminalThe target terminal downstream communications link of configuration is sent to target terminal.Further, source terminal can regard networked terminals, targetTerminal can be ethernet terminal, it is thereby achieved that interconnecting depending on networked terminals and ethernet terminal.
Further, can also be by regarding networking voice data industry after establishing connection depending on networked terminals and ethernet terminalBusiness instruction and video data service instruction, carry out the mutual conversion and transmission of meeting audio, video data, realize regarding networked terminalsThe conference communication between ethernet terminal.
Embodiment
In order to make the foregoing objectives, features and advantages of the present invention clearer and more comprehensible, it is below in conjunction with the accompanying drawings and specific realApplying 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 realize 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, can be such as high in a network platform by required serviceClear video conference, video monitoring, Intellectualized monitoring analysis, emergency command, digital broadcast television, delay TV, the Web-based instruction, showLive, VOD program requests, TV Mail, individual character records (PVR), Intranet (manages) channel by oneself, intelligent video Broadcast Control, information issueThe services such as etc. tens of kinds videos, voice, picture, word, communication, data are all incorporated into a system platform, by TV orComputer realizes that high-definition quality video plays.
To make those skilled in the art more fully understand the embodiment of the present invention, below to being introduced depending on networking:
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. classType, but centralized control node is needed to control whole network in network on this basis.
As shown in Figure 1, it is 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 machinesTop box, encoding board, memory etc.).Node server is connected with access switch, and access switch can be with multiple terminal phasesEven, and Ethernet can be connected.
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 serveDevice.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 endPoint, 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 serveDevice.Metropolitan area server can be directly connected to node switch, can also be directly connected to node server.
It can be seen from the above that be entirely a kind of central controlled network structure of layering depending on networking network, and node server and metropolitan areaThe network controlled under server can be the various structures such as tree-shaped, star-like, ring-type.
Visually claim, access mesh portions can form unified video platform (empty thiol point), and multiple unified videos are put downPlatform can be formed regarding 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 depending on the equipment in networking:Server, interchanger (including etherNet gateway), terminal (including various set-top boxes, encoding board, memory etc.).Depending on networking can be divided on the whole Metropolitan Area Network (MAN) (orNational 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 etherNet gateway), terminal (including various set-top boxes, encoding board, memory etc.).
The particular hardware structure of each access network equipment is:
Node server:
As shown in Fig. 2, mainly include Network Interface Module 201, switching engine module 202, CPU module 203, disk arrayModule 204;
Wherein, Network Interface Module 201, the Bao Jun that CPU module 203, disk array module 204 are come in enter switching engineModule 202;Switching engine module 202 look into the operation of address table 205 to the bag come in, so as to obtain the navigation information of bag;And the bag is stored according to the navigation information of bag the queue of corresponding pack buffer 206;If the queue of pack buffer 206 approachesIt is full, then abandon;All pack buffer queues of 202 poll of switching engine mould, if meeting that the following conditions are forwarded to:1) portSend caching less than;2) the queue package counting facility is more than zero.Disk array module 204 mainly realizes the control to hard disk, includingInitialization, read-write to hard disk etc. operate;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 include Network Interface Module (downstream network interface module 301, uplink network interface module302), switching engine module 303 and CPU module 304;
Wherein, the bag (upstream data) that downstream network interface module 301 is come in enters bag detection module 305;Bag detection mouldWhether mesh way address (DA), source address (SA), type of data packet and the packet length of the detection bag of block 305 meet the requirements, if met,Corresponding flow identifier (stream-id) is then distributed, and enters switching engine module 303, is otherwise abandoned;Uplink network interface mouldThe bag (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 engineModule 303;Switching engine module 303 look into the operation of address table 306 to the bag come in, so as to obtain the navigation information of bag;Gone if the bag into switching engine module 303 is downstream network interface toward uplink network interface, with reference to flow identifier(stream-id) bag is stored in the queue of corresponding pack buffer 307;If the queue of the pack buffer 307 is close full,Abandon;If the bag into switching engine module 303 is not that downstream network interface is gone toward uplink network interface, according to bagNavigation 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:
Gone if the queue is downstream network interface toward uplink network interface, meet that the following conditions are forwarded to:1)The port send caching less than;2) the queue package counting facility is more than zero;3) token that rate control module produces is obtained;
Gone if the queue is not downstream network interface toward uplink network interface, meet that the following conditions are forwarded to:1) port send caching less than;2) the queue package counting facility is more than zero.
Rate control module 308 is configured by CPU module 304, to all downlink networks in programmable intervalThe pack buffer queue that interface is gone toward uplink network interface produces token, to control the code check 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:
Mainly include Network Interface Module, Service Processing Module and CPU module;For example, set-top box mainly connects including networkMouth mold block, video/audio encoding and decoding engine modules, CPU module;Encoding board mainly includes Network Interface Module, video encoding engineModule, 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 includesNetwork Interface Module, switching engine module and CPU module are formed.
2nd, regarding networking data package definition
2.1 access network data package definitions
The data packet of access net mainly includes following sections:Destination address (DA), source address (SA), reserve bytes,payload(PDU)、CRC。
As shown in the table, accessing the data packet of net mainly includes following sections:
Wherein:
Destination address (DA) is made of 8 bytes (byte), and first character section represents type (such as the various associations of data packetDiscuss bag, 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 with destination address (DA);
Reserve bytes are made of 2 bytes;
Payload parts have different length according to the type of different datagrams, if being if various protocol packages64 bytes, if single group unicast packets words are 32+1024=1056 bytes, are not restricted to 2 kinds of the above certainly;
CRC is made of 4 bytes, its computational methods 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 equipment2 kinds can be all can exceed that between machine and node server, node switch and node switch, node switch and node serverConnection.But the metropolitan area net address of metropolitan area network equipment is unique, is closed to accurately describe the connection between metropolitan area network equipmentSystem, introduces parameter in embodiments of the present invention:Label, uniquely describes a metropolitan area network equipment.
(Multi-Protocol Label Switch, multiprotocol label are handed over by the definition of label and MPLS in this specificationChange) label definition it is similar, it is assumed that have two connections between device A and equipment B, then data packet slave device A to equipment B justThere are 2 labels, data packet slave device B to device A also there are 2 labels.Label is divided into label, outgoing label, it is assumed that data packet entersThe label (entering label) of device A is 0x0000, and the label (outgoing label) when this data packet leaves device A may reform into0x0001.The networking flow 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 is all dominated by metropolitan area server, and node switch, node server are all passive execution, this point withThe label distribution of MPLS is different, and the distribution of the label of MPLS is the result that interchanger, server are consulted 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.ItsIn, the form of label may be referred to be defined as below:Label is 32bit, wherein high 16bit retains, only with low 16bit, its positionPut is between the reserve bytes and payload of data packet.
Based on the above-mentioned characteristic regarding networking, it is proposed that one of the core concepts of the embodiments of the present invention, it then follows regarding the association of networkingView, the target terminal being attached thereto by source terminal (depending on networked terminals or ethernet terminal) requesting node server call (withToo network termination or regarding networked terminals), node server is received after calling service request instruction by conversion, is sent to targetTerminal and the calling service request response instruction for receiving target terminal, the calling service connection for receiving source terminal confirm instruction, willCalling service connection confirms instruction, is sent to target terminal, the calling connection of source terminal and target terminal, source terminal are established with thisIt can be carried out the transmission of meeting audio, video data with target terminal, realize the video conference industry between source terminal and target terminalBusiness.
With reference to Fig. 4, a kind of step flow chart of the embodiment of the method for terminal communication of the present invention is shown, this method can be withApplied in networking, specifically may include steps of:
Step 401, the calling service request instruction that source terminal is directed to target terminal is received.
In the concrete realization, source terminal can regard networked terminals, and target terminal can be that ethernet terminal regards networking eventuallyEnd can be set-top box (SetTopBox, STB), box commonly referred to as on set-top box or machine, be that a connection television set is believed with exteriorThe 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 gathering video data and voice data etc.Media data, can also connect television set, for multi-medium datas such as playing video data and voice datas.
Ethernet terminal can be PC, VOIP videophone, VOIP voice frequency telephones or other soft electricity of standard SIPWords etc..
In the application scenarios such as video conference, source terminal and target terminal outside source each other, i.e. source terminal gather theOne multi-medium data is simultaneously sent to target terminal, and target terminal plays first multi-medium data, meanwhile, target terminal collection theTwo 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 collection, target terminal adoptsSecond multi-medium data of collection is lasting.
In practical applications, user can be by the certain operations in menu (gtml) file, for example dial target endEnd mark, target terminal mark can be the service number of target terminal, and triggering source terminal is directed to and target terminal calling serviceRequest instruction, sends to node server, with requesting node server call target terminal.
In networking, source terminal can regard networked terminals, can be called depending on networked terminals by 8e01 protocol generationsRequest instructions send to what is be attached thereto and regard networked server, depending on networked server according to 8e02 protocol generation calling servicesRequest instruction is sent to node server, and relative to regarding networked server, node server can be a terminal, which assistsThe specification of view can be as shown in the table:
In the embodiment of the present invention, service parameter can be:
#define SERVICE_TYPE_TELEPHONE_DIRECT 0x8005, i.e. application dial videophone.
Step 402, by the calling service request instruction, lead to according to the target terminal downlink configured to the target terminalLetter 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 undernetEquipment, the undernet equipment include terminal, are depending on one of core idea of networking, by notifying to exchange by main control serverEquipment is directed to when time downstream communications link of service matches somebody with somebody table, and the table for being then based on the configuration carries out the transmission of data packet.
That is, include 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 by what source terminal was sent, target terminal is sent to (such as according to the downstream communications linkEthernet terminal).
In embodiments of the present invention, configuration is worked as time downstream communications link of service and is included:Notice is led to when time downlink of serviceSwitching equipment involved by letter link matches somebody with somebody table;
Furthermore, include according to downstream communications link transmission:Inquiry configured table, switching equipment is to being receivedData packet is transmitted by corresponding port, and therefore, the calling service request instruction is configured according to the target terminalTarget terminal downstream communications link the step of being sent to the target terminal include following sub-step:
Sub-step S11, destination terminal addresses are extracted according to target terminal mark in content-address mapping table;
Sub-step S12, according to the destination terminal addresses, obtains target terminal downstream communications link, the target terminalDownstream communications link includes target terminal downstream communication ports;
Sub-step S13, by the calling service request instruction, institute is sent to by the target terminal downstream communication portsState target terminal.
In the embodiment of the present invention, when target terminal access regards networking, node server is whole for target terminal distribution targetEnd mark and password, node server can obtain destination terminal addresses and port information when connecting, while foundation has target endEnd mark and destination terminal addresses mapping relations simultaneously is stored in content-address mapping table, when receive source terminal initiationDuring calling service request instruction, calling service request instruction includes service type information, service content information;Wherein, serviceContent information includes target terminal mark;It can be identified according to target terminal in content-address mapping table, extraction target is wholeAddress is held, according to service type information, source terminal and destination terminal addresses, is obtained when time target terminal downstream communications link, canBy calling service request instruction, target terminal is sent to by the port in target terminal downstream communications link.
Step 403, the target terminal is received based on the calling service response that the calling service request instruction is fed back to refer toOrder.
After target terminal receives the calling service request instruction of source terminal, calling service response instruction is made.The present inventionIn embodiment, target terminal can be ethernet terminal, and calling service response instruction is sent initially to node server, for regardingFor networked server, node server belongs to terminal, can be rung in node server by 8e01 protocol generations calling serviceIt should instruct, the specification of 8e01 agreements 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 respondedSource terminal can allow to connect.
Step 404, the calling service is responded and instructed, according to the source terminal downlink communication chain configured to the source terminalRoad 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 terminalUser equipment downlink communication link, which is sent to the source terminal, can include following sub-step:
Sub-step S21, according to source terminal mark extraction source terminal address in content-address mapping table;
Sub-step S22, according to the source terminal address, obtains source terminal downstream communications link, the source terminal downlink is led toLetter link includes source terminal downstream communication ports;
Sub-step S23, the calling service is responded and is instructed, and is sent to by the source terminal downstream communication ports describedSource terminal.
In the embodiment of the present invention, it can be identified according to source terminal in content-address mapping table, extraction source terminal address,According to the address of service type information, source terminal and target terminal, acquisition is worked as secondary source user equipment downlink communication link, will can be calledService response instructs, and source terminal is sent to by the port in source terminal downstream communications link.
Step 405, receive calling service of the source terminal based on calling service response instruction feedback and connect and confirmInstruction;
Step 406, the calling service is connected and confirms instruction, according under the target terminal configured to the target terminalRow 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 endEnd, completes calling service connection.
By above-mentioned steps, the calling connection between terminal can be realized in depending on networking.
As shown in figure 5, in another embodiment of the invention, a kind of method of terminal communication further includes:
Step 407, when the unlatching audio, video data service order for receiving the source terminal, according to the audio, video dataService 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 outCommunication, such as audio, video data service communication can be carried out, specifically, can be that source terminal and target terminal carry out live videoMeeting audio, video data communicates.Since target terminal can be ethernet terminal, source terminal and node server need to beatAudio/video encoding/decoding function is opened, specifically, 8704 protocol generation audio, video data service orders can be passed through depending on networked serverAnd unlatching audio, video data service order is sent at the same time and is received to source terminal and node server, source terminal and node serverAudio/video encoding/decoding function is opened after the instruction, the specification of 8704 agreements as shown in the table (can in embodiments of the present invention, takeBusiness 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 form):0=720p-60hz, 1=720p-50hz, 3=D1;Video output Source Type HB (outputsSource video sequence):0=(component), 1=VGA, 2=composite (compound);LB (output video format):0=720p-60hz, 1=720p-50hz, 3=D1;Service type:Videophone 1es, live 4ts, live 5es, broadcast 6ts, program request 7ts, watch straight8es is broadcast, be delayed TV 9ts, delay monitoring 10ts, meeting 11es.It can be made choice according to actual conditions, the embodiment of the present inventionIt is without limitation.
Step 408, after audio/video encoding/decoding function is opened, the meeting audio, video data that the source terminal is sent is received.
In practical applications, source terminal can regard networked terminals or ethernet terminal, and source terminal can be by therewithThe meeting audio, video data at camera and microphone collection the meeting scene of connection.
Step 409, the meeting audio, video data is changed, obtains transformed meeting audio, video data.
In the embodiment of the present invention, depending on networked terminals to ethernet terminal send meeting audio, video data when, by 2001 meetingsVoice data and 2002 TV news data are converted into the RTP audio and video of Ethernet by 2001 agreements and 2002 protocol conversionsData packet, is sent to ethernet terminal by Ethernet;The RTP audio, video data bags of ethernet terminal collection, by 2001 associationsAfter view and 2002 protocol conversions, 2001 conference audio data and 2002 TV news data are obtained, are sent out by node serverGive and regard networked terminals.
The specification of 2001 agreements can be as shown in the table:
In above table, voice data form can be:The AAC of the G711 of 0=AES, 1=AES, can be according to actual feelingsCondition makes choice.
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 packetThe parameters such as current time during including frame number, coding, bag sequence number, thus can be by video data with data packet, video flowingForm be sent to target terminal, after target terminal receives data packet, can according to the frame number in data packet, coding whenCurrent time, bag sequence number etc. plays out.
Step 410, by the transformed meeting audio, video data, transmitted according to the target terminal downstream communications linkTo the target terminal.
Source terminal and target terminal are established and have been assigned communication link when connecting, can be according to communication link by meeting soundVideo 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 be instructed by 8e01 protocol generation hang-up requests and is sent to regarding networkingServer, can be instructed depending on networked server by 8704 protocol generation end-sound video data services and be sent to source terminal andNode server, node server receive hang-up request instruction and are instructed with end-sound video data service.
Step 412, instructed according to the end-sound video data service and close encoding and decoding audio and video data function.
When needing to terminate communication, the instruction of end-sound video data service is received, can specifically pass through 8704 agreementsThe 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 solutionCode function.
Step 413, the hang-up request is instructed, according to the target terminal downlink communication chain configured to the target terminalRoad is sent to the target terminal.
Source terminal has been assigned communication link when establishing and connect with target terminal, and be able to will be hung up according to communication link pleaseInstruction is asked to be sent by downlink port to target terminal.
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 meshAfter the hang-up request response message for marking terminal, node server communication close, release port.
The embodiment of the present invention applies the characteristic regarding networking, is asked when receiving calling service of the source terminal for target terminalDuring instruction, calling service request instruction is sent to according to the target terminal downstream communications link configured to the target terminalTarget terminal, when receiving the calling service response instruction that target terminal is fed back based on calling service request instruction, will callService response instructs, and source terminal is sent to according to the source terminal downstream communications link configured to source terminal, receives source terminal and is based onThe calling service connection of calling service response instruction feedback confirms instruction, and calling service is connected and confirms instruction, according to targetThe target terminal downstream communications link of terminal configuration is sent to target terminal.Further, source terminal can regard networked terminals,Target terminal can be ethernet terminal, it is thereby achieved that interconnecting depending on networked terminals and ethernet terminal.
Further, can also be by regarding networking voice data industry after establishing connection depending on networked terminals and ethernet terminalBusiness instruction and video data service instruction, carry out the mutual conversion and transmission of meeting audio, video data, realize regarding networked terminalsThe conference communication between ethernet terminal.
With reference to Fig. 6, show a kind of method design frame chart of terminal communication of the present invention, the example be regarding networked terminals andEthernet 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, depending on networkingFor terminal 501 by being connected regarding networked server 502 with node server 503, ethernet terminal 504 passes through node server 503It is connected with depending on networked server 502.
In an Ethernet service module built in node server 503, realization is connected with the networking of ethernet terminal;It is built-inOne regards networking module, and realization is connected with the networking depending on networked terminals;Finally, based on Ethernet service module and regarding networking moduleRealize a signaling and media transcoding module, complete the connection regarding networked terminals and ethernet terminal.
With reference to Fig. 7, a kind of signalling example flow chart of the method for terminal communication of the present invention is shown, which is regarding connectionNetwork termination and ethernet terminal communication, specifically may include steps of:
Step 10, networked server is regarded depending on networked terminals transmission 8e01 (CallSetup) calling services request instruction.
Step 20,8e01 (CallSetup) is converted into 8e02 (CallSetup) instructions depending on networked server and issues nodeServer.
Step 30, after node server receives 8e02 (CallSetup) calling service request instruction, to the calling serviceRequest instruction is parsed, and is converted into Ethernet INVITE calling service request instructions and is sent to ethernet terminal.
Step 40, after ethernet terminal receives INVITE calling service request instructions, sent to node server100Trying is responded.
Step 50, after ethernet terminal examines the legitimacy of INVITE calling service request instructions, sent out to node server180Ringing 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 instructions and confirms that media are believedAfter breath negotiation passes through, 200OK responses are sent to node server.
Step 70, after node server receives 200OK responses, 200OK is converted into 8e01 (CallAccept) callings pleaseReceiving instruction is asked, and is sent to regarding networked server.
Step 80, receive 8e01 (CallAccept) call request depending on networked server and receive instruction, carry out relevant treatmentAnd be converted to 8e02 (CallAccept) call request receive instruction issue regarding connection terminal.
Step 90, node server receives instruction to depending on networked server transmission 8e01 (CallAccept) call requestAfterwards, send ACK to ethernet terminal and confirm signaling, complete the calling connection regarding networked terminals and ethernet terminal.
Step 100, depending on networking to regarding networked terminals send 8e02 (CallAccept) calling receive instruction after, respectively to regardingNetworked terminals and node server send 8704 (OpenDecoder) instructions, open the audio/video encoding/decoding of both sides.
Step 110, after receiving 8704 (OpenDecoder) instructions 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, received depending on networked server after 8e01 (CallConnected) calling connection is successfully established instruction, toNode server sends 8e02 (CallConnected) calling connection and is successfully established instruction.
Step 130, sent depending on networked terminals after 8e01 (CallConnected) calling connection is successfully established instruction, to regardingNetworked server sends 2001 voice datas and 2002 video datas.
Step 140, after receiving 2001 voice datas and 2002 video datas depending on networked server, it is transmitted to node serveDevice.
Step 150, after node server receives 2001 voice datas and 2002 video datas, decoded and encoded,Audio, video data after processing is changed into RTP bags and is sent to ethernet terminal.
Step 160, ethernet terminal is acquired and encodes to local audio and video, is encapsulated as RTP bags and is sent to nodeServer.
Step 170, after node server receives the audio, video data of ethernet terminal, decoded and encoded, sound is regardedFrequency evidence is packaged into 2001 voice datas and 2002 video datas are sent to regarding networked server.
Step 180,2001 voice datas received and 2002 video datas are transmitted to regarding networking depending on networked serverTerminal.
Step 190, depending on networked terminals the instruction of 8e01 (CallHangup) hang-up request is sent to regarding networked server.
Step 200,8e01 (CallHangup) is converted into 8e02 (CallHangup) hang-up request depending on networked serverInstruction is sent to node server.
Step 210, node server changes the instruction of 8e02 (CallHangup) hang-up request, will convert intoBye instructions are sent to ethernet terminal, after ethernet terminal receives Bye requests, close current audio/video communication.
Step 220, while sending the instruction of 8e02 (CallHangup) hang-up request depending on networked server, respectively to regarding connectionNetwork termination and node server send 8704 (StopDecoder) instructions, 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 procedure regarding networked terminals and the foundation communication of ethernet terminal, pass through above-mentioned signalingProcess, can establish the communication connection between networked terminals and ethernet terminal, can further carry out meeting audio and videoData service, realizes interconnecting depending on networked terminals and ethernet terminal.
It should be noted that for embodiment of the method, in order to be briefly described, therefore it is all expressed as to a series of action groupClose, but those skilled in the art should know, the embodiment of the present invention and from the limitation of described sequence of movement, because according toAccording to the embodiment of the present invention, some steps can use other orders or be carried out at the same time.Secondly, those skilled in the art also shouldKnow, embodiment described in this description belongs to preferred embodiment, and the involved action not necessarily present invention is implementedNecessary to example.
Reference Fig. 8, shows a kind of structure diagram of the device embodiment of terminal communication of the present invention, which can answerFor in networking, can specifically include following module:
Calling service request instruction receiving module 601, is asked for receiving source terminal for the calling service of target terminalInstruction;
Calling service request instruction sending module 602, for by the calling service request instruction, according to the targetThe target terminal downstream communications link of terminal configuration is sent to the target terminal;
Calling service responds command reception module 603, is asked for receiving the target terminal based on the calling serviceThe calling service response instruction of instruction feedback;
Calling service responds instruction sending module 604, is instructed for the calling service to be responded, according to whole to the sourceThe source terminal downstream communications link of end configuration is sent to the source terminal;
Calling service connection confirms command reception module 605, is rung for receiving the source terminal based on the calling serviceAnswer the calling service of instruction feedback to connect and confirm instruction;
Calling service connection confirms instruction sending module 606, instruction is confirmed for the calling service to be connected, according to rightThe 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 regarding networked terminals and ethernet terminal, described to regardNetworking includes node server, access switch, described to be connected regarding networked terminals by node server with access switch, instituteState ethernet terminal and networking is regarded by access switch access.
In another preferred embodiment of the present invention, calling service request instruction sending module 602 includes:
Destination terminal addresses extracting sub-module, for being carried according to target terminal mark in content-address mapping tableTake destination terminal addresses;
Target terminal downstream communications link acquisition of information submodule, for according to the destination terminal addresses, obtaining targetUser equipment downlink communication link, the target terminal downstream communications link include target terminal downstream communication ports;
Calling service request instruction sending submodule, for by the calling service request instruction, it is whole to pass through the targetEnd downstream communication ports are sent to the target terminal.
Calling service response instruction sending module 604 includes:
Source terminal address extraction submodule, for according to source terminal mark extraction source in content-address mapping tableTerminal address;
Source terminal downstream communications link acquisition of information submodule, for according to the source terminal address, obtaining under source terminalRow communication link, the source terminal downstream communications link include source terminal downstream communication ports;
Calling service response instruction sending submodule, instructs for the calling service to be responded, passes through the source terminalDownstream communication ports are sent to the source terminal.
In a kind of preferred embodiment of the present invention, described device further includes:
Audio, video data service order receiving module 607, for when the unlatching audio, video data for receiving the source terminalService order, audio/video encoding/decoding function is opened according to the audio, video data service order;
Meeting audio, video data receiving module 608, for after audio/video encoding/decoding function is opened, receiving the source terminalThe meeting audio, video data of transmission;
Modular converter 609, for being changed to the meeting audio, video data, obtains transformed meeting audio and video numberAccording to;
Meeting audio, video data sending module 610, for by the transformed meeting audio, video data, according to the meshMark user equipment downlink communication link is sent to the target terminal.
In a kind of preferred embodiment of the present invention, described device further includes:
Hang-up request command reception module 611, the hang-up request for receiving source terminal transmission is instructed to be regarded with end-soundFrequency is according to service order;
Encoding and decoding audio and video data function closedown module 612, is closed for being instructed according to the end-sound video data serviceClose encoding and decoding audio and video data function;
Hang-up request instruction sending module 613, for the hang-up request to be instructed, configures according to the target terminalTarget 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 requestThe hang-up request response message of feedback.
For device embodiment, since it is substantially similar to embodiment of the method, so description is fairly simple, it is relatedPart illustrates referring to the part of embodiment of the method.
Each embodiment in this specification is described by the way of progressive, what each embodiment stressed be withThe difference of other embodiment, between each embodiment identical similar part mutually referring to.
It should be understood by those skilled in the art that, the embodiment of the embodiment of the present invention can be provided as method, apparatus or calculateMachine program product.Therefore, the embodiment of the present invention can use complete hardware embodiment, complete software embodiment or combine software andThe form of the embodiment of hardware aspect.Moreover, the embodiment of the present invention can use one or more wherein include computer canWith in the computer-usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) of program codeThe form of the computer program product of implementation.
The embodiment of the present invention be with reference to according to the method for the embodiment of the present invention, terminal device (system) and computer programThe flowchart and/or the block diagram of product describes.It should be understood that it can realize flowchart and/or the block diagram by computer program instructionsIn each flow and/or block and flowchart and/or the block diagram in flow and/or square frame combination.These can be providedComputer program instructions are set to all-purpose computer, special purpose computer, Embedded Processor or other programmable data processing terminalsStandby processor is to produce a machine so that is held by the processor of computer or other programmable data processing terminal equipmentsCapable instruction is produced and is used for realization in one flow of flow chart or multiple flows and/or one square frame of block diagram or multiple square framesThe device for the function of specifying.
These computer program instructions, which may also be stored in, can guide computer or other programmable data processing terminal equipmentsIn the computer-readable memory to work in a specific way so that the instruction being stored in the computer-readable memory produces bagThe manufacture of command device is included, which realizes in one flow of flow chart or multiple flows and/or one side of block diagramThe function of being specified in frame or multiple square frames.
These computer program instructions can be also loaded into computer or other programmable data processing terminal equipments so thatSeries of operation steps is performed on computer or other programmable terminal equipments to produce computer implemented processing, so thatThe instruction performed on computer or other programmable terminal equipments is provided and is used for realization in one flow of flow chart or multiple flowsAnd/or specified in one square frame of block diagram or multiple square frames function the step of.
Although having been described for the preferred embodiment of the embodiment of the present invention, those skilled in the art once know baseThis creative concept, then can make these embodiments other change and modification.So appended claims are intended to be construed toIncluding 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 byOne entity or operation are distinguished with another entity or operation, without necessarily requiring or implying these entities or operationBetween there are any actual relationship or order.Moreover, term " comprising ", "comprising" or its any other variant meaningCovering non-exclusive inclusion, so that process, method, article or terminal device including a series of elements are not only wrappedThose key elements are included, but also including other elements that are not explicitly listed, or further include as this process, method, articleOr the key element that terminal device is intrinsic.In the absence of more restrictions, wanted by what sentence "including a ..." limitedElement, it is not excluded that also there are other identical element in the process including the key element, method, article or terminal device.
Above to a kind of method and apparatus of terminal communication provided by the present invention, it is described in detail, herein shouldThe principle of the present invention and embodiment are set forth with specific case, the explanation of above example is only intended to help to manageSolve the method and its core concept of the present invention;Meanwhile for those of ordinary skill in the art, according to the thought of the present invention,There will be changes in embodiment and application range, in conclusion this specification content should not be construed as to this hairBright limitation.