(Page 5 of 7 in this chapter)
4.4 Disabling Output
If an output terminus is connected to an input terminus, or if there is a pattern being sent out of the output terminus,
swiDisableOutput
breaks the connection or stops sending the pattern.
For example, to break the
connection from the incoming digital line's voice streams to the operator station's voice streams via the MVIP bus, you would disable the outputs from the incoming digital line's switch block.
Caution:
It is important to disable an output when the connection or pattern is no longer required. Leftover connections or patterns can cause unpredictable behavior in the application.
Figure 10
illustrates the state of the MVIP switches before the output is disabled from the incoming digital line's switch block.
Figure 10. MVIP Switches Before Output is Disabled
The following code shows how to break the connection:
void myReconfigureT1Line(SWIHD t1hd, DWORD timeslot)
{
SWI_TERMINUS output;
/* Disable outputs of switch to mvip:0:timeslot */
output.bus = MVIP95_MVIP_BUS;
output.stream = 0;
output.timeslot = timeslot;
swiDisableOutput
(t1hd, &output, 1);
/* Disable outputs of switch to local:1:timeslot */
output.bus = MVIP95_LOCAL_BUS;
output.stream = 1;
output.timeslot = timeslot;
swiDisableOutput
(t1hd, &output, 1);
}
Figure 11
illustrates the state of the
MVIP switches after the output is disabled from the incoming digital line's switch block.
Figure 11. MVIP Switches After the Output Has Been Disabled
(Page 5 of 7 in this chapter)
tech_support@nmss.com
Copyright © 1997, Natural MicroSystems, Inc. All rights reserved.