Summary of the invention
The technical problem underlying that the present invention will solve is, what a kind of TV conference system was provided realizes automatic circuit reverse method and device on heterogeneous network, and this method and apparatus can be accelerated the speed of line switching.
For solving the problems of the technologies described above, the technical scheme that the present invention adopts is following:
A kind of automatic circuit reverse method of TV conference system; Comprise between the communication two ends and connect IP circuit and E1 circuit simultaneously; Said E1 circuit is at least one, and wherein said E1 circuit is that the master uses circuit, and said IP circuit is an extension wire; And said communication two ends are called out simultaneously through said E1 circuit and said IP circuit in advance and are connected, and the said E1 circuit of current employing carries out video/audio code stream communication;
Detect the line status of said E1 circuit,, then carry out corresponding line switching according to predetermined line switching strategy if the line status of said E1 circuit is a fault.
Further, said predetermined line switching strategy comprises: when the line status of whole E1 circuits is fault, video/audio code stream communication is communicated to said IP circuit from said E1 line switching; After video/audio code stream communication was switched to the IP circuit, the line status that detects all or part of said E1 circuit was switched back said E1 circuit for just often with video/audio code stream communication.
Further, detect the step of the line status of said E1 circuit, comprising:
Adopt end-to-end line status judgment model, judge the said E1 circuit fault whether between the communication two ends,, confirm that then said E1 line status is a fault if judge said E1 line fault; If judge said E1 circuit fault-free, confirm that then said E1 line status is normal.
Further; After video/audio code stream communication is switched to the IP circuit; The line status that detects all or part of said E1 circuit is for just often, and the line status of this all or part of said E1 circuit, in preset time T; All continue normally then said E1 circuit to be switched back in video/audio code stream communication and communicated.
Further, said predetermined line switching strategy also comprises: when the line status of the said E1 circuit of part is fault, reduce the video/audio code stream traffic rate at communication two ends.
Further, when being lower than the conference rate of multipoint control unit configuration as if the traffic rate behind the process reduction of speed at communication two ends, then said multipoint control unit carries out adaptation processing to the video/audio code stream between each communication equipment in the meeting.
Further; Said predetermined line switching strategy also comprises: in the E1 circuit that detects fault; Have at least the line status of an E1 circuit to revert to just often; Promote the video/audio code stream traffic rate at communication two ends, and when if the traffic rate after process the raising speed at communication two ends is lower than the conference rate that multipoint control unit disposes, then said multipoint control unit carries out adaptation processing to the video/audio code stream between each communication equipment in the meeting.
A kind of automatic circuit changeover apparatus of TV conference system, communication comprises IP circuit and E1 circuit between the two ends, and said E1 circuit is at least one, and wherein said E1 circuit is that the master uses circuit, and said IP circuit is an extension wire; Said automatic circuit changeover apparatus comprises control module, detection module and line switching module, wherein,
Said control module; Be used for control communication two ends and connect said IP circuit and said E1 circuit simultaneously, and call out simultaneously through said E1 circuit and said IP circuit in advance, and adopt said E1 circuit to carry out video/audio code stream communication; Simultaneously; Trigger said detection module said E1 circuit is detected in real time, and formulate corresponding line switching strategy, and send to said detection module according to said IP circuit and said E1 circuit; Said line switching strategy communicates the said E1 line switching of video/audio code stream communication from current employing for when the line status of whole said E1 circuits is fault to said IP circuit; Behind line switching, the line status that detects all or part of said E1 circuit is normal said E1 circuit for just often with said IP line switching loop line line state;
Said detection module; Link to each other with said control module; Be used for detecting in real time the line status of said E1 circuit,, then trigger the said line switching strategy that said line switching module formulates according to said control module and carry out corresponding line switching if the line status of said E1 circuit is a fault;
Said line switching module links to each other with said detection module, is used for when line status that detection module detects said E1 circuit is fault, carrying out corresponding line switching according to said line switching strategy.
Further, said detection module comprises that end-to-end judgement submodule and line status confirm submodule, saidly end-to-endly judges that submodule is used to adopt end-to-end line status judgment model to judge the said E1 circuit fault whether between the communication two ends; Said line status is confirmed submodule; Link to each other with said end-to-end judgement submodule; Be used for when said end-to-end judgement submodule is judged said E1 line fault; The line status of confirming the said E1 circuit between said communication two ends is a fault, and when said end-to-end judgement submodule was judged the said E1 circuit fault-free of communication between two ends, the line status of confirming the said E1 circuit between said communication two ends was for normal.
Further, said automatic circuit changeover apparatus also comprises Postponement module; Said detection module also be used for when with video/audio code stream communication from said E1 line switching behind the IP circuit; The line status that detects all or part of said E1 circuit reverts to just often; Trigger said Postponement module to schedule T pick up counting; And the line status that is used to detect the normal E1 circuit of all or part of recovery, in said scheduled time T, whether continue normal; If then triggering said line switching module is normal said E1 circuit with video/audio code stream communication from said IP line switching loop line line state; Said Postponement module links to each other with said detection module, be used for detecting when said detection module, when said E1 circuit after be changed to the IP circuit, the line status of all or part of said E1 circuit reverts to just often, T picks up counting according to preset time; Said line switching module also is used for detecting when said detection module, and in said scheduled time T, the line status of all or part of E1 circuit all continues normal, is normal said E1 circuit with said IP line switching loop line line state then.
Further, said predetermined line switching strategy also comprises: when the line status of the said E1 circuit of part was fault, adopting the residue line status was that normal E1 circuit communicates; In the E1 circuit that detects disconnection, have at least the line status of an E1 circuit to revert to just often, adopting all line statuss is that normal said E1 circuit carries out video/audio code stream communication; Said line switching module also is used for when line status that said detection module detects the said E1 circuit of part is fault, and the video and audio communication speed at communication two ends is descended, and promptly adopting the residue line status is that normal E1 circuit communicates; And the E1 circuit that is used for detecting disconnection when said detection module; Have at least the line status of an E1 circuit to revert to just often; The video and audio communication speed at communication two ends is raise, and promptly adopting all line statuss is that normal E1 circuit carries out video/audio code stream communication; And if the communication two ends are lower than the conference rate that MCU disposes through the traffic rate after reduction of speed/raising speed, then multipoint control unit carries out adaptation processing to the video/audio code stream between each communication equipment in the meeting.
The invention has the beneficial effects as follows:
Automatic circuit reverse method of the present invention carries out call setup through E1 circuit and IP circuit simultaneously through the communication two ends and is connected; And be employed in the main circuit of using; Promptly on the E1 circuit, carry out video/audio code stream communication; And when the E1 circuit breaks down, carry out corresponding line switching according to predetermined line switching strategy.Owing to call out through E1 circuit and this IP circuit in advance simultaneously; Promptly open main simultaneously with communication channel and spare communication channel; When carrying out line switching, directly the E1 line switching is got final product for the IP circuit, perhaps directly this IP line switching is got final product for the E1 circuit; Avoided calling out the situation of relevant terminal through this IP circuit, thereby accelerated the speed of switching of circuit temporarily.
Automatic circuit reverse method of the present invention; Through with the E1 line switching behind the IP circuit; Detect all or part of E1 circuit and recover just often, and in preset time T, this all or part of E1 circuit continues normal; Again the IP line switching being returned this line status is normal all or part of E1 circuit, thereby has avoided owing to unstable frequently the switching of causing of E1 circuit.
Because the present invention adopts end-to-end synchronization character alarm judgment model to judge the line status of the E1 circuit between the communication two ends; When making E1 line fault between the communication two ends, the communication two ends can be learnt corresponding E1 line fault simultaneously, and line switching is carried out at the communication two ends simultaneously; Avoided because the setting of xegregating unit in the network such as switch etc.; When having only a route road to break down, have only a termination to receive the alarm indication that this xegregating unit (like switch) produces, the two ends of promptly communicating by letter can not be learnt line fault simultaneously; And cause to carry out simultaneously the problem of switching of circuit; Thereby when accelerating line fault and the judgement of line fault after recovering, improves the actual speed of switching, and the environment of suitable multiple E1 networking.
Embodiment
In conjunction with the accompanying drawings the present invention is further explained below by the specific embodiment.Please refer to Fig. 1, be the structural representation of an embodiment of the automatic circuit changeover apparatus of the TV conference system of this execution mode.Communication comprises IP circuit and at least one E1 circuit between the two ends in the TV conference system of this execution mode, and to adopt the E1 circuit be that main use circuit, IP circuit be extension wire, and the two ends of communicating by letter are provided with the automatic circuit changeover apparatus of this execution mode.
The automatic circuit changeover apparatus of the TV conference system of this embodiment comprises control module 100, detection module 101, line switching module 102 and Postponement module 103; Wherein, Control module 100 is used for control communication two ends and is connected with IP circuit while call setup through this E1 circuit in advance; And adopting this E1 circuit to carry out video/audio code stream communication, the E1 circuit detects in real time between the two ends of 101 pairs of communication of detection trigger module simultaneously; And formulate corresponding line switching strategy, and send to detection module 101 based on this IP circuit and all E1 circuits.Wherein, this predetermined line switching strategy carries out video/audio code stream communication with all E1 line switchings to the IP circuit for when the line status of whole E1 circuits is fault; After video/audio code stream communication is switched to the IP circuit; Detect the line status of all E1 circuits once more; If the line status that wherein has an E1 circuit at least is for normal; The line status that is whole E1 circuits or part E1 circuit is for just often, and it is normal all or part of E1 circuit that video/audio code stream communication is returned this line status from the IP line switching; Detection module 101 links to each other with control module 100; Be used for detecting in real time the line status of the E1 circuit between the communication two ends; If detecting the line status that has an E1 circuit at least is fault, then carry out corresponding line switching according to predetermined line switching strategy, the line status that even detects whole E1 circuits is a fault; Then triggering this line switching module 102 is the IP circuit with video/audio code stream communication from the E1 line switching; And be used for after all E1 line switchings are the IP circuit, the line status that detects all or part of E1 circuit once more in real time reverts to just often, triggers clock 104 and picks up counting; And in the scheduled time T of these clock 104 timing; It is normal whether the line status that detects this line status and be normal E1 circuit continues, if then triggering line switching module 102 is that line status is normal E1 circuit with video/audio code stream communication from the IP line switching; Line switching module 102; Link to each other with detection module 101; Being used for when line status that this detection module 101 detects whole E1 circuits is fault, be the IP circuit with video/audio code stream communication from the E1 line switching, and the line status that detects all or part of E1 circuit once more when detection module 101 is for normal; And in Postponement module 103 preset time T, continuing just often, is normal E1 circuit with video/audio code stream communication from IP line switching loop line line state; Postponement module 103 links to each other with detection module 101; The line status that is used for detecting all or part of E1 circuit when detection module 101 is for just often; T picks up counting according to preset time; And when detection module 101 in this preset time T, detect for the first time the line status during that wherein has an E1 circuit at least once more for fault, then stop timing.
The line switching strategy that the control module of the automatic circuit changeover apparatus of this execution mode is formulated also comprises: when the line status that detects part E1 circuit at the beginning is a fault; Adopt the mode of the video/audio code stream traffic rate that reduces the communication two ends, thereby reduce the bandwidth of using; And recover just often when detecting the line status that has an E1 circuit in this faulty component E1 circuit at least, adopt the video/audio code stream traffic rate that promotes the communication two ends; Then line switching module 102 also is used for when the line status of part E1 circuit is fault; Being used for the open-circuit line state is the E1 circuit of fault; Adopting line status is that normal E1 circuit carries out video/audio code stream communication; Promptly adopt the mode of reduction of speed to reduce the bandwidth of use, and ought be checked through once more in the part E1 circuit of this fault, have at least the line status of an E1 circuit to recover just often; Then adopting all line statuss is that normal E1 circuit communicates, and promptly adopts the mode of the video/audio code stream traffic rate that promotes the communication two ends.
In one specific embodiment of this execution mode, if line status is that normal E1 circuit has the n bar, during the speed of the video/audio code stream communication at lifting/reduction communication two ends, the traffic rate less than n * 2Mbps at communication two ends; And if the traffic rate after the process reduction of speed latter raising speed of communication two ends is lower than MCU (Mutipoint Control Unit; Multipoint control unit) conference rate of configuration, then multipoint control unit carries out adaptation processing to the video/audio code stream between each communication equipment in the meeting.
In one specific embodiment of this execution mode; When between the communication two ends, n bar E1 circuit is arranged; When an E1 line fault, then line switching module 102 is broken off this E1 circuit, thereby becomes n-1 bar E1 circuit by n bar E1 circuit between the communication two ends; Traffic rate has reduced, thereby has reduced the bandwidth of using; When another E1 line fault; Then line switching module 102 is broken off this E1 circuit, thereby becomes n-2 bar E1 circuit by n-1 bar E1 circuit between the communication two ends, and traffic rate has further reduced; And further reduced the bandwidth of using; And the like, when whole E1 line fault, then directly with whole E1 line switchings to the IP circuit; And have in 2 E1 circuits of this fault the line status of or two E1 circuits to revert to just often, then this employings line status is that this n-1 bar E1 circuit or n bar E1 circuit communicate normally.
Among the another embodiment of this execution mode, when between the communication two ends, n bar E1 circuit is arranged, line switching is behind the IP circuit, and detection module has detected an E1 circuit just often, and then line switching module 102 arrives this E1 circuit with the IP line switching; When detecting an E1 circuit again just often; Then through these normal two E1 line traffics, become 2 E1 circuits by 1 E1 circuit thereby communicate by letter between two ends, communication speed has improved; And further improved the bandwidth of using; And the like, when whole E1 circuits just often, then directly adopt whole E1 circuits to communicate.
The line status of the E1 circuit of this execution mode comprises that fault is with normal.
The inspection module of this execution mode comprises that end-to-end judgement submodule and line status confirm submodule, and wherein, end-to-end judgement submodule is used to adopt end-to-end line status judgment model, judges the E1 circuit fault whether between the communication two ends; Line status is confirmed submodule; Link to each other with this end-to-end judgement submodule; Be used for when this end-to-end judgement submodule is judged E1 line fault; The line status of confirming this E1 circuit between the communication two ends is a fault, and when this end-to-end judgement submodule was judged this E1 circuit fault-free, the line status of confirming this E1 circuit between these communication two ends was for normal.
Adopt end-to-end circuit shape body judgment model to judge the E1 circuit fault whether between the communication two ends in this execution mode, the end-to-end frame alignment synchronization character of working time slot (the 0-15 time slot of E1 circuit and 17-31 time slot) transmission of E1 circuit all pass through so that the two ends communication equipment is judged end-to-end line status in the two ends of promptly communicating by letter.
This execution mode adopts end-to-end line status judgment model to judge the line status of the E1 circuit between the communication two ends; Make the communication two ends can learn simultaneously whether corresponding E1 circuit is normal, if undesired, the two ends of then communicating by letter can be received end-to-end frame alignment alarm indication simultaneously; Two ends can receive simultaneously that end-to-end frame alignment normally indicates if normally then communicate by letter; Avoid adopting common E1 the 0th slot synchronization word alarm judgment model, make the communication two ends can not learn E1 line fault simultaneously, and the two ends that cause communicating by letter can not have been carried out line switching simultaneously; Be that this execution mode adopts the judgment model of circuit alarm end to end; Make the communication two ends can learn corresponding E1 line fault simultaneously, thereby carry out line switching simultaneously, and then improve actual speed of switching.
The automatic circuit changeover apparatus of present embodiment is connected with E1 circuit while call setup by the IP circuit by control module 100 control communication two ends in advance; And adopt the E1 circuit to carry out video/audio code stream communication; And formulate corresponding line switching strategy, detect main line status in real time by detection module 101 again, if the line status of part E1 circuit is a fault with circuit; Then adopt the communication speed that reduces between the communication two ends to reduce employed bandwidth; If all the line status of E1 circuits is a fault, then triggering line switching module 102 is the IP circuit with the E1 line switching of current employing, and promptly present embodiment is connected with IP circuit while call setup by this E1 circuit by control communication two ends in advance; Promptly opened main transmission channel in advance simultaneously with communication channel and spare communication channel; Make when detecting whole E1 line fault, can be immediately with the E1 line switching to the IP circuit, promptly accelerated the speed of switching of circuit; And when detection module behind the line switching 101 detects the line status that has an E1 circuit at least for after normal; Start delay module 104, and detect in this Postponement module 104 preset time T, line status is that normal E1 circuit all continues normally; Then be that line status is normal E1 circuit with the IP line switching; Be that present embodiment adopt to postpone Switchover mechanism, when having avoided immediately the IP line switching being returned the E1 circuit, the frequent line switching that causes owing to the instability of E1 circuit.
Postponement module in this execution mode is a clock, can certainly be for can in this execution mode, playing other modules or the device of same function.
Based on above-mentioned automatic circuit changeover apparatus, this execution mode also provides a kind of automatic circuit reverse method of TV conference system.
Please refer to Fig. 2, be the flow chart of an embodiment of the automatic circuit reverse method of the TV conference system of this execution mode.The automatic circuit reverse method of the TV conference system of this execution mode comprises:
S201, the communication two ends are connected with at least one E1 circuit while call setup through the IP circuit in advance.
E1 circuit in the present embodiment is that main to use circuit, IP circuit be extension wire.Communication two ends in this execution mode are connected with E1 circuit while call setup through the IP circuit in advance; The equipment (terminal or MCU) that is to say the circuit two ends all can be called out through E1 circuit and IP circuit; Promptly on the E1 circuit, carry out H.221 frame synchronization; On the IP circuit, H.323 call out, capabilities exchange, and open the logical channel of video, audio frequency, data.
S203, current employing E1 circuit carries out video/audio code stream communication.
Current employing E1 circuit in this execution mode communicates and that is to say that current is the transmitting-receiving of carrying out video, audio frequency, data code flow on the E1 circuit the master with circuit; At extension wire is the transmitting-receiving of not carrying out code stream on the IP circuit.
In the automatic circuit reverse method of this execution mode the communication two ends in advance through connect IP circuit and E1 circuit simultaneously call setup is connected, promptly through opening spare communication passage and the transmission channel of master simultaneously, feasible when whole E1 line fault with communication port; Can be switched to the IP circuit at once; When having avoided only opening main transmission channel with communication port, all after the E1 line faults, must the whole E1 circuits of disconnection after; Again connect the IP circuit; Promptly again through IP line call-up (on the IP circuit, H.323 calling out), capabilities exchange, and open the logical channel of video, audio frequency, data; And the line switching speed that causes is low, thereby has accelerated the speed of line switching.
S205 detects the line status of every E1 circuit in real time, and the line status that judges whether at least one E1 circuit is a fault, if execution in step S207 then detects otherwise continue executive real-time.
The line status of E1 circuit comprises that fault is with normal in this execution mode.
Detect the line status of E1 circuit in one specific embodiment of this execution mode; Thereby judging the line status whether the E1 circuit is arranged is fault, and its testing process is through adopting end-to-end line status judgment model to judge that the line status of the E1 circuit between the communication two ends is a fault or normal, if fault; The two ends of then communicating by letter can be received end-to-end frame synchronization alarm indication simultaneously; If normal, the two ends of then communicating by letter can receive simultaneously that end-to-end frame synchronization normally indicates, and have avoided adopting common E1 the 0th slot synchronization word alarm judgment model; Make the communication two ends can not learn E1 line fault simultaneously; And the two ends that cause communicating by letter can not be carried out line switching simultaneously, and promptly this execution mode adopts the judgment model of circuit alarm end to end, make the communication two ends can learn corresponding E1 line fault simultaneously; Thereby carry out line switching simultaneously, and then improve actual speed of switching.
S207 judges whether that the line status of whole E1 circuits is fault, if, execution in step S209a then, otherwise execution in step S209b.
Please refer to Fig. 5, owing to have under the networking model of ATM switch, when having only an equipment; For example the terminal in switch left side or MCU are when switch E1 circuit breaks down; Then the terminal in this left side or MCU have the alarm of E1 line synchronization word, but the terminal on switch right side or MCU then can not receive the alarm of E1 line synchronization word, and the terminal at the two ends of promptly communicating by letter or MCU can not communicate by letter on this E1 circuit; Though the left side receive alarm after can carry out line switching; But because the terminal or the MCU of right-hand member do not receive alarm, will can not carry out line switching, thereby on the contrary the terminal of switch both sides or MCU can not communicate by letter at once.
When this execution mode is alarmed judgment model through this end-to-end synchronization character; Break down when judging this E1 circuit; The communication two ends can obtain end-to-end circuit alarm simultaneously; Thereby carry out subsequent treatment and carry out corresponding line switching, avoided the communication two ends can not receive the alarm indication simultaneously, promptly can not carry out the problem of line switching simultaneously.
End-to-end line status judgment model in this execution mode is meant in the load of 1-31 time slot, adds self-defining information field, thereby can get rid of the interference of ATM switch networking; The two ends of promptly communicating by letter are all passed through the working time slot of E1 circuit (the 0-15 time slot of E1 circuit and 17-31 time slot) and are sent end-to-end frame alignment synchronization character; So that whether the two ends communication equipment is judged end-to-end circuit unimpeded, if not smooth, the two ends of then communicating by letter can be received end-to-end frame alignment alarm indication simultaneously; Thereby judge that end-to-end line status is a fault; If unimpeded, end-to-end normal indication is received at the two ends of then communicating by letter, thereby judges that end-to-end line status is for normal.
S209a, with video/audio code stream communication from current E1 line switching to IP circuit, execution in step S211.
S209b, adopting line status is normal E1 line traffic, promptly adopts the mode of reduction of speed, execution in step S207.
Be the E1 circuit of fault by the open-circuit line state in the present embodiment, adopting line status is normal E1 line traffic, promptly reduces the bandwidth of use by the mode that reduces communication speed.
After reducing the traffic rate at communication two ends in this embodiment, the traffic rate at these communication two ends is lower than the conference rate of MCU configuration, then carries out corresponding rate adapted by MCU based on the corresponding circuit between this terminal and the other-end.
S211, whether detection in real time has the line status of an E1 circuit at least for normal, if then execution in step S213 detects otherwise continuation is real-time.
In one specific embodiment of this execution mode, when detect have an E1 circuit at least line status for just often, being about to IP line switching loop line line state is normal E1 circuit; And whether the line status that detects other E1 circuits simultaneously in real time is normal; If, then communicate for normal all E1 circuits through line status, promptly the mode through the lifting communication speed improves the bandwidth of use; And after the circuit switched; After promptly promoting the traffic rate at communication two ends, the traffic rate at these communication two ends is lower than the conference rate of MCU configuration, then carries out corresponding rate adapted by MCU according to the corresponding circuit between this terminal and the other-end.
In another specific embodiment of present embodiment, have only the line status that ought detect whole E1 circuits for just often, be on the normal E1 circuit from IP line switching loop line line state just with video/audio code stream communication.
S213 judges in preset time T, and it is normal that detected line status is whether the line status of normal E1 circuit continues, if, execution in step S215 then, otherwise, execution in step S211.
Among one embodiment of the automatic circuit switchover mode of this execution mode; The line status that judges whether at least one E1 circuit is normal step; Be through adopting end-to-end line status judgment model to judge whether the line status of every E1 circuit between the communication two ends is normal; And in preset time T, end-to-end frame alignment alarm indication is not received at the two ends of communicating by letter, and promptly this line status is line status whole continuing normally in the time T that presets of normal E1 circuit; Just the IP line switching loop line line state with current employing is normal E1 circuit; Promptly adopt to postpone Switchover mechanism, avoided once detecting the E1 circuit when recovering all normally immediately the IP circuit to be reverted to the E1 circuit, owing to the instability of E1 circuit causes frequent line switching.
S215 is normal E1 circuit with the IP line switching loop line line state between the communication two ends.
The automatic circuit reverse method of this execution mode is whether the line status of normal E1 circuit continues normal through in preset time T, detecting this line status; Promptly postponed line switching; Thereby avoided to receive for the first time that end-to-end frame alignment normally indicates; The line status that promptly detects the E1 circuit recovers just often, when just the IP line switching being returned this E1 circuit, owing to the instability of this E1 circuit causes frequent line switching at once.
The automatic circuit reverse method of this execution mode is under multiple spot networking situation, and when the line fault that MCU is connected with certain terminal was alarmed, the circuit switching only took place between this terminal and MCU, and other-end is unaffected.
Certainly according to the principle of this execution mode, as master channel, the E1 circuit as alternate channel, and is carried out line switching according to IP circuit of this execution mode and the reverse method between the E1 circuit with the IP circuit, also be understandable.
Be described in detail below in conjunction with specific embodiment and accompanying drawing automatic circuit reverse method the TV conference system of present embodiment.
Please refer to Fig. 3, be the schematic network structure of an embodiment of the TV conference system of present embodiment.The video conferencing networking of present embodiment is the multiple spot networking, and the communication two ends are respectively first terminal 301 and the MCU303, and second terminal 302 and the MCU303; Wherein, first terminal 301 and the MCU303, and second terminal 302 and the MCU303; All separately through optical transceiver on the E1 interface; Connect through main line networks such as optical-fiber networks, and this first terminal 301, second terminal also respectively through router on the Ethernet switch 304, are connected with MCU303 through IP network.
Please refer to Fig. 4, be the flow chart of an embodiment of the automatic circuit reverse method of the TV conference system of this execution mode.Based on above-mentioned multiple spot networking structure, the automatic circuit reverse method of present embodiment comprises:
S401, first terminal 301 and the MCU303, and second terminal 302 and the MCU303 n bar E1 circuit between separately and IP circuit in advance simultaneously call setup be connected.
Passing through corresponding separately n bar E1 circuit in this execution mode is connected with IP circuit while call setup; Promptly first terminal 301 is called out through corresponding n bar E1 circuit and IP circuit separately with MCU303 and (on the E1 circuit, is carried out H.221 frame synchronization; On the IP circuit, H.323 call out); Capabilities exchange, and open the logical channel of video, audio frequency, data; In like manner; Also call out through corresponding n bar E1 circuit and IP circuit separately between second terminal 302 and the MCU303 and (on the E1 circuit, carry out H.221 frame synchronization; On the IP circuit, H.323 call out), capabilities exchange, and open the logical channel of video, audio frequency, data.
S403, first terminal 301 and the MCU303, and all to adopt n bar E1 circuit between second terminal 302 and the MCU303 be master channel, the IP circuit is an alternate channel.Promptly all on this n bar E1 circuit, carry out the transmitting-receiving of video, audio frequency, data code flow; On extension wire, do not carry out the transmitting-receiving of code stream.
S405 adopts end-to-end line status mode detection first terminal 301 and the MCU303, and whether having the line status of an E1 circuit at least in the n bar E1 circuit between second terminal 302 and the MCU303 is fault, if, execution in step S407 then, otherwise continue to detect.
S407 judges whether the line status of this n bar E1 circuit between this first terminal 301 and the MCU303 all is fault, if, execution in step S409a then, otherwise execution in step S409b.
S409a; With this n bar E1 line switching of whole faults between this first terminal 301 and the MCU303 is the IP circuit; Promptly first terminal 301 is carried out video/audio code stream with MCU303 through corresponding IP circuit and is communicated by letter, and that is to say the transmitting-receiving of the enterprising line data code stream of the logical channel of having opened at extension wire; Execution in step S411.
S409b breaks off that line status is the E1 circuit of fault between first terminal 301 and the MCU303, and promptly only adopting line status is that normal E1 circuit carries out video/audio code stream communication, and execution in step S405.
This remaining line status of order is that normal E1 circuit has L (bar of L<n), the traffic rate that then adopts this L bar E1 circuit to carry out between the communication two ends of video/audio code stream communication is no more than L*2Mbps in the present embodiment.
Be that the line status of normal L bar E1 circuit is when becoming fault if detect line status between this first terminal 301 and the MCU303 once more in real time in the present embodiment; Then continue to adopt the reduction of speed pattern; Be that the open-circuit line state is the E1 circuit of fault; And when whole E1 circuits all breaks off, execution in step S409a then; Revert to just often if detect line status between this first terminal 301 and the MCU303 in real time and be the line status of the L bar E1 circuit of fault, then adopt the mode of raising speed, promptly adopting current all line statuss is that normal E1 circuit carries out video and audio communication.
Whether S411 adopts end-to-end line status judgment model to detect in real time in the n bar E1 circuit between first terminal 301 and the MCU303 and has at least the line status of a circuit E1 circuit to revert to normally, if, execution in step S413 then, otherwise, detection continued.
Order has the line status of L1 bar E1 circuit to revert to normally in the present embodiment, wherein 1<L1≤n.
In the present embodiment, also can adopt when end-to-end line status judgment model detect in real time between first terminal 301 and the MCU303 n bar E1 circuit all just often, execution in step S413.
S413, first terminal 301 starts 1 timer simultaneously with MCU303, and picks up counting.
Adopt 10 seconds timers in the present embodiment, its preset time T is 10 seconds, promptly need detect in 10 seconds of this timer, and whether end-to-end circuit has any alarm.
S415 judges at timer preset time T, in promptly 10 seconds; Whether end-to-end circuit has any alarm, if, execution in step S417a then; Otherwise promptly this line status is line status whole continuing normally in these 10 seconds of normal E1 circuit, and execution in step S417b.
Whether the test side has any alarm to end line in the present embodiment, and whether all E1 circuits that promptly detect first terminal 301 to MCU303 have any alarm in 10 seconds of timer timing, the alarm indication of promptly end-to-end location.
S417a when obtaining first alarm indication, ends this 10 seconds timers, execution in step S411.
S417b, it is normal L1 bar E1 circuit that the IP line switching between first terminal 301 and the MCU303 is returned this line status, promptly adopts the raising speed mode.
The traffic rate that adopts this L1 bar E1 circuit to carry out between the communication two ends of video/audio code stream communication in the present embodiment is no more than L1*2Mbps.
After adopting the mode of raising speed in this embodiment,, then carry out corresponding rate adapted based on the corresponding circuit between this terminal and the other-end by MCU if the traffic rate at these communication two ends is lower than the conference rate of MCU configuration.
Certainly at video conference terminal more for a long time, need through the MCU cascade, then also can backup each other through E1 circuit and two kinds of different circuits realizations of IP circuit between MCU and the main MCU.
Above content is to combine concrete execution mode to the further explain that the present invention did, and can not assert that practical implementation of the present invention is confined to these explanations.For the those of ordinary skill of technical field under the present invention, under the prerequisite that does not break away from the present invention's design, can also make some simple deduction or replace, all should be regarded as belonging to protection scope of the present invention.