(Page 7 of 11 in this chapter)


5.6 Line Interface Signaling

This section describes how to interpret signaling from a line interface, and how to control an interface by sending signaling bits to it.

5.6.1 Overview

There are two signaling directions (shown in Figure 6):

The line interfaces on the board convert the signaling into the line condition appropriate for the line type (e.g. loop start, etc.). They also convert incoming information into digital signals recognizable by AG applications.

Figure 6. Transmit and Receive Signaling


On the AG Connect board, stream 17 is used for line interface signaling. Figure 7 shows the signaling in the context of the MVIP switch model:

Figure 7. Transmit and Receive Signaling In MVIP Switch Model


To monitor receive signals, or to set transmit signals for a line interface, your application can examine or change the data in stream 17 (the line interface signaling stream), in the timeslot associated with the interface.

Note that line interfaces are numbered from 1 upward; timeslots from 0 upward. For example, to direct the phone connected to line interface 5, send the signal byte to Stream:Timeslot 17:4.

Figure 8 illustrates a signaling stream byte. The A bit is used to control or monitor the line. Bits B, C, and D are undefined.

Figure 8. Bits in Signaling Byte


The A-bit in the timeslot for a line interface is used differently, depending upon whether the line interface is a loop start or OWS interface. The following sections describe the purpose of the A-bit in each case.

5.6.2 Loop Start Transmit Signaling

With loop-start interfaces, the A-bit transmitted in the signaling timeslot for a loop-start interface causes the interface to seize the line (go off-hook) or release the line (go on-hook). If bit A is set to 1, the line goes off-hook. If bit A is set to 0, the line goes on-hook. Bits B, C and D are reserved, and should be set to 0:

Figure 9. Loop Start Transmit Signaling


Note that if you issue a ResetSwitch command, all bits are set to 0.

5.6.3 Loop Start Receive Signaling

Depending on whether the line has been placed on-hook or off-hook (by setting the A bit), the A-bit received acts either as a ring or loop current indicator. When the line is on-hook, monitoring the A bit will tell you if the line is ringing or not. When the line is off-hook, monitoring the A bit will indicate whether there is loop current flowing or not:
A-bit Setting

Means the following:

(line on-hook)

(line off-hook)

0

Line is not ringing

No loop current

1

Line is ringing

Current is flowing

Bits B, C and D are reserved, and should be ignored.

Figure 10. Loop Start Receive Signaling

5.6.4 Operator Work Station (OWS) Transmit Signaling

The A-bit transmitted in the signaling timeslot for an OWS interface enables or disables the talk battery feed (the power) to the phone attached to that interface. If the A-bit is 0, talk battery feed is disabled. If the A-bit is 1, talk battery feed is enabled. Bits B, C and D are reserved, and should be set to 0:

Figure 11. OWS Transmit Signaling


Note that if you issue a ResetSwitch command, all bits are set to 0.

5.6.5 OWS Receive Signaling

If talk battery feed is enabled, the A-bit received in the signaling timeslot for an OWS interface indicates whether loop current is flowing or not (that is, whether the phone is off-hook or not). If the A-bit is 0, no loop current is flowing. If the A-bit is 1, current is flowing. Bits B, C and D are reserved, and should be ignored:

Figure 12. OWS Receive Signaling


Note that the A-bit in this case is meaningless unless talk battery feed is enabled.

5.6.6 Monitoring the Receive Signals

You can use the SwitchPath CxSampleInput() function to sample the receive signal for a line or phone programmatically. Alternatively, you can use the SW Utility's SampleInput command.

For example, the following SW Utility command samples the receive signal of the phone connected to the first line interface of device "cx0":

SampleInput cx0 17:0
If the phone was on-hook, SW Utility would return the following message, indicating that bit A of Stream:Timeslot 17:0 is 0:

17:00=00
If the phone was off-hook, SW Utility would return this message, indicating that bit A of Stream:Timeslot 17:0 is set:

17:00=0f

5.6.7 Controlling the Transmit Signals

You can control the A-bit in either of the following ways:



(Page 7 of 11 in this chapter)


Tech_Support@nmss.com
Copyright © 1996, Natural MicroSystems, Inc. All rights reserved.