PRI Error Codes
- 1 Q.931 Protocol
- 2 Messages
- 2.1 ALERTING (1)
- 2.2 CALL PROCEEDING (2)
- 2.3 CONNECT (7)
- 2.4 CONNECT ACKNOWLEDGE (15)
- 2.5 SETUP (5)
- 2.6 SETUP ACKNOWLEDGE (13)
- 2.7 SUSPEND (37)
- 2.8 SUSPEND ACKNOWLEDGE (45)
- 2.9 SUSPEND REJECT (33)
- 2.10 RESUME (40)
- 2.11 RESUME ACKNOWLEDGE (48)
- 2.12 RESUME REJECT (34)
- 2.13 DISCONNECT (69)
- 2.14 RELEASE (77)
- 2.15 RELEASE COMPLETE (90)
- 2.16 STATUS ENQUIRY (117)
- 2.17 STATUS (125)
- 3 Exchange
- 4 Information Elements
Â
Q.931 Protocol
Q.931 is ISDN's connection control protocol, roughly comparable to TCP in the Internet protocol stack. Q.931 doesn't provide flow control or perform retransmission, since the underlying layers are assumed to be reliable and the circuit-oriented nature of ISDN allocates bandwidth in fixed increments of 64 kbps. Q.931 does manage connection setup and breakdown. Like TCP, Q.931 documents both the protocol itself and a protocol state machine.
Note: In accordance with the conventions of ITU standards, bits are numbered from LSB to MSB, 1 to 8 (Internet standards use MSB to LSB, 0 to 7).
The general format of a Q.931 message includes a single byte protocol discriminator (8 for Q.931 messages), a call reference value to distinguish between different calls being managed over the same D channel, a message type, and various information elements (IEs) as required by the message type in question:
Section of message | Bytes |
Protocol Discriminator | 1 |
Length (bytes) of Call Reference | 2 |
Call Reference (1-15 bytes) | 3-n |
Message Type | n+1 |
Information Elements (IE's) | Â |
Â
Messages
IEs (Information Elements) are defined below The most important messages types are:
Â
ALERTING (1)
IEs: Bearer capability, Channel identification, Progress indicator, Display, Signal, High layer compatibility Direction: Called user -> network -> calling user The called user is being alerted, i.e "the phone is ringing".
Â
CALL PROCEEDING (2)
IEs: Bearer capability, Channel identification, Progress indicator, Display, High layer compatibility Direction: Called user -> network -> calling user Call establishment is proceeding.
Â
CONNECT (7)
IEs: Bearer capability, Channel identification, Progress indicator, Display, Date/time, Signal, Low layer compatibility, High layer compatibility Direction: Called user -> network -> calling user The call has gone through and been accepted.
Â
CONNECT ACKNOWLEDGE (15)
IEs: Display, Signal Direction: Calling user -> network -> called user
Â
SETUP (5)
IEs: Sending complete, Repeat indicator, Bearer capability, Channel identification, Progress indicator, Network specific facilities, Display, Keypad facility, Signal, Calling party number, Calling party subaddress, Called party number, Called party subaddress, Transit network selection, Repeat indicator, Low layer compatibility, High layer compatibility Direction: Calling user -> network -> called user Initial message sent to initiate a call
Â
SETUP ACKNOWLEDGE (13)
IEs: Channel identification, Progress indicator, Display, Signal Direction: Called user -> network -> calling user
Â
SUSPEND (37)
IEs: Call identity Direction: User -> network ISDN calls can be suspended (put on hold) to allow another call to use the B channel. SUSPEND/RESUME messages manage suspended calls.
Â
SUSPEND ACKNOWLEDGE (45)
IEs: Display Direction: Network -> user
Â
SUSPEND REJECT (33)
IEs: Cause, Display Direction: Network -> user
Â
RESUME (40)
IEs: Call identity Direction: User -> network
Â
RESUME ACKNOWLEDGE (48)
IEs: Channel identification, Display Direction: Network -> user
Â
RESUME REJECT (34)
IEs: Cause, Display Direction: Network -> user
Â
DISCONNECT (69)
IEs: Cause, Progress indicator, Display, Signal A message sent from the user to request call breakdown, or from the network to indicate the call has been cleared.
Â
RELEASE (77)
IEs: Cause, Display, Signal A message sent to indicate the channel is being released.
Â
RELEASE COMPLETE (90)
IEs: Cause, Display, Signal
Â
STATUS ENQUIRY (117)
IEs: Display Direction: User -> network Requests a STATUS message from the network
Â
STATUS (125)
IEs: Cause, Call State, Display Direction: Network -> user Indicates current call state in terms of Q.931 state machine
Â
Exchange
>>> SETUP >>> |
<<< CALL PROCEEDING <<< |
<<< ALERTING <<< |
<<< CONNECT <<< |
<<< USER DATA >>> |
>>> DISCONNECT >>> |
<<< RELEASE <<< |
>>> RELEASE COMPLETE >>> |
Â
Information Elements
The most important IEs are all multi-byte:
Â
Bearer capability (4)
Specifies a requested service: packet or circuit mode, data rate, type of information content
Â
Call identity (16)
Used to identify a suspended call
Â
Call state (20)
Describes the current status of a call in terms of the standard Q.931 state machine
Â
Called party number (112)
The phone number being dialed
Â
Calling party number (108)
The origin phone number
Â
Cause (16)
The reason a call was rejected or disconnected. A sample of possible cause codes:
1 Unassigned number
3 No route to destination
6 Channel unacceptable
16 Normal call clearing
17 User busy
18 User not responding
19 User alerting; no answer
22 Number changed
27 Destination out of order
28 Invalid number format
34 No circuit/channel available
42 Switching equipment congestion
Â
Channel identification (24)
Identify a B channel
Â
Date/time (41)
Poorly defined. Not year 2000 compliant!
Â
Display (40)
Human-readable text. Can be specified with almost any message to provide text for an LCD display, for example.
Â
Service Profile Identification (58)
Contains a Service Profile Identifier (SPID)
Â
Signal (52)
Provide call status tones according to the following chart:
 | Meaning | North American Practice |
---|---|---|
0000 0000 | Dial tone | 350 Hz + 440 Hz; continuous |
0000 0001 | Ringing | 440 Hz + 480 Hz; 2 sec on/4 sec off |
0000 0010 | Intercept | Alternating 440 Hz and 620 Hz; 250 ms each |
0000 0011 | Network congestion (fast busy) | 480 Hz + 620 Hz; 250 ms on/250 ms off |
0000 0100 | Busy | 480 Hz + 620 Hz; 500 ms on/500 ms off |
0000 0101 | Confirm | 350 Hz + 440 Hz; repeated three times: 100 ms on/100 ms off |
0000 0110 | Answer | not used |
0000 0111 | Call waiting | 440 Hz; 300 ms burst |
0000 1000 | Off-hook warning | 1400 Hz + 2060 Hz + 2450 Hz + 2600 Hz; 100 ms on/100 ms off |
0011 1111 | Tones off | Â |