323 Notes
H.323
ITU-T Spec (1996) Based on ISDN Q.931 Layer 3 Signaling
H.225: This TCP-based communications protocol is responsible for call setup
and teardown. Number exchange and call state reporting are part of this
subprotocol.
Default port is TCP 1720 (Can be changed to UDP on both sides)
H.225 RAS: Registration, Admission, and Status (RAS) functions are UDP based,
and they are used with a gatekeeper.
H.245:
Performs call control, including a capabilities exchange (for example, codec
negotiation, DTMF relay, VAD etc.).
Uses Control channel to transport messages between endpoints
Logical channel Signaling (OLC): Open/closes a channel that carriers a media
stream
Capabilities Exchange: Negotiates audio, video and codec
Master or Responder determination: Which endpoint is the master and which is
responder (used to resolve conflicts)
Mode Requests: Requests a change in mode or capability of the media stream.
Uses TCP port range from 11000-11999
H.450:
Controls supplementary services between H.323 endpoints
Supplementary services include call-waiting, hold, transfer, park and pickup.
Originating gateway initiates a H.225 session with the destination gateway on TCP port
1720.
Call setup procedures based on Q.931 create a call signaling channel between the
endpoints.
Endpoints open another channel for the H.245 control function (negotiates capabilities and
exchanges logical channel descriptions)
Logical channel descriptions open RTP sessions
Endpoints exchange multimedia over RTP including quality stats using RTCP.
H.225 is responsible only for setting up the call and routing it to the proper destination.
H.225 does
not have any mechanism for exchanging capabilities or setting up and tearing down media
streams. The called H.323 device is responsible for sending the IP address and port
number that are used to establish the TCP connections for H.245 signaling. This
information can be sent by the
called device in either the Alerting or Connect message. When the originating H.323 device
receives the IP address and port number for H.245 negotiations, it initiates a second TCP
connection to carry out the necessary capabilities exchange and logical channel
negotiations. This
TCP session is primarily used to do four things:
Master/slave determination-This is used to resolve conflicts that might exist when two
endpoints in a call request the same thing, but only one of the two can gain access to the
resource at a time.
Terminal capabilities exchange-This is one of the most important functions of the H.245
protocol. The two most important capabilities are the supported audio codecs and the basic
audio calls.
Logical channel signaling-This indicates a one-way audio stream. With H.323 version 2,
it is possible to open and close logical channels in the middle of a call. Because H.245
messages are independent of the H.225 signaling, a call can still be connected in H.225
even if no logical channels are open. This is typical with such features as hold, transfer, and
conference.
DTMF relay-Because voice networks typically do not carry DTMF tones inband because of
compression issues, these tones are carried on the signaling channel. Ensure that the type
of DTMF relay configured on your gateway is compatible with your gatekeeper.
H.245
In H.323 Slow start the H.245 transmission doesnt start until the other end answers and a
connect message is sent. After that H.245 starts and OLC takes place allowing Media.
Can also configure H.232 slow start on a specific dial peer instead of globally via an H323
Voice Class map.
Codecs in H.323 The H.245 protocol performs three functions when a call is being set
up
Capability negotiation: The most important H.245 function enables devices to
communicate without have prior knowledge of the capabilities of the remote entity. It
negotiates audio/video/codec and additional parameters such as AD. Capabilities are
offered via Terminal Capabilities set (TCS) messages and are answered using ACK/
REJECT/ Confirm
Logical Channel signaling: Occurs after capabilities exchanged and master slave
determination is made. Devices open media flows referred to as logical channels. This is
done by sending OLC messages that carry RTP/RTCP ports and receives and
acknowledgement message.
The final function of H.245 is exchanging information, such as IP address and RTP port
numbers, to be used to create the media streams. These take the form of logical
channel commands and acknowledgments.
Because the H.245 negotiation sends many messages, this method is sometimes
called slow connect. If the endpoints have prior knowledge of each other (customer-owned
environment), a method known as fast connect is used. The H.245 information is
predetermined and is sent as part of the H.225 setup and connect messages.
Early Media:
A third method, known as H.323 Early Media, combines the two methods. In Early Media,
the H.245 is still negotiated, as in Slow Start, but this is done during the setup and connect
portions of H.225. H.323 Early Media is usually used with the PSTN.
Both Gateways negotiate the capabilities such as codecs and RTP/RTCP port numbers
within the first two messages. When early media is negotiated they open the media
channels before any other H.225 messages are exchanged.
Early Media allows sending of media from the called party or an application server to the
caller prior to the call being accepted. Early Media is usally sent from the PSTN and carries
ringing tones or announcements.
contains a
sequence of encoded logical channel structures, each representing a different capability
media type
for both send and receive directions.
- call setup procedures based on Q.931 create a combined call signaling channel and
control channel for H.245. capabilities and logical channel descriptions are exchanged
within the Q.931 call setup procedure.
2. The called endpoint selects one or more of the media types offered by the calling
fast-connect procedures unless its corresponding dial peer has been configured for the
Resource
Reservation Protocol (RSVP). RSVP means the quality of service is set by the reqqos command to a
value other than the default of best-effort. If the dial peer has been configured for RSVP,
traditional
slow connect procedures are followed, and the endpoint neither attempts to initiate fast
connect nor
responds to a fast-connect request from its peer.
A terminating endpoint can reject fast connect by simply omitting the fastStart element from
all H.225
messages up to and including connect. In this case, normal H.245 procedures are followed
and a separate H.245 TCP connection is established. So, if an endpoint does not support
the fast-connect procedures, normal H.245 procedures are followed. In addition, certain
conditions can cause a fast-connect call to fall back to normal H.245 procedures to
complete the call.
Note also that MTP Required should be set for Outbound Fast Start
separately with check box Enable Inbound FastStart. (Inbound Fast Start does not require
an MTP or a codec selection.)
Note
When H.323 Fast Start is enabled, an MTP is assigned for every outbound H.323
trunk call. MTPs used for H.323 Fast Start support a single voice codec only, and therefore
video and encrypted calls are not supported. H.323 Fast Start is disabled by default on
H.323 trunks, and MTPs are not required for outbound or inbound calls. As a general rule,
this default H.323 (Slow Start) trunk configuration is preferred so that voice, video, and
encrypted calls are supported over H.323 trunk connections.
Here the RTP stream is opened prior to the Connect from the far end.
H.323 gateways exchange H.225 call setup messages using TCP port 1720. One of those
messages (the CONNECT message) contains the control channel address to use for H.245
signals.
The gateways then exchange H.245 capabilities negotiation messages. Once negotiation is
successful the calling endpoint IP address and RTP port numbers are exchanged.
Media flow-around is a good choice to improve scalability and performance when networktopology
hiding and bearer-level interworking features are not required.
With the default configuration, the Cisco Unified Border Element receives media packets
from the
inbound call leg, terminates them, and then reoriginates the media stream on an outbound
call leg. Media flow-around enables media packets to be passed directly between the
endpoints, without the intervention of the Cisco Unified Border Element.
1. enable
2. configure terminal
3. voice class media 1tag
4. media flow-around
5. dial-peer voice 2 voip
6. voice-class media tag
7. exit
OR
1. enable
2. configure terminal
3. dial-peer voice number voip
4. media flow-around
5. exit
in place by the time the destination phone starts ringing and the caller hears ringback.
allow
CCM-
default
emptycapability
encoding
exit
h225
h245
h450
ip
no
null-called-number
in incoming h225 setup
ras
scenario-cause
session
telephony-service
terminal-alias-pattern
NY2921-VGW(conf-serv-h323)#h225 ?
alt-ep
Alternate endpoint configuration
connect-passthru Connect Pass through
display-ie
Map calling name from Q931 Facility to
h245-address
global control for h225 reporting of h245-address
GW
id-passthru
Protocol identifier pass through
listen-port
Call Signaling Port (default 1720)
plus-digit
Pass through the leading plus digit
signal
Specify signaling options
start-h245
global control of initiation of H.245
timeout
Specify timeout for maintaining connections
NY2921-VGW(conf-serv-h323)#h225 timeout ?
call-proceeding CALLPROCEEDING timeout(T310)
keepalive
KEEPALIVE timeout
ntf
Name To Follow timeout
setup
SETUP timeout
t302
T302 timeout
t304
T304 timeout
tcp
H225 CSA connection type
destination-pattern 3
dtmf-relay h245-alphanumeric
pref 1
session target ipv4:<ip of publisher>
3.
4.
Connection Types:
Calls between two Cisco Unified CM controlled endpoints under the following conditions:
During Unified CM reloads.
When a Transmission Control Protocol (TCP) connection used for signaling H.225.0 or
H.245
messages between one or both endpoints and Unified CM is lost or flapping.
Between endpoints that are registered to different Unified CMs in a cluster, and the TCP
connection between the two Unified CMs is lost.
Between IP phones and the PSTN at the same site.
Flapping is defined for this feature as the repeated and temporary loss of IP connectivity,
which can be
caused by WAN or LAN failures. H.323 VoIP calls between a Cisco IOS gateway and Cisco
Unified CM
may be torn down when flapping occurs. When Unified CM detects that the TCP connection
is lost, it
clears the call and closes the TCP sockets used for the call by sending a TCP FIN, without
sending an
H.225.0 Release Complete or H.245 End Session message. This is called quiet clearing.
The TCP FIN
sent from Unified CM could reach the gateway if the network comes up for a short duration,
and the
gateway will tear down the call. Even if the TCP FIN does not reach the gateway, the TCP
keepalives
sent from the gateway could reach Unified CM when the network comes up. Unified CM will
send TCP
RST messages in response to the keepalives because it has already closed the TCP
connection. The
gateway will tear down H.323 calls if it receives the RST message.
The following configuration example enables H.323 VoIP call preservation for all calls:
voiceservicevoip
h323
callpreserve
H323
Gateway
Call
Survivability
by default when the signalling between the H323 Gateway and CUCM is lost, the RTP
stream of active calls will be disconnected after H225 Keepalive timeout.To maintain your
TDM-to-IP
Calls
for
Trunk
Gateways
use
the
below
commands:
Voice
Service
Voip
H323
no
H225
timeout
Keepalive
#To maintain your IP-to-IP Calls for IP Trunk Gateways (CUBE) use
the
below
commands
Voice
Service
Voip
allow-connections
H323
to
H323
Voice Class H323 tag (this is the same Voice class that you
defined
for
redundant
CUCM
above)
Call Preserve
H.323 Terminals
An H.323 terminal is an endpoint in the network that provides for real-time, two-way
communications
with another H.323 terminal, gateway, or multipoint control unit (MCU). The
communications consist
of control, indications, audio, moving color video pictures, or data between the two
terminals. A terminal may provide audio only; audio and data; audio and video; or audio,
data, and video. The terminal can be a computer-based video conferencing system or other
device.