CAS Protocols Reference Manual
CAS Protocols Reference Manual
P/N 6675-10
Every effort has been made to ensure the accuracy of this manual. However, due to
the ongoing improvements and revisions to our products, Natural MicroSystems
cannot guarantee the accuracy of the printed material after the date of publication,
or accept responsibility for errors or omissions. Revised manuals and update sheets
may be published when deemed necessary by NMS.
Revision History
Revision Release Date Notes
1.0 June, 1999 SJC
This manual printed: June 23, 1999
Table of Contents
Developer Support . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . v
1 MFC-R2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
1.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
1.2 MFC-R2 Line Signaling . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
1.3 MFC-R2 Register Signaling . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
1.4 TCP Parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
1.5 Country-Specific Implementation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
1.5.1 Argentina . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
1.5.2 Bahrain . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
1.5.3 Bolivia . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
1.5.4 Brazil . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
1.5.5 Chile . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31
1.5.6 China. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31
1.5.7 Colombia . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33
1.5.8 Czech Republic. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37
1.5.9 Honduras. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38
1.5.10 India . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38
1.5.11 Indonesia. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41
1.5.12 Korea. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42
1.5.13 Malaysia . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42
1.5.14 Mexico . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44
1.5.15 Panama . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46
1.5.16 Singapore . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46
1.5.17 Thailand . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48
1.6 State Diagrams . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49
1.6.1 Startup and Idle States . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50
1.6.2 Inbound Compelled States . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52
1.6.3 Inbound Accept and Answer Call States . . . . . . . . . . . . . . . . . . . . . 53
1.6.4 Outbound Call Setup States . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55
1.6.5 Connected States. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57
1.7 TCP Performance . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 58
Natural MicroSystems i
Table of Contents CAS Protocols Reference Manual
2 R1.5 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 79
2.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 80
2.2 System R1.5 Line Signaling . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 80
2.2.1 R1.5 Line Signaling – Group 1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 82
2.2.2 R1.5 Line Signaling – Group 2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 83
2.3 System R1.5 Register Signaling . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 85
2.3.1 Register Signaling – MF-PS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 87
2.3.2 Register Signaling – DEK (in Combination With MF-PS) . . . . . . . . 91
2.3.3 Register Signaling – ANIs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 92
2.3.4 Algorithm Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 94
2.3.5 Category Definitions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 97
2.4 TCP Parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 98
2.4.1 Flow Control Parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 98
2.4.2 Flow Control Timers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 101
2.4.3 Outbound Timers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 101
2.4.4 Inbound Timers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 102
2.4.5 Dialing Control . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 102
2.4.6 Ring / Busy Control . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 104
2.4.7 Miscellaneous . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 104
2.5 Call Setup Diagrams . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 105
2.5.1 Local Inbound and Outbound Protocols . . . . . . . . . . . . . . . . . . . . . 105
2.5.2 Long Distance Outbound Protocol . . . . . . . . . . . . . . . . . . . . . . . . . 106
2.5.3 Long Distance Inbound Protocol . . . . . . . . . . . . . . . . . . . . . . . . . . . 109
2.6 State diagrams . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 110
2.6.1 Inbound and Outbound TCP States . . . . . . . . . . . . . . . . . . . . . . . . . 112
2.7 TCP performance. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 124
2.7.1 Optimal Task Processor Configuration . . . . . . . . . . . . . . . . . . . . . . 124
2.7.2 Call Setup Resource Diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 126
2.7.3 Behavior Under Load. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 127
ii Natural MicroSystems
About This Manual
The CAS Protocols Reference Manual presents reference information about NMS
Trunk Control Programs (TCPs), scripts that implement telephony protocols in NMS’
Alliance Generation architecture. This version of the manual contains information
about two TCPs (among several) in the NMS AG CAS product. (More TCPs will be
added in future versions.) This manual is for use by NMS support and sales engineers,
and by external organizations wishing to use the TCP development kit for
implementation of their own TCPs in NMS architecture. Each individual TCP is
described within a chapter, outlining its capabilities and requirements.
Within each chapter, a TCP’s line and register signaling protocols are discussed
through the use of text (for description) and tables (for raw data organization). Also
within these chapters is a comprehensive list of the parameters used in programming
each TCP. Then, to illustrate the TCP’s reaction to various scenarios, diagrams are
given showing the state of the TCP at significant points in the cycle. Finally, each
chapter ends with a set of test data (shown through charts and log files) to analyze the
performance of the TCP and its influences on MIPS and DSP resources.
This manual is organized as follows:
For... See...
Information on implementing the MFC-R2 TCP Chapter 1 - MFC-R2
Related Documents
AG CAS Installation and Describes how to install and run NMS Channel Associated
Developer’s Manual Signaling (CAS) protocol software.
TCP Developer’s Kit Consists of manuals and tools used to create Trunk Control
Manuals Programs for use on Alliance Generation Natural MicroSystems
telephony boards.
CASmon User’s Manual Information about installing and using CASmon, a tool for
monitoring and testing digital trunks and protocols.
PROTtest User’s Manual Information on installing and using PROTtest, a tool that provides
an environment for testing telephony protocols.
iv Natural MicroSystems
Developer Support
Natural MicroSystems provides quality assistance to users of its products. If you have
any technical questions or problems, please contact us using any of the following
addresses and telephone numbers:
Natural MicroSystems Corporation
100 Crossing Blvd.
Framingham, MA 01702 USA
Developer Support engineers are available Monday through Friday. To assist the
engineer who answers your call, please make sure to do the following:
Æ Write down what you were doing when the problem occurred, listing the
steps you followed before the problem occurred and the exact text of any
error messages displayed on your screen.
Æ Know which NMS telephony boards are installed in your system including
the AG board model number, part number, revision number, and serial
number (i.e., model AG-8, P/N 2450, rev. D5, S/N 19564). The last three
items are on a single sticker on the back of the board.
Æ Have some knowledge of the computer you are using including the type of
the computer, the speed of the processor, the amount of memory (RAM),
and the operating system and its version number.
Æ Know which version of NMS drivers and software you have installed and
the names, sizes, and creation dates of any files that were downloaded from
the NMS web site.
Æ Be prepared to submit by fax or e-mail, copies of configuration files and
diagnostic files such as ag.cfg, ag.rpt, agerror.log, qx.cfg, qx.rpt,
qxerror.log, cta.cfg, and applicable code fragments from your
application.
vi Natural MicroSystems
Chapter 1
MFC-R2
Natural MicroSystems 1
Chapter 1 MFC-R2 CAS Protocols Reference Manual
1.1 Introduction
Section Description
Line Signaling Set of signals that represent fixed events in the course of call setup.
Register Signaling The way in which the protocol transmits information as it changes
for each call; as addresses and category specifications for the call.
Parameters A description of all the parameters the host can send the TCP to
program its behavior.
Country-specific A list of variations from the CCITT standard for each country which
Implementation MFC-R2 can be implemented.
2 Natural MicroSystems
CAS Protocols Reference Manual MFC-R2 Line Signaling
the condition of the called party’s line. The following table summarizes the
signaling states of a typical call:
Idle 10 10
ÄÅ
Seizure 00 01
Å
Å
Seizure Acknowledged 00 11
The outbound side starts to send the address information, using in-band compelled MF tones. The
inbound side completes the compelled sequence by accepting or rejecting the call, using the last
backward compelled tone. If the call has been accepted, the inbound side plays a ring tone on the
line, and then signals that the call has been answered by setting the Ab bit to 0.
Å
Ringing 00 11
Å
Answer - conversation state 00 01
If the inbound side rejects the call, the outbound side clears forward by setting the Af bit to 1. The
inbound side goes back to idle, by setting the Bb bit to 0.
Clear forward 10 11
Å
Å
Idle 10 10
During conversation, the outbound protocol can receive billing pulses, to signal that a unit of cost
has been billed to the call. The bit used to carry a billing pulse depends upon national specifications.
Å
Answer - conversation state 00 01
Å
Billing pulses 00 11 or 00
Å
Answer - conversation state 00 01
Depending upon which of the sides hangs up the call first, a clear back signal, or a clear forward
signal occurs. Depending on national specifications, there might be a period of time in which the
inbound side holds a release guard state. This state is the same as clear back but happens when the
outbound side is already in the idle state. Idle follows.
Clear forward 10 11
Å
Natural MicroSystems 3
Chapter 1 MFC-R2 CAS Protocols Reference Manual
Idle 10 10
ÄÅ
Outbound side hangs up first: Clear 10 01
forward
Å
Å
Release guard 10 11
Idle 10 10
ÄÅ
This section defines the register signaling protocol implemented by the NMS
MFC-R2 TCP. The protocol is defined by the CCITT recommendations Q.440 to
Q.442 (CCITT Blue Book Volume VI, Fascicle VI.4, Geneva 1989).
The protocol consists in the exchange of multi-frequency tones, following a
compelling sequence.
4 Natural MicroSystems
CAS Protocols Reference Manual MFC-R2 Register Signaling
The tones used are composed of two single-frequencies each, according to the
following table:
Single Tone # 1 2 3 4 5 6
Digits Forward (Hz) 1380 1500 1620 1740 1860 1980
2 X X
3 X X
4 X X
5 X X
6 X X
7 X X
8 X X
9 X X
10 X X
11 X X
12 X X
13 X X
14 X X
15 X X
This table is interpreted as follows: each tone is composed of the two single
frequency tones marked with an X. There are two kinds of tones: forward and
backward. Forward tones are defined as the combination of the frequencies in the
forward row. Backward tones are defined as the combination of the frequencies in
Natural MicroSystems 5
Chapter 1 MFC-R2 CAS Protocols Reference Manual
6 Natural MicroSystems
CAS Protocols Reference Manual MFC-R2 Register Signaling
I-13 Satellite link not included II-13 Spare for national use
(1)
1. This tone meaning arises in response to a A-13 request from the inbound side (send nature of circuit).
2. This tone meaning arises in response to a A-14 request from the inbound side (request information on
half-echo suppression).
A-1 Send next digit (N+1) B-1 Spare for national use
Natural MicroSystems 7
Chapter 1 MFC-R2 CAS Protocols Reference Manual
A-9 Spare for national use B-9 Spare for national use
A-10 Spare for national use B-10 Spare for national use
A-14 Request info on use of half- B-14 Spare for national use
echo suppression
The meaning of both forward and backward tones vary widely for different
countries. See Section 1.5 for an interpretation of each target country’s MFC-R2
tones meaning.
The tones specified in the previous table are exchanged between the two ends of
the link using a compelling procedure. During the procedure, the address
information associated with the calling and called party is transferred from the
outbound register to the inbound register.
For example, the outbound protocol will seize the line as the first step in placing a
call. After receiving a seizure acknowledgment, the outbound protocol will play
the first DID digit (using the multi-frequency codes specified in the Digits table at
the beginning of this section). This digit will be acknowledged by means of an
A-1 tone (the convention “A-1” signifies that the digit 1 (1140 Hz + 1020 Hz ) is
played in the backward direction while in the Group A context). The A-1 tone also
indicates that the outbound protocol should send the next DID digit. This process
continues until the outbound protocol indicates (using an appropriate forward
tone) that there are no more digits to send. Upon receipt of the backward signals
A-3 or A-5, the outbound protocol switches its forward tones to Group II
meaning. Note that the meaning of the tones belonging to the various groups
varies by country.
8 Natural MicroSystems
CAS Protocols Reference Manual MFC-R2 Register Signaling
Send 2nd
DID Digit
Ack 2nd digit
request 3rd digit
.
.
.
time
Sending Receiving
Figure 1 illustrates the first two cycles of a compelled sequence. The outbound
register starts dialing a digit, by means of a forward tone. This is detected by the
inbound register, which starts a backward tone. This tone is both an
acknowledgment that the digit has been received and a request for a second digit.
The inbound side can choose what kind of digit it is requesting (DID, ANI or
Category) by transmitting different backward tones to the outbound side.
The timing of the cycle is as follows:
Æ As soon as the inbound side detects the forward tone, it starts playing its
backward tone.
Æ As soon as the outbound side detects the backward tone, it stops playing its
forward tone.
Æ As soon as the inbound side detects silence, it stops playing the backward
tone it was playing.
Natural MicroSystems 9
Chapter 1 MFC-R2 CAS Protocols Reference Manual
Æ As soon as the outbound side detects silence, it starts playing a new digit,
and another cycle begins.
There is no fixed timing. The whole cycle proceeds at the maximum speed
allowed by the tone detection and generation equipment.
However, there is a timing constraint on how slow the cycles can be. The CCITT
specifications define three timers in the compelled sequence:
Timer Description
T1 The maximum time a forward tone can be on, from the outbound perspective.
T2 The maximum time a forward tone can be off, from the outbound perspective.
T3 The maximum time a whole compelled cycle can take, from the inbound perspective.
10 Natural MicroSystems
CAS Protocols Reference Manual TCP Parameters
This section describes the parameters that program the TCP. The parameters are
used to adapt the TCP to the national variations of MFC-R2 used in the different
countries of operation, as well as to give the host application more flexibility in its
interaction with the TCP. The parameters are of different types. Some of them are
application-dependent, and can be changed at will by the user. Others (the
majority) are rigidly fixed for a given country and/or a given network. The
following table explains the parameters’ meaning.
Parameter name
(category) Unit Comments Default #
ADI.MFC.DIDnumber number Inbound side: number of DID digits to expect. 7 0
Natural MicroSystems 11
Chapter 1 MFC-R2 CAS Protocols Reference Manual
Parameter name
(category) Unit Comments Default #
ADI.MFC.optionflags mask Flags controlling TCP behavior (inbound 0x0 3
side):
Æ bit 0 (& 0x1): Does the TCP play busy
when rejecting a call? If not, the switch
does it instead.
1=do not play, 0=play (default)
Æ bit 1 (& 0x2): Set this bit if the trunk you
are using is inbound only (no calls can be
placed on it).
Æ bit 2 (& 0x4): Set this bit if the trunk you
are using is outbound only (no calls can
be received on it).
Æ bit 3 (&0x8): Set this bit if a cleardown
tone (busy tone) is necessary when the
inbound side hangs up a call first.
Æ bit 4(& 0x10): Set this bit if you need to
play a message while rejecting a call. If
the bit is set, the TCP will send to the
network the backward Group B tone to
accept the call, thus causing the network
to establish the voice path. The TCP will
then wait for the far end to hang up.
Æ bit 5 (& 0x20): If this bit is set, the TCP
will answer an incoming call from Group
A, without asking the network for the
caller’s category (Group II forward
tone). The caller’s category will
therefore be missing from the incoming
call-related information delivered to the
host.
12 Natural MicroSystems
CAS Protocols Reference Manual TCP Parameters
Compelled Timers
The following parameters are reserved. Do not modify these parameters, as this
would affect regulatory compliance in the target country.
Parameter name
(category) Unit Comments Default #
ADI.MFC.compelledtimers internal All compelled timers, both for the 0x3F6F 5
inbound side and the outbound side,
expressed in seconds and packed in a
16-bits word. The timers are the
following:
1. T1 (forward tones max on-
time): lowest 5 bits.
Example 01111 = 15 s
2. T2 (forward tones max off-
time): middle 5 bits.
Example 11011 = 27 s
3. T3 (inbound side compelled
cycle timer): highest 6 bits.
Example 001111 = 15 s
Parameter name
(category) Unit Comments Default #
ADI.MFC.releaseguardtime time (ms) Inbound side: time to wait in release 0 6
guard, if set (regulated time for the
inbound protocol to remain in
blocking state after mutual hang-up)
Natural MicroSystems 13
Chapter 1 MFC-R2 CAS Protocols Reference Manual
Parameter name
(category) Unit Comments Default #
ADI.MFC.inboundqualtimers internal Group of three inbound line 0x222 7
qualification timers (which determine
how long the inbound protocol will
wait to recognize a line signaling
change), expressed in units of 10 ms
as follows:
1. Qualification time during the
idle state: lowest hexade, typical
value 20 ms.
2. Qualification time during the
compelled sequence: middle
hexade, typical value 20 ms.
3. Qualification time during the
connected state: middle hexade,
typical value 20 ms.
14 Natural MicroSystems
CAS Protocols Reference Manual TCP Parameters
Parameter name
(category) Unit Comments Default #
ADI.MFC.answertime internal Outbound side: group of two timers 0x0F3C 10
used during the answering phase of
call setup. Both timers are expressed
in seconds.
1. Lower byte: maximum time for
the protocol to wait between
receipt of the Group B backward
tone until the phone is answered
(line signaling event). After this
timer expires, the TCP clears the
line.
2. Higher byte: maximum time for
the protocol to wait between the
generation of the Group II
forward tone and the detection
of the Group B backward tone.
This is usually the same as timer
T1 from the parameter
ADI.MFC.compelledtimers, but it
can be different in some
countries.
Natural MicroSystems 15
Chapter 1 MFC-R2 CAS Protocols Reference Manual
Compelled Tones
The following parameters specify all the tones needed by the protocols to
implement the country-specific variation of R2. Each parameter holds more than
one tone. Each tone uses 4 bits (one hexade) of the 16 bit word. Tones are listed
from least to most significant inside each parameter.
The following parameters are reserved. Do not modify these parameters, as this
would affect regulatory compliance in the target country.
Parameter name
(category) Unit Comments Default #
ADI.MFC.tonesgroupA internal Backward Group A tones. The TCP 0x3551 12
uses these tones to send requests to
the calling party during the compelled
sequence. Each hexade of the
parameter contains one request. Low
to high hexade:
1. Send next DID (A-1).
2. Send Group I category (A-5).
3. Send next ANI (A-5).
4. Send Group II tone (and switch
to group B tone reception)(A-3).
16 Natural MicroSystems
CAS Protocols Reference Manual TCP Parameters
Parameter name
(category) Unit Comments Default #
ADI.MFC.tonesendofinfo internal Forward tones that indicate the end or 0x0FCF 14
the non-availability of certain types of
information. The types of information
are:
1. In some countries, a tone that
signals the end of the DID digits
does not exist. In this case, the
first hexade will be 0.
2. Caller’s category. In some
countries, the category must be
available to the caller, so the
second hexade will be 0.
3. End of ANI - caller ID available.
4. End of ANI - called ID
restricted. In most countries,
there is no distinction for
MFC-R2 between restricted and
non-restricted caller ID. In this
case, the fourth hexade is 0.
Natural MicroSystems 17
Chapter 1 MFC-R2 CAS Protocols Reference Manual
Parameter name
(category) Unit Comments Default #
ADI.MFC.tonesmiscellaneous internal Request or indication tones used in 0x0C11 16
different contexts by the TCP . They
are (low to high hexade):
1. The tone the outbound part of
the TCP plays in Group II (toll
category in some countries)
(II-1, normal subscriber).
2. Default user category (Group I
category) to be used if the
application does not provide it
(in some countries the outbound
side must play it in all cases)
(I-1, normal subscriber).
3. Tone meaning that after the user
category no ANIs are available
(I-12, or 0xC).
4. Backward Group B tone used in
some countries to reject an
incoming call while requesting
that the voice path be open for a
special announcement.
18 Natural MicroSystems
CAS Protocols Reference Manual TCP Parameters
Parameter name
(category) Unit Comments Default #
ADI.MFC.tonesgroupC internal Backward tones that the inbound side 0xED01 18
plays when it is collecting ANIs (the
specifications of some countries
identify a Group C in this case). Low
to high hexades:
1. Request the outbound side to go
back to sending DIDs, and send
the next DID. This is typically
the same as the normal send
DID tone, hexade 1 of
ADI.MFC.tonesgroupA, but it
can be different in some
countries.
2. Request the outbound side to go
back to sending DIDs, and
repeat the last DID transmitted
(Not supported by the CCITT
Blue Book).
In this parameter there are two more
hexades, not related with the Group C
tones. These are:
1. Tone that the inbound side sends
to request that the outbound side
specifies the nature of the
circuit, either land-based or
through a satellite link (A-13)
2. Tone that the inbound side sends
to ask if a half-echo suppressor
is needed (A-14)
Natural MicroSystems 19
Chapter 1 MFC-R2 CAS Protocols Reference Manual
Parameter name
(category) Unit Comments Default #
ADI.MFC.ringfreq1 Hz Inbound side, ring frequency #1. 425 19
ADI.MFC.ringontime time (ms) Inbound side, time the ring tone is on 1000 21
in a ring cycle.
ADI.MFC.ringofftime1 time (ms) Inbound side, time the ring tone is off 4000 22
in a ring cycle.
ADI.MFC.busyontime time (ms) Inbound side, time the busy tone is on 500 26
in a busy cycle.
ADI.MFC.busyofftime time (ms) Inbound side, time the busy tone is off 500 27
in a busy cycle.
20 Natural MicroSystems
CAS Protocols Reference Manual TCP Parameters
Miscellaneous
The following parameters are reserved. Do not modify these parameters, as this
would affect regulatory compliance in the target country.
Parameter name
(category) Unit Comments Default #
ADI.MFC.compelledtoneslevel IDU R2 tones amplitude (forward and 330 29
backward)
Natural MicroSystems 21
Chapter 1 MFC-R2 CAS Protocols Reference Manual
Parameter name
(category) Unit Comments Default #
ADI.MFC.signalingflags (cont.) mask Æ bits 6 and 7 (& 0xC0): Controls 0x1021 30
the length of delay after the
outbound protocol hangs up
before the application is able to
place a new call. This is needed
by some switches to clear the
line and be seized again. Values:
0x0 = no delay
0x1 = 400 ms delay
0x2 = 700 ms delay (default)
0x3 = 1000 ms delay
Æ bit 8 (& 0x100): Flag to
determine if an inbound side
clearing back is signaled by a
release guard (AB=11), value 1,
or by a forced release (AB=00),
value 0.
Æ bit 9 (& 0x200): Flag to
determine if the bit detector
should be set with a simultaneity
window of zero (if clear), or of 5
ms (if set). Having two bit
transitions falling in the same 5
ms period is the definition of
simultaneous bit transitions on
the line. Double bit transitions
are illegal in some countries.
Æ bit 10 (& 0x400): Expect
metering pulses on the C bit
(1=yes, 0=no).
Æ bit 11 (& 0x800): If set, a half-
echo suppression is needed in
international implementation
(the outbound side answers with
a I-14 to a A-14 request, in
CCITT speech).
22 Natural MicroSystems
CAS Protocols Reference Manual TCP Parameters
Parameter name
(category) Unit Comments Default #
ADI.MFC.validDIDmask internal The valid DID tones in the target 0x87FE 31
country. If a DID received by the
inbound side is not valid, the
compelled sequence is aborted with a
congestion indication.
The mask is the following:
FEDC|BA98|7654|321-
1000|0111|1111|1110
Natural MicroSystems 23
Chapter 1 MFC-R2 CAS Protocols Reference Manual
Parameter name
(category) Unit Comments Default #
ADI.MFC.tonesinternational internal Forward Group A tones that the 0xEED 36
outbound side plays to answer the
inbound side’s request for
information about the presence or
absence of a satellite link in the
circuit, and the need for half-echo
suppression. Low to high hexade:
Æ No satellite link in the circuit
(I-13)
Æ Satellite link in the circuit
(I-14), or half-echo needed for
other circumstances
Note: If half-echo suppression is not
needed, the outbound side
ignores the request and plays
any other tone.
24 Natural MicroSystems
CAS Protocols Reference Manual Country-Specific Implementation
Variations of the MFC-R2 protocol used in different countries are captured by the
TCP parameters, as previously discussed. This section details the values of the
parameters most important for implementing the various national specifications.
The parameters that tend to differ the most from country to country generally
describe tones that request or transmit specific information in the protocol:
Transmit The forward tones used in register signaling. Most of them represent address
information, however, there are forward tones to signal the absence or end of
information, and these tones differ among networks.
Note: In some cases, parameters other than tones are unique to particular
countries.
Each supported country/network is treated separately in this section. Deviations
from the standard CCITT specification are highlighted, and the relevant parameter
values are discussed.
Natural MicroSystems 25
Chapter 1 MFC-R2 CAS Protocols Reference Manual
1.5.1 Argentina
The Argentine MFC-R2 specifications use the same tones as the CCITT standard
specifications for register signaling. However, they introduce meanings for some
of the backward tones that CCITT leaves to the country-specific specification.
The following table gives the meaning of the backward tones. The tones with a
special national meaning in Argentina are in bold.
A-2 Send last digit (N-1) B-2 Send special information tone,
and setup speech conditions
A-7 Send second-to-last digit (N-2) B-7 Subscriber line free, no charge
A-8 Send third-from-last digit (N-3) B-8 Subscriber line out of order
26 Natural MicroSystems
CAS Protocols Reference Manual Bahrain
End of ANI digits I-15, I-12 I-15: end of ANI, presentation allowed
I-12: end of ANI, presentation restricted
Category not available none Compulsory category digit - the outbound side must
provide the information
Other variations:
Æ The forward I-15 tone signals the end of ANI digits, but not the end of DID
digits. If the inbound register expects a variable number of inbound digits,
and it requests one DID more than the outbound register has to offer, the
outbound side remains silent until the inbound side times out. When this
happens, the inbound side pulses an A-3 tone to resume the compelled
sequence and switch to the Group II / Group B compelled cycle.
Æ Metering pulses, if provided by the switch, come on the A-bit. Since in this
case the line code that the outbound equipment sees during a metering pulse
is the same as the line code that signals a clear back condition, this line code
must subsist for at least 400 ms to be qualified as a clear back, as set by the
parameter ADI.MFC.inboundreleasetime.
1.5.2 Bahrain
1.5.3 Bolivia
Natural MicroSystems 27
Chapter 1 MFC-R2 CAS Protocols Reference Manual
The following table gives the meaning of the backward tones. The tones that
differ from the CCITT specification are in bold.
A-7 Send second-to-last digit (N-2) B-7 Subscriber line free, no charge
A-9 Repeat the DID digits from the B-9 Not Used
beginning
Meaning Tone
End of DID digits I-15
28 Natural MicroSystems
CAS Protocols Reference Manual Brazil
Meaning Tone
End of ANI digits I-15
1.5.4 Brazil
A-1 Send next digit (N+1) B-1 Subscriber line free, charge
A-2 Repeat the DID digits from the B-2 Subscriber line busy
beginning
Natural MicroSystems 29
Chapter 1 MFC-R2 CAS Protocols Reference Manual
Other variations:
Æ The forward I-15 tone signals the end of ANI digits, but not the end of DID
digits. If the inbound register expects a variable number of inbound digits,
and it requests one DID more than the outbound register has to offer, the
outbound side remains silent until the inbound side times out its request.
When this happens, the inbound side pulses an A-3 tone to resume the
compelled sequence and switch to the Group II / Group B compelled cycle.
Æ Some switches have a provision for a “reanswer” signal with which an
inbound terminal equipment can automatically reject all collect calls. To do
this, the equipment pulses a clear back line code, immediately after
signaling the answer line code to connect a call. If this pulse is sent to the
switch, and the call is a collect call, the switch clears the call back and then
clears the line forward.
30 Natural MicroSystems
CAS Protocols Reference Manual Chile
Parameter Description
ADI.MFC.reanswerdelay The time between when the answer signal is put on the line, and
when the clear back pulse starts.
1.5.5 Chile
The Chilean MFC-R2 specification is very similar to the CCITT standard. All
backward and forward tones have the same meaning.
Only one difference exists: billing pulses are conveyed to a terminal placing a call
by means of bit variations on the C-bit.
1.5.6 China
The Chinese MFC-R2 specifications are rather different from the CCITT standard
specifications, especially for register signaling.
The following table reports the meaning of the backward tones. The tones that
differ from the CCITT specification are in bold.
Natural MicroSystems 31
Chapter 1 MFC-R2 CAS Protocols Reference Manual
Other variations:
Æ The forward I-15 tone signals the end of ANI digits, but not the end of DID
digits. If the inbound register expects a variable number of inbound digits,
and it requests one DID more than the outbound register has to offer, the
outbound side remains silent until the inbound side times out. When this
32 Natural MicroSystems
CAS Protocols Reference Manual Colombia
happens, the inbound side pulses an A-3 tone to resume the compelled
sequence and switch to the Group II / Group B compelled cycle.
Æ The fact that the backward tone to request ANI digits is the same as the one
to request DID has wide implications. The inbound register is no longer in
control of the type of digits it receives, so to distinguish between ANI and
DID it must wait for an I-15 (end of ANI) from the outbound register. In
turn, this means that the parameter ADI.MFC.ANInumber (which is used by
the inbound side to determine when to switch from requesting ANI back to
requesting DID) has no meaning. In the Chinese variation of the MFC-R2
package this parameter is set to 30, a number higher than any possible caller
ID.
Æ In the CCITT line signaling specifications, the C and D bits are set to 0 and
1 respectively, in China they are both set to 1. However, they are never
used, so their value never changes during a call.
1.5.7 Colombia
Telecom Colombia
Telecom Colombia has an MFC-R2 variation similar to the Chinese variation.
However, it is closer to the CCITT specifications.
The following table reports the meaning of the backward tones. The tones that
differ from the CCITT specification are in bold.
A-1 Send next digit (N+1) - no matter B-1 Subscriber line free, charge
if DID or ANI
Natural MicroSystems 33
Chapter 1 MFC-R2 CAS Protocols Reference Manual
The following table lists forward absence or end of information tones for Telecom
Colombia:
Other variations:
Æ The fact that the backward tone to request ANI digits is the same as the one
to request DID has wide implications. The inbound register is no longer in
control of the type of digits it receives. To distinguish between ANI and
34 Natural MicroSystems
CAS Protocols Reference Manual Colombia
DID, it must wait for an I-15 (end of ANI) from the outbound register. In
turn, this means that the parameter ADI.MFC.ANInumber (which is used by
the inbound side to determine when to switch from requesting ANI back to
requesting DID) has no meaning.
Æ Metering pulses, if provided by the switch, come on the A-bit. Since in this
case the line code that the outbound equipment receives during a metering
pulse is the same as the line code that signals a clear back condition, this
line code must subsist for at least 800 ms to be qualified as a clear back, as
set by the parameter ADI.MFC.inboundreleasetime.
A-1 Send next digit (N+1) - no matter B-1 Subscriber line free, charge
if DID or ANI
A-2 Repeat the DID digits from the B-2 Call rejected, no indication
beginning of cause
Natural MicroSystems 35
Chapter 1 MFC-R2 CAS Protocols Reference Manual
The following is a list of forward absence or end of information tones for ComSel:
Other variations:
Æ The forward I-15 tone signals the end of ANI digits, but not the end of DID
digits. If the inbound register expects a variable number of inbound digits,
and it requests one DID more than the outbound register has to offer, the
outbound side remains silent until the inbound side times out. When this
happens, the inbound side pulses an A-3 tone, to resume the compelled
sequence and switch to the Group II / Group B compelled cycle.
Æ The fact that the backward tone to request ANI digits is the same as the one
to request DID has wide implications. The inbound register is no longer in
control of the type of digits it receives. To distinguish between ANI and
DID it must wait for an I-15 (end of ANI) from the outbound register. In
turn, this means that the parameter ADI.MFC.ANInumber (which is used by
the inbound side to determine when to switch from requesting ANI back to
requesting DID) has no meaning.
Æ Metering pulses, if provided by the switch, come on the B-bit.
36 Natural MicroSystems
CAS Protocols Reference Manual Czech Republic
The specifications for the MFC-R2 variation in the Czech Republic are similar to
the CCITT specifications.
The following table gives the meaning of the backward tones. The tones that
differ from the CCITT specification are in bold.
A-6 Address complete, charge, setup B-6 Subscriber line free, charge
speech conditions
A-7 Send second-to-last digit (N-2) B-7 Subscriber line free, no charge
A-8 Send third-from-last digit (N-3) B-8 Subscriber line out of order
Natural MicroSystems 37
Chapter 1 MFC-R2 CAS Protocols Reference Manual
Category not available none Compulsory category digit - the outbound side must provide
the information.
Other variations:
Æ The compelled timer T3 (inbound compelled whole-cycle timer) is set to 5
seconds (the CCITT value is 15 sec.). This means that in the case of a slow
compelled sequence, the inbound equipment will time out before the
outbound one, initiating a clearing of the connection.
Æ When an outgoing call from a CPE reaches conversation state, if the
inbound switch clears back first, the line signal used is a forced release
rather than a release guard. The CPE will see the B-bit going to 0, instead
of the A-bit going to 1. However, the protocol is not symmetrical in this
point: an inbound CPE releases the call normally by setting the A-bit to 1.
This behavior is programmed in the TCP by the parameter
ADI.MFC.signalingflags & 0x100 being 0.
1.5.9 Honduras
1.5.10 India
38 Natural MicroSystems
CAS Protocols Reference Manual India
A-2 Repeat the DID digits from the B-2 Changed number
beginning (announcement on the line)
Natural MicroSystems 39
Chapter 1 MFC-R2 CAS Protocols Reference Manual
Note: This is the only case we know of an A-4 tone with a different meaning
from a B-4 tone. Also, a Group A congestion signal is not defined.
The fact that only 10 tones are defined in each direction puts some constraints in
how the outbound side communicates end of digits or no availability of digit types
to the inbound side:
Æ DID: the terminating (inbound side) exchange is supposed to use its internal
knowledge of the numbering plan, to determine the number of expected
DID from the initial digits. However, the timeout – pulsed A-3 method can
be used.
Æ ANI: a fixed number of ANI (10) is transmitted. If less than 10 digits are
available, the outbound exchange fills the remaining places in the digit
string with ‘0’s (I-10). Also, an additional field is defined at the beginning
of the ANI digits. As a response to the first A-4, the outbound exchange
sends a ‘0’ (I-10) if ANI digits are not available, or a ‘1’ (I-1) if ANI digits
are available.
Sending the category digit as a response to an A-5 is obligatory. Categories are
defined as follows:
Forward Group II
Designation of the Signal Meaning of the Signal
II-3 spare
II-4 spare
II-5 Operator
II-7 spare
II-8 spare
II-9 spare
II-10 spare
40 Natural MicroSystems
CAS Protocols Reference Manual Indonesia
1.5.11 Indonesia
A-1 Send next digit (N+1) B-1 Subscriber line free, charge
A-2 Repeat the DID digits from the B-2 Subscriber line busy
beginning
Natural MicroSystems 41
Chapter 1 MFC-R2 CAS Protocols Reference Manual
Meaning Tone
End of DID digits I-15
1.5.12 Korea
1.5.13 Malaysia
A-1 Send next digit (N+1) B-1 Subscriber line free, charge
A-2 Repeat the DID digits from the B-2 Subscriber line busy
beginning
42 Natural MicroSystems
CAS Protocols Reference Manual Malaysia
Category not available none Compulsory category digit - the outbound side must provide
the information
Natural MicroSystems 43
Chapter 1 MFC-R2 CAS Protocols Reference Manual
1.5.14 Mexico
44 Natural MicroSystems
CAS Protocols Reference Manual Mexico
Meaning Tone
End of DID digits I-15
Natural MicroSystems 45
Chapter 1 MFC-R2 CAS Protocols Reference Manual
1.5.15 Panama
The Panamanian MFC-R2 specification is very similar to the CCITT. The only
difference is that the backward tone A-9, that CCITT leaves free for the national
specifications to use, means "Repeat the DID digits from the beginning".
1.5.16 Singapore
A-1 Send next digit (N+1) B-1 Subscriber line free, charge
46 Natural MicroSystems
CAS Protocols Reference Manual Singapore
A-2 Repeat the DID digits from the B-2 Subscriber line busy
beginning
Natural MicroSystems 47
Chapter 1 MFC-R2 CAS Protocols Reference Manual
Category not available none Compulsory category digit - the outbound side must provide
the information
The only other difference from CCITT specifications is that a number of values of
the caller’s category digit are defined, for which it is known that the ANI digits
are not available. This is controlled by the parameter ADI.MFC.catnoANImask,
that in this case has a value of 0x382. This means that the following categories are
not followed by ANI information, and the TCP will not ask for ANI after
receiving them:
Æ II-1: operator with trunk offering
Æ II-7: line test desk
Æ II-8: interception operator
Æ II-9: call from transit exchange without the calling subscriber number
information
1.5.17 Thailand
Same as China.
48 Natural MicroSystems
CAS Protocols Reference Manual State Diagrams
This section contains the state diagrams of the MFC-R2 TCP. States that interface
with the line or the host are shown, grouped logically (if appropriate). For
instance, fault states that wait for the line to return to idle, but can transition into
one another if a new line fault code is received, are contracted into one. Pass-
through states (states in the TCP script that simply execute instructions without
receiving input from the external world) are omitted.
The following symbols are used in the state diagrams:
Description Icon
State block
state name
short description
going to
another
diagram
Each of the following state diagrams describes a phase of the TCP execution flow.
Natural MicroSystems 49
Chapter 1 MFC-R2 CAS Protocols Reference Manual
Figure 2 depicts the TCP states that implement the startup phase of the TCP, and
its idle condition:
StartUp
seizure detected
Seizure Acknowledge
place call received Initialize Call
Send seizure
acknowledge on Get the number to
the line, go wait Resource be called, and set
Get call setup Seizure
for resource. granted, pointers to the
resource acknowledge
outbound beginning of DID, timer expired
Request a call ANI, category
setup resource, digits.
with a wait period.
If line is seized
(glare), send
seizure acknowledge. Seize the line
Resource
granted,
Signal seizure on
inbound resource timer expired the line, wait for
seizure
To acknowledge.
compelled
inbound No resource, abort
received seizure acknowledge
states
Tell the host, if
inbound wait for
idle, to go to idle. To
compelled
outbound
states
50 Natural MicroSystems
CAS Protocols Reference Manual Startup and Idle States
When in idle, the TCP waits for either a command to place a call, or a seizure on
the line. In both cases, the resource management state is entered next. If resource
management is not necessary for the type of board being used, the TCP
immediately transitions the following state. If resource management is necessary,
a call setup resource is requested and the state waits for it to be granted before
continuing.
Natural MicroSystems 51
Chapter 1 MFC-R2 CAS Protocols Reference Manual
Figure 3 depicts the states going from the reception of the first DID digits to the
reception of the Group II category digit, the last forward digits of the compelled
sequence.
From getting
call setup
resource
Seizure fault states
To the
Host specifies
idle state
what to do
To the
accept and
answer
states
52 Natural MicroSystems
CAS Protocols Reference Manual Inbound Accept and Answer Call States
In the Incoming Call state, the TCP sends to the host an INCOMING_CALL event,
with the received digits attached. The host must then decide if the call is to be:
Æ Accepted (without committing to answer it): adiAcceptCall, seen by the
TCP as an ACCEPT_CALL command
Æ Answered: adiAnswerCall, seen by the TCP as an ANSWER_CALL
command
Æ Rejected: adiRejectCall, seen by the TCP as a REJECT_CALL command
The TCP translates this command from the host into a backward Group B tone.
See Section 1.5 for the meaning of the various Group B tones in each supported
country. The backward Group B tone is the last of the compelled sequence. Its
detection makes the outbound side stop the forward Group II tone, and ends the
compelled sequence.
Once the host has told the TCP what to do with the call, the TCP plays the Group
B tone that accepts or rejects the call with different reasons and modes.
Depending on the host’s command, the TCP then does one of the following:
Æ If the call has been rejected, the TCP plays busy or lets the host play a reject
message until the call is cleared by the calling party
Æ If the host committed to answer the call or commanded to accept the call
and played ring indefinitely, the TCP plays ring tone and then answers
Æ If the call has been provisionally accepted, the TCP stays silent or allows
the host to play a custom message
Note: If the TCP rejects the call, it is unlikely that it will stay in the Play Busy
state for long, or that it will even reach this state, since the outbound side
is supposed to clear the call as soon it detects the Group B rejection tone.
Natural MicroSystems 53
Chapter 1 MFC-R2 CAS Protocols Reference Manual
Figure 4 depicts behavior during the Inbound Accept and Answer Call States.
From
inbound
compelled
sequence
End compelled
host said sequence
to reject Send to the line
the tone specified host said
by the host (to to accept
accept or reject
Play Busy
the call). On end
of the forward
Play busy tone or
tone, transition.
leave control of
DSPs to host for
custom message,
wait for outbound host said
to reject Wait for answer
to clear. outbound command
signals idle
Do nothing, and
leave control of
outbound host said the DSPs to the
signals idle to answer host for a custom
outbound message if so
Clear back signals idle required.
54 Natural MicroSystems
CAS Protocols Reference Manual Outbound Call Setup States
The outbound compelled sequence proceeds smoothly from one digit to the next.
Backward tones from the inbound side are analyzed and a pointer to the forward
digit to play next is set accordingly, or the compelled sequence aborts if a
backward congestion indication is detected.
Figure 5 illustrates the cycle in a somewhat abstract manner. The main Send Digit
state actually consists of three states:
Æ One that sends DID digits
Æ One that sends the category digit
Æ One that sends ANI digits
These states are accessed from the check backward digit state, which checks the
received digit and sets the pointer to the next forward digit to transmit. In reality,
this state is also a virtual one, composed of a number of states, to take into account
the different backward tones that can come in the different phases of register
signaling.
Natural MicroSystems 55
Chapter 1 MFC-R2 CAS Protocols Reference Manual
from
seize state
Send digit
backward tone
Check backward digit backward digit
not detected
received
or not stopped
Check the digit to
see if it is valid. If
yes, set the
pointer to the digit Seizure fault states
string to the congestion tone or
requested value. Set the line to
invalid backward digit
idle, wait until the
line is idle from
backward digit
inbound, go to idle
requests Group II
state.
Seizure
fault Send Group II
backward digit category
states means answer
Send the illegal line
outbound Group II state detected
Category digit. or Group B
illegal line digit means to the
state reject idle state
Wait for answer
detected
Wait for the line Group B Check Group B
signal that means digit request
that the call has means Analyze the
been answered. accept received Group B
answer tone.
timer
answer
expired if CP
signal
requested
detected
to to call
connected progress
state states
56 Natural MicroSystems
CAS Protocols Reference Manual Connected States
The host can request to perform call progress detection before declaring the call
connected. Call progress is only used to connect on a particular condition (i.e.,
voice detected, SIT tone detected, etc.). It is not used to distinguish an accepted
call from a rejected call, since the Group B backward tone contains this
information.
if CP from inbound connected
From call
From call
progress
if CP from setup states
states, on
call setup Figures
CP
4&5
termination
if if outbound if inbound
releasing
if releasing if releasing
Releasing
state accessed
by all connected
states when the inbound, RequestCSResource
host says to if cleardown
release. tone needed A resource is
needed if playing
outbound a tone to clear
back the call.
outbound complete
release
signal idle, wait inbound, if cleardown
for inbound to do tone not needed
the same (after inbound, if resource
release guard). idle on the line granted
Natural MicroSystems 57
Chapter 1 MFC-R2 CAS Protocols Reference Manual
58 Natural MicroSystems
CAS Protocols Reference Manual Call Setup Timing Analysis
Figure 7 represents the line energy distribution against time for a complete
MFC-R2 compelled sequence, captured in back-to-back mode on an AG-E1
board.
3500
3000
Fr 2500
eq
(H 2000
z)
1500
1000
500
Figure 7 was obtained by first adding the signals of the inbound and outbound
voice channels (with the use of a conference card), recording the signal, and then
performing a spectral analysis on it.
Natural MicroSystems 59
Chapter 1 MFC-R2 CAS Protocols Reference Manual
The compelled sequence represents the whole of register signaling for the
MFC-R2 protocol. A compelled sequence is composed of compelled cycles, that
are the unit of digit transfer. A compelled cycle is shown in Figure 8.
The time granularity is apparent here, each pixel representing a 10 ms time period.
Figure 8 shows that a whole compelled cycle performed by two instances of the
MFC-R2 TCP connected back-to-back takes exactly 240 ms to complete, from the
moment in which a forward tone appears on the line to the moment the next
forward tone is seen.
80 pt FFT of "mfcr2_2.pcm," 10 msec frame size
2000
Freq (Hz)
1500
1000
2050
time (msec)
60 Natural MicroSystems
CAS Protocols Reference Manual Call Setup Timing Analysis
This can be explained using the model contained in the following table
(remembering that the clock cycle in an AG board is 10 ms long).
The table starts from the moment the outbound part of the TCP calls the service
function that starts the compelled sequence cycle. However, we do not see the
tone on the line until roughly 30 ms later, and this is taken as time 0 for this
analysis.
Three entities play a role in this model: the TCP, the DSP overlay, and the MVIP
processor. The line transmission time is negligible. Each event has an associated
delay that follows it, and determines a step in the time count in the rightmost
column. Refer to Figure 8 to identify the correct spot on the compelled cycle; this
is marked by the What is on the Line column in the table. The qualification time
for an incoming tone and an incoming silence varies between 20 and 30 ms,
depending on when during the clock cycle the tone actually arrives to the MVIP /
H.100 processor.
Natural MicroSystems 61
Chapter 1 MFC-R2 CAS Protocols Reference Manual
62 Natural MicroSystems
CAS Protocols Reference Manual Call Setup Timing Analysis
The same time analysis can be performed from the TCP point of view. The
following table is a TCP trace with time stamps that mark the tens of milliseconds
when the:
Æ Outbound TCP calls the compelled function
Æ Inbound TCP detects the forward digit
Æ Inbound TCP calls the compelled function
Æ Outbound TCP detects the backward tone
Æ Inbound TCP detects silence
Æ Outbound TCP detects silence
The phase of this period is the same as the one of the preceding table, starting
from the compelled R2 forward cell.
Natural MicroSystems 63
Chapter 1 MFC-R2 CAS Protocols Reference Manual
111.75 Inbound side, digit1 detected: 2 First digit received by the inbound side.
111.75 Inbound side, about to call compel It takes virtually no time for the TCP to
analyze the digit and decide what to
compel with; all states are pass-
through. The tone will be on the line 30
ms later.
111.82 Outbound side, backward tone 5 The DSP stops the forward tone 10 ms
detected later, since it takes 20 ms for the tone to
get to the line. Tone A5 means send
Category digit. The TCP waits for end
of tone to do it.
111.87 Inbound side, end of tone detected The DSP stops the backward tone 10
ms later. The TCP does nothing.
111.92 Outbound side, end of tone 5 The DSP detects the end of tone. The
detected TCP checks what the received digit
means and starts a new compelled
cycle with the requested new digit; in
this case, the Category digit. The tone
will be on the line 30 ms later.
The overall call setup timing depends on the compelled cycle timing, as well as
these other factors:
Æ The number of digits exchanged. There may be optimizations in the number
of dialed or expected digits that eliminate one or more compelled cycles
from a compelled sequence.
Æ The system load (for inbound calls). This is because after the caller’s
category has been collected, the TCP sends an ADIEVN_INCOMING_CALL
event to the application. The application must then decide if the call is to be
64 Natural MicroSystems
CAS Protocols Reference Manual Call Setup Resource Diagrams
accepted or rejected, and call the appropriate ADI function. This takes more
time on loaded systems.
Æ The speed of the switch, generally faster than the TCP’s.
Four call setup cases are presented that illustrate the MIPS consumption and the
kind of DSP resources needed by the MFC-R2 TCPs to place and receive a call,
plotted against time.
Æ Figure 9 shows seven DID digits, category digit, inbound, AG-E1. In this
case, the DSP overlay to receive / transmit bits signaling is on. The
compelled sequence starts with the TCP only detecting R2 forward tones.
After the compelled sequence, the tone generation service is activated, to
play ring tone.
MIPS R2 backward compelled: 2.46 MIPS
3
R2 forward tones
2
detection: 1.80 MIPS
0 400 800 1200 1600 2000 2400 2800 3200 time (ms)
tone_generation detect_R2forward
compel_inbound signal_xmit + signal_recv
Natural MicroSystems 65
Chapter 1 MFC-R2 CAS Protocols Reference Manual
Æ Figure 10 shows seven DID digits, category digit, outbound, AG-E1. The
DSP overlay to receive / transmit bits signaling is on, the compelled
sequence starts with the TCP compelling forward tones. After the
compelled sequence, call progress detection is activated (not compulsory).
MIPS R2 forward compelled: 2.46 MIPS
3
0 400 800 1200 1600 2000 2400 2800 3200 time (ms)
Figure 10. MIPS Consumption and DSP Resources for Outbound AG-E1
66 Natural MicroSystems
CAS Protocols Reference Manual Call Setup Resource Diagrams
Æ Figure 11 shows seven DID digits, category digit, inbound, Quad E1. In this
case, the signaling bits detection / generation function is carried out by the
486 coprocessor directly, and no DSP overlay is required for the task. This
reduces the DSP load by 0.5 MIPS.
MIPS
3
R2 forward tones
detection: 1.80 MIPS
1
tone generation: 0.88 MIPS
0 400 800 1200 1600 2000 2400 2800 3200 time (ms)
Figure 11. MIPS Consumption and DSP Resources for Inbound Quad E1
Natural MicroSystems 67
Chapter 1 MFC-R2 CAS Protocols Reference Manual
Æ Figure 12 shows seven DID digits, category digit, outbound, Quad E1.
(Similar to Figure 11.)
MIPS
3
0 400 800 1200 1600 2000 2400 2800 3200 time (ms)
Figure 12. MIPS Consumption and DSP Resources for Outbound Quad E1
68 Natural MicroSystems
CAS Protocols Reference Manual Behavior Under Load
The MFC-R2 TCP does not present problems when running under load on the
AG-E1 ISA board series or on the AG Quad and Dual E PCI boards, when
resource management is not needed. In this case, the TCP can run on all available
channels simultaneously.
If all line interface channels are to be used on AG Quad E boards:
Æ You need to run the protocol on more channels than the available DSP
power would support. Therefore, the resource management feature must be
used. Calls are queued and the system performance depends on the kind of
telephony application that runs on the host. In this case, it might happen that
the application runs out of resources in the conversation phase of the call,
but call setup proceeds normally regardless of the load.
Æ An explicit allocation of task processors on the board is necessary, to avoid
running out of MIPS on some task processors, while under-utilizing others.
See the AG configuration files for AG Quad E boards for details.
The CAStest utility can be used to test the protocol’s behavior under load. It
spawns a number of threads, each either placing or receiving calls. Then it collects
statistics and errors from the threads. (For more information, see the CASmon
User’s Manual.) Examples of CAStest log files for AG-E1 and AG Quad E boards
running at full capacity are presented.
Natural MicroSystems 69
Chapter 1 MFC-R2 CAS Protocols Reference Manual
70 Natural MicroSystems
CAS Protocols Reference Manual Behavior Under Load
Natural MicroSystems 71
Chapter 1 MFC-R2 CAS Protocols Reference Manual
===========================================================================
=
CAStest - CTA Digital CAS protocols tester V.1 (Feb 2 1998) - inbound side
test start time = Mon Feb 02 11:37:37 1998
arguments = -i -v1 -t60 -N -T1 -C10
===========================================================================
=
===========================================================================
=
CAStest - CTA Digital CAS protocols tester V.1 (Feb 2 1998) - outbound side
test start time = Mon Feb 02 11:37:41 1998
arguments = -v1 -t60 -N -n#2345678#2345678 -s16:60 -T1 -C10
===========================================================================
=
stat: INBOUND time = 001 minutes
attempted inbound calls.......................... 180
successful inbound calls......................... 120
calls with no resource available for call setup.. 0
calls with an out-of-service event............... 0
calls with an in-service event................... 0
stat: OUTBOUND time = 001 minutes
attempted outbound calls......................... 180
successful outbound calls........................ 120
calls with no resource available for call setup.. 0
calls failed because inbound had no CS resource.. 0
calls with an out-of-service event............... 0
calls with an in-service event................... 0
stat: INBOUND time = 002 minutes
attempted inbound calls.......................... 360
successful inbound calls......................... 300
calls with no resource available for call setup.. 0
calls with an out-of-service event............... 0
calls with an in-service event................... 0
72 Natural MicroSystems
CAS Protocols Reference Manual Behavior Under Load
Natural MicroSystems 73
Chapter 1 MFC-R2 CAS Protocols Reference Manual
74 Natural MicroSystems
CAS Protocols Reference Manual Behavior Under Load
Natural MicroSystems 75
Chapter 1 MFC-R2 CAS Protocols Reference Manual
Results are interpreted in the following table, showing the first three compelled
cycles (shaded differently):
Timing
Event (ms) Comments
Seizure 0 Taken as base of timing
Seizure Acknowledge 50
76 Natural MicroSystems
CAS Protocols Reference Manual Behavior Under Load
Timing
Event (ms) Comments
R2 forward C 440 ANI not available (I-12)
… … …
Based on these results, we can conclude that AG 4000 boards are about 33%
faster than AG boards in executing the MFC-R2 compelled sequence, with a
compelled cycle time of about 160 ms instead of 240 ms in back-to-back
operation.
Natural MicroSystems 77
Chapter 1 MFC-R2 CAS Protocols Reference Manual
78 Natural MicroSystems
Chapter 2
R1.5
Natural MicroSystems 79
Chapter 2 R1.5 CAS Protocols Reference Manual
2.1 Introduction
Section Description
Line Signaling Set of signals that represent fixed events in the course of call setup.
Register Signaling The way the protocol transmits information as it changes for each call; as
addresses and category specifications for the call.
Parameters A description of all the parameters the host can send the TCP to program its
behavior.
80 Natural MicroSystems
CAS Protocols Reference Manual System R1.5 Line Signaling
Because of the protocol’s asymmetry, there are two TCPs in the Natural
MicroSystems implementation: one to receive inbound calls and one to place
outbound calls. This is needed because the protocol asymmetry prevents the
possibility of two-way trunks with R1.5.
TCP Description
R150.TCP Æ The local inbound protocol, with the Multi-Frequency Pulse Shuttle
(inbound side only) (MF-PS) or Decadic Pulses (DEK) register signaling, using
signaling Group 1.
Æ The long-distance inbound protocol, with the Multi-Frequency Pulse
Shuttle (MF-PS) or Decadic Pulses (DEK) register signaling, using
signaling Group 2.
Symmetry occurs only between the local inbound side in the R150.TCP and the
local outbound side in the R151.TCP. In this case, the CPE inbound and the CPE
outbound expect to see complementary line and register signaling, enabling the
two protocols to run in back-to-back mode. In all other cases, an R1.5 switch is
required to establish a connection.
In the following tables, the signaling channels supporting the R1.5 trunk protocol
are referred to as Af and Bf, in the forward direction and Ab and Bb, in the
backward direction. The forward channel indicates the condition of the outgoing
equipment and reflects the condition of the line of the calling party. The backward
channel indicates the condition of the line of the called party.
Natural MicroSystems 81
Chapter 2 R1.5 CAS Protocols Reference Manual
The following table summarizes the signaling states of a typical call using line
signaling Group 1:
Depending on the protocol, either the inbound side starts to send the in-band tones requesting the
address information, or the outbound side starts decadic dialing.
After the outbound side transmits the ANI information, the inbound side may remove the answer
signal and either play a ring tone on the line and then signal that the call has been answered by
resetting the Bb bit to 0, or repeat the ANI request.
If the inbound side rejects the call, the inbound side clears backward by setting both the Ab and
the Bb bit to 0 and, depending on the protocol, may also play a backward tone indicating reject.
The outbound side goes back to idle, by setting the Bf bit to 1, then the inbound side goes to idle
too, by setting the Bb to 1.
Å
Clear back 10 00
Clear forward 11 00
Å
Å
Idle (backward) 11 01
After the connected state has been reached, depending on which side hangs up the call first, we
have a clear back signal, or a clear forward signal. Idle follows.
Å
Inbound hangs up first: Clear back 10 00
Clear forward 11 00
Å
82 Natural MicroSystems
CAS Protocols Reference Manual R1.5 Line Signaling – Group 2
There is a different hang up signal, depending on whether the inbound side or the outbound side
hangs up first in the after-answer state:
The following table summarizes the signaling states of a typical call using
signaling Group 2. (Long distance inbound protocol only):
Idle 11 01
ÄÅ
Seizure 10 01
Å
Å
Seizure Acknowledged 10 11
Depending on the protocol, either the inbound side starts to send the in-band tones requesting the
address information, or the outbound side starts decadic dialing.
In the case of a long distance inbound call, the inbound side does not play ring. Ring is played by
the remote switch and is triggered by “sending a call” signal from the local switch.
Natural MicroSystems 83
Chapter 2 R1.5 CAS Protocols Reference Manual
Sending a call 00 10
Å
Answer signal may come either before or during the sending of a call. No ANI request is allowed
in this protocol.
Å
Answer 1X 11
If the inbound side rejects the call, the inbound side clears backward, by setting both the Ab and the
Bb bit to 0. The outbound side goes back to idle, by setting the Bf bit to 1, and then the inbound side
goes to idle, but setting the Bb to 1.
Å
Clear back 10 00
Clear forward 11 00
Å
Å
Idle (backward) 11 01
Depending on which side hangs up the call first, we have a clear back signal, or a clear forward
signal. Idle follows.
Å
Inbound hangs up first: Clear back 10 00
Clear forward 11 00
Å
Å
Idle 11 01
If the inbound side hangs up first in the connected state, it is possible for the operator to restore the
connection (a recall). To accomplish this, inbound (instead of signaling the release sequence)
signals "subscriber free". Then, if the outbound side signals idle, inbound also signals idle.
However, if the outbound side signals “sending a call”, the inbound returns to the pre-answered
state and sends “incoming call” again.
Å
Inbound first: Clear back after answer 10 10
84 Natural MicroSystems
CAS Protocols Reference Manual System R1.5 Register Signaling
This section defines the register signaling protocol implemented by the NMS R1.5
TCP. Two different register signaling types are considered:
Æ Decadic(DEK)
Æ Multi-Frequency Pulse Shuttle (MF-PS)
In addition, Multi-Frequency Continuous Packet (MF-CP) is implemented
specifically for the transmission of ANI information.
The following table shows the type of register signaling implemented by each
protocol, and the information carried by it:
* Used during ANI transmission by outbound side when it receives the request for ANI (AB-10 + 500 Hz tone)
Natural MicroSystems 85
Chapter 2 R1.5 CAS Protocols Reference Manual
This protocol consists of the exchange of multi-frequency tones. The tones used in
both directions are CCITT R1 MF (US MF) and are composed of two single-
frequencies each, according to the following table:
1 X X
2 X X
3 X X
4 X X
5 X X
6 X X
7 X X
8 X X
9 X X
10 X X
11 X X
12 X X
13 X X
14 X X
15 X X
Note: This table is interpreted as follows: each tone is composed by the two
single frequency tones marked with an X. For example, tone 15 is
composed of (1500+1700) Hz.
Register signaling in the R1.5 is not necessarily accomplished by using only one
of the protocols described in the following sections. Depending on the type of call
and on the type of switches encountered along the call path, the protocol may be
required to switch from one type of signaling protocol to another.
86 Natural MicroSystems
CAS Protocols Reference Manual Register Signaling – MF-PS
Register signaling can be carried out with decadic pulses, exchange of MF tones,
or a combination of the two. The inbound side is the master and requests
information from the outbound side.
The basic scheme of in-band signaling in the MF-PS protocol is illustrated in the
following table:
DID #1
Å
Å
Request for next DID (B-2)
DID #2
Å
Å
Request for next DID (B-2)
DID #3
Å
Å
Request to repeat DID (B-3)
DID #3
Å
…
Å
Digits received (B-4)
Note: B-8, B-9 or B-10 can come as a signal to switch to Decadic dialing
(DEK). Also, B-1 is not necessarily the first command. Valid first
commands include: B-1, B-2, and B-3.
Natural MicroSystems 87
Chapter 2 R1.5 CAS Protocols Reference Manual
Tones have specific meanings in the context of the call setup. Forward tones are
used to convey both address information (the number being called) and
information about the call (the caller’s number and the call’s category). Also,
some tones are used specifically as control tones. Backward tones are used only
for transmission of control signals. The following table shows the meaning of all
the tones:
Forward Backward
Designation Meaning of the Signal Designation Meaning of the Signal
of the Signal of the Signal
A-6 digit 6 B-6 Repeat the last forward tone (if not
intelligible).
A-9 digit 9 B-9 Transmit the next DID, and all the
rest of the DIDs as decadic pulses
(switch to DEK register signaling).
A-11 Automatic call from B-11 Request the information on the type
subscriber with category III of call and the category of priority
of priority service. service.
88 Natural MicroSystems
CAS Protocols Reference Manual Register Signaling – MF-PS
Forward Backward
Designation Meaning of the Signal Designation Meaning of the Signal
of the Signal of the Signal
Natural MicroSystems 89
Chapter 2 R1.5 CAS Protocols Reference Manual
Duration
Timer # Description (ms)
T1 Time to recieve "seizure acknowledged". 400
T2 Time between seizure acknowledge and the reception of the first 4000
backward request.
T3 Time between end of forward signal and the reception of the backward 4000
request.
T4 Time between end of backward request and the reception of the forward 350
signal.
90 Natural MicroSystems
CAS Protocols Reference Manual Register Signaling – ANIs
DID #1
Å
Å
Request for next DID (B-2)
DID #2
Å
Å
Request for next DID (B-2)
Switching from MF-PS to decadic dialing
can happen at any time during register
signaling, with one of the following tones:
Æ B-8: request for all DID digits in
decadic form
Æ B-9: request for DID digit N+1 (if the
last DID dialed is N) and all following
DID digits
Æ B-10: request for DID digit N-1 and all
following DID digits
A-12: request
Å
acknowledgement
(answer or reject)
The outbound side transmits the ANI digits (the caller’s identification number) as
a continuous stream of MF tones (without silence between consecutive tones)
after the inbound side requests them.
The request consists of the establishment of the Answer line code (AB = 10)
together with a pure 500 Hz tone, for more than 90 ms. The tone must begin no
later than 275 ms after the answer line code is established, otherwise, the
outbound side will consider the call connected.
Natural MicroSystems 91
Chapter 2 R1.5 CAS Protocols Reference Manual
Timing
Figure 13 shows the delays and necessary timers for best ANI detection:
ANSWER
B-4
500 Hz ANI
A-12
T2 T3
T1
T4
The following table represents the default values of the timers and the R1.5
parameter associated with each timer:
Timer Time
Number (ms) R 1.5 Parameters Description
T1 2000 adi.r15.requestdelaytime Specifies the delay between A-12 and the ANI
request line signal AB-10.
92 Natural MicroSystems
CAS Protocols Reference Manual Register Signaling – ANIs
Natural MicroSystems 93
Chapter 2 R1.5 CAS Protocols Reference Manual
The calling party’s number is usually 7 digits long. These digits are divided into
two logical groups: the subscriber’s number (4 digits, called ’defg’ respectively),
and the switch index (3 digits, called ’abc’ respectively). Also, the category (Ca)
of the calling party is transmitted. Thus, 8 informational digits are transmitted.
However, some digits are repeated in a standard way in order to increase
detectability, and the ANI digits are transmitted in “reverse” order. The sequence
goes as follows:
Digit Meaning
MF-13 Flag to signal the beginning of the sequence
94 Natural MicroSystems
CAS Protocols Reference Manual Algorithm Description
Natural MicroSystems 95
Chapter 2 R1.5 CAS Protocols Reference Manual
The packet may look as shown in Figure 14, where the first row numbers the order
of arrival and the second row shows the sequence:
# 1 2 3 4 5 6 7 8 9 10 11 12 13
MF "13" 4 5 0 8 7 5 4 "13" 1 4 5 0
The two top and the lower bottom arrows show the correct ANI sequence within
the packet. The first digits that will match will be the 4, then 5, then 0, so the
correct packet would be extracted, starting with the 4.
96 Natural MicroSystems
CAS Protocols Reference Manual Category Definitions
The category of the subscriber may have one of the following meanings:
Category Definition
1 Residential and institutional telephone with access to the automatic zone, inter-
city, and international network.
2 Hotel telephone with access to the automatic zone, inter-city and international
network.
3 Residential, institutional and hotel telephone with access to the local networks,
without the access to the automatic inter-zone, inter-city and international network
and toll services.
4 Institutional telephone with access tot the automatic zone, inter-city and
international network, and toll services; priority is given to connections on inter-
zone and inter-city networks.
7 Residential and institutional telephone with access to the automatic zone, inter-city
and international network, and toll services.
9 Local payphone.
10 Reserved.
Natural MicroSystems 97
Chapter 2 R1.5 CAS Protocols Reference Manual
This section describes the parameters that program the TCP. The parameters are
used to adapt the TCP to particular variations of R1.5, as well as to give the host
application more flexibility in its interaction with the TCP. Some of these
parameters are application-dependent, and can be changed at will by the user.
Others (the majority) are rigidly fixed for a given network. The following table
explains the parameters’ meaning:
The following four parameters are public, they can be freely modified by the user:
Default
Parameter Name Unit Comments Value #
ADI.R15.DIDnumber number Inbound side. Specifies the number of 7 0
incoming DID digits to expect.
98 Natural MicroSystems
CAS Protocols Reference Manual Flow Control Parameters
Default
Parameter Name Unit Comments Value #
ADI.R15.optionflags mask Inbound and outbound sides. 0x20 2
Flags controlling optional TCP behavior:
(MF-Pulse Shuttle protocol is the default
register signaling for both inbound and
outbound protocols and can be combined
or replaced with some other types of
register signaling)
Æ 0x1: Set this bit to do decadic
dialing (for both inbound and
outbound protocols).
Æ 0x2: Set this bit for long distance
inbound protocol.
Æ 0x4: Set this bit to make the
transmission of ANIs mandatory
(relevant to the outbound protocol).
Æ 0x8: Set this bit to make the
reception of ANIs mandatory
(relevant to the inbound protocol).
Æ 0x10: (default) Play busy on
timeout.
Æ 0x20: Play fast busy on timeout.
Æ 0x40: Play silence on timeout.
These values can be Ored for cumulative
effect.
Natural MicroSystems 99
Chapter 2 R1.5 CAS Protocols Reference Manual
Default
Parameter Name Unit Comments Value #
ADI.R15.firstcommand count Inbound side. First command for inbound 1 4
protocol.
Acceptable values: 1, 2, or 3.
If the value is set to 2 or 3, make sure that
the ADI.R15.DIDnumber is set to a correct
value.
The following parameters are reserved, they should not be modified by the user,
since this would affect regulatory compliance in the target country.
Default
Parameter Name Unit Comments Value #
ADI.R15.qualtime ms Specifies the qualification time for bit 20 8
changes.
Default
Parameter name Unit Comments value #
ADI.R15.seizetime ms Specifies the maximum time to receive 400 10
the seizure acknowledge.
Default
Parameter Name Unit Comments Value #
ADI.R15.waitfrwdsignaltime ms Specifies the maximum time to 350 16
receive a forward signal.
Default
Parameter Name Unit Comments Value #
ADI.R15.toneontime ms Specifies the duration of the MF tone used to 45 22
convey DID information (backward and
forward).
Default
Parameter Name Unit Comments Value #
ADI.R15.pulseofftime ms Relevant to the outbound protocols. 50 25
Specifies the time a pulse should be OFF
while dialing with decadic pulses.
Default
Parameter Name Unit Comments Value #
ADI.R15.ringfreq Hz Relevant to inbound side protocols. 425 28
Specifies the ring tone frequency.
2.4.7 Miscellaneous
Default
Parameter Name Unit Comments Value #
ADI.R15.resourcerequesttime mask Specifies the time to wait 0x0a0f 37
for resources.
This scction presents diagrams that illustrate the functions of several R1.5
protocols in local and long distance circumstances.
As shown in Figure 15, the local inbound protocol is symmetrical to the local
outbound protocol, so they are depicted in the same diagram. The line signaling
used is Group 1.
Refer to the table in Section 2.2.1, R1.5 Line Signaling – Group 1.
The register signaling is Pulse Shuttle, but the TCP can also switch to decadic
dialing.
outbound inbound
seizure
seizure ack
B-1
DID1
B-2
DID2
B-2
MF-PS
B-10 B-9
B-8
.
Decadic Pulses
DID2 DID3
. DID1 DIFFERENT
ways to
DID3 DID4
. DID2 switch to
DEK
.DID4 .
DID5 . DID3
B-4 .
. . .
. . A-12
.
. . .
ANI request
500 Hz
ANI, continuous MF
CONNECTED
access to the long distance switches), the inbound side sends the end of call setup
tones and requests ANIs. Only after ANIs have been received, the DID phase
returns, but in the form of Decadic Dialing.
outbound switch
seizure
seizure ack
B-1
DID1 = ’8’
B-4 MF-PS
A-12
answer signal
ANI request
500 Hz
Cat + ANI
continus MF
DID1
Decadic Pulses
.
.
DEK
.
.
Last DID
.
.
.
wait for answer
answer signal
CONNECTED
seizure
seizure ack
answer signal
ANI request
500 Hz
Cat + ANI
continus MF
DID1
Decadic Pulses
.
. DEK
.
.
.
Last DID
.
.
wait for answer
answer signal
CONNECTED
Long distance inbound protocol differs only slightly from the inbound local
protocol. One difference is line signaling. Long distance protocol uses line
signaling group 2 (see the table in Section 2.2.2, R1.5 Line Signaling – Group 2).
The second difference is that the long distance protocol does not have the ability
to ask for ANIs.
switch inbound
seizure
seizure ack
B-1
DID1
B-2
DID2
B-8
.
DID2 DID3
Decadic Pulses
. DID1 DIFFERENT
ways to
DID3 DID4
. DID2 switch to
DEK
answer signal
CONNECTED
This section contains the state diagrams of the System R1.5 TCP. States that
interface with the line or the host are shown, grouped in logical groups if
appropriate. States in the TCP script that simply execute instructions without
receiving input from the external world (pass-through states) are omitted.
Note: Although it is not shown in the diagrams, every state handles error
conditions.
Description Icon
TCP State
state name
short
description
Going to
another
diagram
Coming
from
another
diagram
Same Same
Color Color
StartUp
Idle
INBOUND OUTBOUND
got resources got resources
InChooseType OutWaitSeizAck
seizure
acknowledge
decided what kind of protocol received
To digit
To Dial
reception
states
states
From
Seize state
digit string OK
OutWaitFirstTone
From
Connected
states
on ANI reqest
or answer
OutLookForTone
wait for the 500Hz tone
return to cp
to distinguish between
if answer
answer and ANI
request
got 500Hz
tone
got 500Hz
tone,
OutStartANI have
no ANIs
First play To
Combination OutNoANIWait answer connected
13 removal state
If request comes,
but no ANIs are
available, wait for
timer expired answer removal or
clear back
OutSendANI
done with
play ANI
digit
Tone OutCountANI OutAfterANI
Watch out
Keeps track call progess
sent all for answer
of counters, removal,
reverses the ANIs
proceed to
order of ANIs call progress Long
more Distance
digits decadic
have not To
dialed OutLookFor
DIDs Dialtone
From
OutWaitFirst
Tone
From
ANI
Reception
States
Pulses (DEK)
OutPause
FirstDigit
OutLookFor
Dialtone OutDialDecadic
timer
Looks for Set the
expired on ANI reqest
the dial values or answer
tone on the
line timer
expired
Hold a timer
before
sending next
OutDoDecadic digit
To Call
Dial by loop Progress
sending for one States
pulses on digit
the line
do another
digit
OutGetMFEnd
on ANI reqest
OutFinishSetup
or answer
Long Distance
Get the MF_END
(will switch to
of the "finish" tone
DEK
Play MF-12,
confirmation tone
received
B8,B9 or B10 on ANI reqest
switch to DEK done or answer
To the
OutInterDigit To
OutLookFor
To Call Tone
Progress
States
OutPlayError
Plays an error
tone and returns
to the state where
it was called from
From Choose
DEK
Type state
InGetDigits
To Incoming
Call state
Accepted or answered (long distance Long distance inbound protocol sends a selection free line
inbound protocol) signal. This tells the local switch to play ring tone and then
answer if the host committed to answer the call (or
commanded to accept the call) and play ring indefinitely.
After the ANI detection phase for the local protocol, the answer line code is
removed. Depending upon whether the call needs to be accepted or answered, the
local inbound TCP then reacts in the following ways:
Call has been provisionally accepted Stays silent or allows the host to play
a custom message.
From Digit
Reception
States
Got all digits
Got all digits (Long
(Local Call) Distance Call)
LD Incoming Call
Incoming Call
timer expired/ Expect a decision
Expect a decision reject call on how to proceed
on how to proceed from the PC.
from the PC. Answers or
ACCEPT or timer rejects a call.
Answers or
ANSWER InFinishSetup expired/ ACCEPT_CALL is
rejects a call
CALL reject call handled like
(MF-PS) Send B-4 or B-5
ANSWER_CALL
(end of call
setup) MF-PS Rejecting
DEK Local
(send reject tone) Reject an
incoming call.
InRequestANI Play tones and
TONE_DONE wait for hangup.
Request by For Local calls,
playing 500 Hz send a B-5 or B-7
tone and get A-12, or InGetReply
Combination 13 TIMER_EXPIRED
wait for A-12,
outbound ANSWER_CALL,
ANI idle
MF_13 confirmation of ACCEPT_CALL
forward B4 and
B5
A-12 (reject confirmed)
To the ANI
Reception To the
states idle state
WaitForAnswer
Command
Perform what is
necessary to
From ANI done accept the call
Reception (received depending on the
States ACCEPT_CALL) Mode of Accept, InAnsweringCall
and wait for
ANSWER or Signal answer
REJECT_CALL Plays ring tone.
After ring goes to
connected
ANSWER_ CS_RESOURCE_GIVEN
CALL
AcceptWithCS
Resources
tone done
Request CS
resources, after
they have been
released to allow
the application to
play tones before
connected To the
connected
states
done
(received
ANSWER_CALL)
From
RequestANIs
Fig. 20
ANI
MF_13
InGetCategory
InGetANI
MF tone
end of a
collect the ANIs,
digit
keep track of
counter
confirm
MF_13
InANISecondRound
end of a
digit verify some of the WriteBuffer
ANIs sent in the
first round We received ANIs
got in reversed order -
last ANI reorder them
TIMER
EXPIRED
InAfterANI
done
To the
Incoming
Call States
Connected States
Figure 26 shows the common inbound and outbound connected and call progress
states. After the call had been answered, the application may request to perform
call progress. From this point on, the TCP expects a hang-up. An unusual situation
arises for long distance inbound calls when the called party hangs up first. In this
case, there is a chance of a recall, when the calling party (the operator)
reestablishes the connection. In the case of a clear back, the inbound side waits not
only for the hang-up line code from the outbound side but also for another bit
pattern indicating recall. If this happens, the inbound side reestablishes the
connection, while in a regular case it would clear the line.
start call
progress command call answered
EnterConnected
no need to
connection OK,
run call progress
done with CP
done with CP
Releasing
diconnect command diconnect command
received Check if the other received
side is not idle.
Long Distance See if need to play idle on the line
(if hanging up first) something before or no resources
releasing. If so,
idle on the line ask for resources.
or no resources Otherwise, release.
LDInboundRelease
InboundComplete got the resources
Check whether Release OutCompleteRelease
there is idle, or a
recall, If recall, wait for idle from Wait for idle from
release the call other side, when clear InOutRelease clear other side, when
and send Idle, clear forward back idle, clear
incoming call After we got the
again. resources, play
what is required,
then assert
hangup pattern
idle idle
idle
recall
To the
idle state
To the
Incoming
Call State
The R1.5 protocol is highly unusual, partly because it uses A-law US-MF tones to
send tones in forward and backward directions, thus requiring both the MF
Generator to be active all the time as well as the MF Detector. Both the detector
and the generator have high MIPS consumption. This is not presumed by the
default assignment of DSP files to task processors on the board. Therefore, the
default configuration allows only 23 ports to be active with this protocol on an AG
E1 board (57 MHz DSPs). To have better performance, task processors must be
explicitly specified.
The following table shows the DSP files that are most likely to be necessary to run
R1.5 protocol:
mf_a.dsp MF detection
Below is the most optimal task processor assignment for the protocol. It must be
included in the AG configuration file for AG E1 boards to perform as desired.
Also specified are the assignments of DSP files to task processors on the board:
This is the allocation for the AG QUAD E board and is the R1.5 equivalent to
CCMODE = HIGH. It is used for applications with very little activity in the
connected state (ideally none, like trunk-to-trunk switching applications). It gives
a maximum of 120 ports of simultaneous call setup per board, but provides a very
limited processing power for the application while the call is connected:
The following figures represent the MIPS consumption and the kind of DSP
resources needed by the R1.5 TCPs to place and receive a call, plotted against
time. The register signaling consists of seven DID digits, category digit and seven
ANI digits, inbound and outbound.
1. AG-E1. In this case, the DSP overlay to receive / transmit bits signaling is
on. The DSP overlays for US MF tone detection and tone generation are
started in the beginning of call setup, and are kept turned on until connected,
for both, inbound and outbound. This is illustrated in Figure 27:
MIPS
3.35
tone generation:0.88
3
1
signal detection + generation: 0.5
0 50 100 150 200 250 300 350 400 450 TIME (MS)
MIPS
3
tone generation:0.88
2
USMF tone
detection:1.97
1
signal detection + generation: 0.5
0 50 100 150 200 250 300 350 400 450 TIME (MS)
The PROTtest utility can be used to test the protocol’s behavior under load. It
spawns a number of threads, each either placing or receiving calls. Then it collects
statistics and errors from the threads. (For more information about PROTtest,
refer to the PROTtest User’s Manual.) The following are examples of PROTtest
log files for AG-E1 and AG Quad E boards, running at full capacity.
Results are summarized in the following table, showing the first three cycles
(shaded differently):
Seizure Acknowledge 40
… … …
Beginning of ANI
MF 1 3620 Category
… … …
Results are summarized in the following table, showing the first three compelled
cycles (differentiated by shading):
Timing
Event (ms) Comments
Seizure 0 Taken as base of timing
Seizure Acknowledge 30
… … …
Beginning of ANI
MF 1 3030 Category
… … …
Glossary
ABCD bits The four signaling bits used in channel associated signaling. The value
that these bits take determines or indicates the state of the telephone
channel. Many protocols do not use all four bits. Usually, only the A
and B bits are used in North America, but all four are used in Europe.
See also CAS.
agmon Utility program which reads a configuration file and uses it to load and
monitor AG hardware.
call control Any part of telephone call establishment, including setting up,
blocking, monitoring, transferring, releasing, or tearing down the
telephone call.
call progress In CT Access, functions that allow the application to control and
supervise call placement. Call progress monitors in-band energy to
detect network tones, voice, and other tones such as modems.
compelled sequence
An exchange of in-band signaling during call setup, where each party
waits for receipt acknowledgment from the other party before sending
the next signal.
DID number Direct Inward Dial number; the called number which is collected by
the TCP and is passed to the application.
E&M E lead and M lead; a telephone signaling system used between two
switches that uses two wires called the E lead and the M lead. In digital
E&M signaling, the A bits and B bits are used.
H.100 bus A PCM digital bus standard for integrating hardware from various PC
board vendors which enables boards to share voice data, signaling data,
and switching information. The H.100 bus is an interoperable superset
of the H-MVIP and MVIP-90 telephony buses. It can be addressed
using the MVIP-95 switch model. See also MVIP-90, MVIP-95.
loopback A local connection between the input and output of a device. This is
typically used for testing purposes.
MFC-R2 ITU standard line protocol for E1 lines using compelled MF tones and
channel-associated signaling. Almost every country has a national
variant of this standard. See also CAS.
MVIP-90 Original MVIP standard for hardware and software requirements for a
standard telephony bus.
MVIP-95 Device driver specification for H-MVIP, H.100, and H.110 telephony
buses.
off-hook The active state of a telephone circuit. The term is derived from old
telephone sets where the receiver, when in use, was lifted from a hook
attached to a switch. The opposite condition is on-hook.
outbound application
An application designed to place outbound calls.
PCI Peripheral Component Interconnect; a 32/64 bit local bus inside a PC.
Pulsed E and M A telephone signaling system used between two switches that uses two
wires called the E lead and the M lead. In analog E and M, the M lead
of one switch is connected to the E lead of the other, and vice versa. In
digital E and M signaling, a single bit is used to convey signaling
states. See also E&M.
R2 signaling One of several standards for channel associated signaling. See also
CAS.
release guard time
An interval in which an inbound protocol remains in blocking state
after both parties have hung up.
switch In telephony, a device that can connect one of several inputs to one of
several outputs.
synchronous function
A function that does not return until the operation it initiated has
completed.
toll category In MFC-R2 and E&M protocols, the digit received by the inbound
application that indicates the Group II category of incoming ANI digits.
Usually this is the same as the user category, but in some countries it
carries the toll category of the call. See also ANI, E&M, MFC-R2,
user category.
trunk For NMS products, a trunk isdefined as the physical interface between
the telephone network and the board. It can be used interchangeably
with line because it could be connected to either a trunk or a line.
In telephone networks, a trunk is defined as a shared connection
between two switches. It differs from a line in that it is not dedicated to
one subscriber or extension. Trunks should have good machine-to-
machine interfaces. Compared to lines, trunks have different signaling
requirements, possibly including billing information.
Trunk Control Program
See TCP.
unsolicited events
Events that are not generated in response to a command.
user category In MFC-R2 and E&M protocols, the digit received by the inbound
application that indicates the Group I category of incoming ANI digits;
e.g., normal subscriber, operator, maintenance equipment. See also
ANI, E&M, MFC-R2, toll category.