Showing posts with label voip. Show all posts
Showing posts with label voip. Show all posts

VoIP Gateways

The range of products in the VoIP gateway area starts with small PC-compatible boards with a few ports, which accommodate one to four analog telephone lines, and extends to large carrier-grade devices that can be used by both telephone companies and Internet service providers. Toward the high end of such products, the functions of a gateway per se are often integrated with gatekeepers into standalone products (IP telephony servers) that have many additional functions, as described in the next section.

At the heart of any gateway is the capability of converting a stream of voice-carrying signals (either analog or digital) from a telephone line or trunk into a stream of RTP packets (transmitted over a shared channel, which in general should be expected to have a much lower bandwidth). Part of such a conversion involves compression, which compensates for bandwidth reduction. Conversely, every gateway has the capability of converting a stream of RTP packets (and possibly decompressing the data) into a stream of signals acceptable by existing traditional telephony systems. The conversion is performed by coder/decoder modules, or codecs, which can be purchased separately and subsequently integrated into gateways. The role of codecs is central to the basic function of any gateway, because their performance affects crispness and clarity of sound. Other important gateway capabilities that affect the quality of sound are echo cancellation and compression. Overall, it is a legitimate requirement in today’s market that the audio capabilities of gateways enable full-duplex conversations. Another important requirement is that gateways used by the switches (for example, PBXs) for toll saving monitor the quality of IP-transmitted sound (by employing RTCP, for example) and generate an appropriate signal to the switches when sound quality falls below a customer-set threshold. Upon reception of a poor-quality signal, the switches can automatically select a PSTN trunk to continue the call.

We have not addressed codec standards in detail because much literature on the subject is available (see Minoli and Minoli, 1998b) and such a treatment is beyond the scope. We will provide recommendations on what to expect (and request) of vendors. The role of codec standards is hard to overestimate because, in principle, gateways cannot interoperate if they do not support the same sets of codecs. Thus, compliance with codec standards is an essential factor when evaluating gateways purchased from different manufacturers.

As we have said before, major codec standards are produced by ITU-T in its G Series of Recommendations. First of all, the G.711 standard (for ISDN voice channels; yields 64 kbps of digital audio) must be supported by any gateway. In connection with regional standards, all gateways that interoperate with the North American telephone system must support the A-law scheme; all gateways that interoperate with the European telephone system must support the A-law scheme. In addition, advanced gateways may support low-bandwidth connections with G.723.1 or G.729A codecs. In that case, the support of transporting DTMF tones using a non-RTP path is important because the low-bandwidth codecs are not designed to reliably pass DTMF tones as part of a compressed voice stream. This feature allows the regeneration of the DTMF tones at the receiving gateway and improves overall call performance, in particular for applications (for example, voice mail) that require correct detection of DTMF tones.

Voice compression makes it difficult, if not impossible, to transcode (that is, translate from one encoding scheme to another). Transcoding is well understood for the compression schemes defined in the G.729 and G.729A standards. Thus, if compression is supported, it should adhere to these standards. Some gateway products attempt to realize much-needed bandwidth savings by monitoring sound activity. When silence is detected by the transmitting gateway, it stops the sound transmission and informs the receiving gateway about the background noise. Then the receiving gateway emits comfort noise to create the perception of uninterrupted transmission. Unfortunately, this feature always seems to affect voice quality negatively—much more research is needed to develop the necessary heuristics. G.729 and G.729A are two codec standards that support some degree of implementation of this feature, but there are so many incompatible solutions among current products that it is essential to require any products that support this feature to provide a means to turn it off. Finally, when this feature is implemented for G.729 or G.729A, the G.729B standard should be complied with.

Another essential aspect of all gateway products is their ability to use signaling (for call establishment rather than voice transport) at the appropriate level of interconnection. For example, a two-stage gateway that provides a toll bypass (or trunk replacement) service must support call establishment signaling (in most cases, SS No. 7 ISUP) with the access switch. Similarly, a one-stage enterprise gateway that connects to a PBX must support access (typically Q.931) signaling. Even the lowest-end gateway products—one-port residential gateways that interconnect analog telephones with the Internet—must still comply with the standard in-band signaling (that is, provision of dial tone, acceptance of dialed tones, and recognition of on-hook/off-hook events) in order to work with the telephone. Thus, on the traditional telephony side, gateway products destined for a particular function must support appropriate in-band signaling. On the IP side, gateway products should support (and all advertised products invariably do support) the H.323 family of standards. In particular, at the time of this writing, H.323 version 2 is supported by leading products. In addition, some products also support the SIP protocol as an add-on, since several providers—especially those integrating cable networks—require SIP compliance. To this end, industry attention to SIP is growing steadily at the moment of this writing.

One function present in several products, is gateway self-discovery. This is a novel feature particularly relevant to the gateways at the edge of the PSTN. For a phone-to-phone toll bypass service, calling party access to a (local) gateway is achieved through a local telephone call. For the service to be cost effective, the called party must also be dialed from its local exchange, so the local terminating gateway must be the endpoint for the IP-carried part of the call. The IP addresses of the gateways (relative to the local PSTN numbers they serve best) are currently hard-coded, but products that support dynamic discovery of the gateway are emerging. (Note that, as an alternative, gatekeepers could perform self-discovery.) To handle the case in which a local terminating gateway cannot be reached (because of network congestion, gateway overload, or network server failure), advanced gateways often support PSTN fallback. This feature allows a phone-to-phone toll bypass call that otherwise cannot be completed to be completed entirely over the PSTN.

Gateway products fall into three general categories:


  • Small (branch office or residential) gateway products. One- to four-port interfaces to which POTS telephones are connected.


  • Enterprise-grade (access gateway) gateway products. Support up to a thousand ports. On the traditional telephony side, enterprise-grade gateway products typically interface with a PBX (and employ Q.931 signaling) and are usually located on the enterprise premises. As an exception, they can be located at an ISP or LEC, but with the sole purpose of providing PBX-emulating Centrex services to a particular enterprise that does not own a PBX. Enterprise gateways support one-stage dialing: PBXs divert voice-over-IP traffic based on either a specific number or an algorithm computed by the PBX.


  • Carrier-grade (trunking gateway) gateway products. Support up to 10,000 ports located on the premises of IP telephony providers (for example, ISPs, IXCs, and LECs). The connection (and, therefore, the signaling arrangements with the PSTN) requires the use of Signalling System No. 7 (SS No. 7) ISUP. If the SS No. 7 transaction capabilities (TC) are supported, then the VoIP gateways equipped with the application supporting the Intelligent Network Application Protocol (INAP) can also benefit from using Intelligent Network. To get the SS No. 7 support, the VoIP gateways can be paired with the SS7 gateways.


The rest of this section deals with carrier- and enterprise-grade gateway products.

The gateway hardware invariably consists of line modules (cards) mounted on a rack and a management board that is responsible for the control of line modules. Communications among the line modules and the management card are carried through fast-switching fabric, such as an asynchronous transfer mode (ATM) cell backplane, at a high rate (100 to 200 Mbps in the case of the ATM fabric). Switching fabric components are augmented by Ethernet cards and ports (and necessary wiring) as well as the cooling system (typically fans). Cooling is important because of the highly CPU-bound nature of codec software, which necessitates the employment of multiple digital signal processors (DSPs). In fact, the two major limitation factors for scalability of gateways are heat and space. The system is administered via the operator console, which may (but does not have to) be part of a particular offering; however, console ports are provided on the gateway chassis. In high-end products, the line modules are hot-swappable: Any line card can be replaced by another one without the need for reconfiguration—it will automatically load its configuration from the management board once it is in the slot.

As you may recall, the ISDN primary rate interface (PRI) service provides bandwidths of 1.544 Mbps for T1 lines in the United States and 2.048 Mbps over E1 lines in Europe. This translates to twenty-three and thirty 64-kbps bearer (B) channels, respectively, augmented by a 64-kbps data (D) channel. In high-end gateway products, the capacity is measured in quad-T1 and tri-E1, corresponding to four T1 and three E1 circuits, respectively—the capacity of one card. Cards can be added to a system, and systems can be stacked on top of each other.

In addition to PRI, a number of other trunking services (which we do not cover) are supported by the high-end products. Note that ISDN is a typical and widely deployed use of trunking services; while a T1 line is normally associated with a single telephone number, when it is set up for ISDN B channels, each can be assigned a separate number. The lines can be configured for both inbound and combined inbound and outbound calling. Another configuration option is alternating circuit-switched voice and data, which permits modem calls.

As far as software is concerned, each line module’s central processing unit (CPU) executes the gateway operating system independently. The operating systems themselves are often proprietary. High-end products provide both command-line and graphical user interfaces for monitoring, maintenance, and operations of the gateway via the console or telnet connection. In addition, most systems support Simple Network Management Protocol (SNMP) for the same purposes. To this end, an important feature of a gateway is provision of SNMP alarms for a number of causes, including power failure and overheating. Another important feature is automatic turn-off of the overheated or otherwise problematic line modules by the management board.

An important function of gateway software is billing. Gateways should generate call detail records, whose attributes are described in more detail in the next section, and then pass them to the gatekeeper responsible for billing. Part of the software is libraries that provide the application programmer’s interface (API) that allows the use of third-party billing software in support of various paying methods, such as prepaid calling cards or credit cards. (A key feature of a prepaid billing system is to send a call drop request to the originating gateway when the caller runs out of prepaid funds.) Billing is of course inseparable from authentication. In two-stage calling, the user is identified by a personal identification number (PIN); the Automatic Number Identification (ANI) parameter passed from the PSTN is also used for authentication. Again, the authentication may be performed by gatekeepers.

Proprietary coding and compression techniques often make gateways from different vendors noninteroperable. While enterprise network managers can solve this problem by purchasing a matching set of gateways from a single vendor or ensuring that the gateways from selected vendors do interoperate, neither ISPs nor telephone companies can presently ensure that calls originating or terminating in another ISP’s or telephone company’s network can be successfully handled by the receiving gateway. This interoperability issue is one reason (QoS is the second) why the quality of voice-over-IP calls has been reported to be high in the enterprise networks, but remains problematic over the Internet.

Finally, it is important to note that distributed implementations of VoIP gateways are emerging. These implementations are generally associated with so-called soft switches and media gateways. Soft switches provide call control and signaling interworking, while media gateways handle the transcoding of voice streams tailored for different networks. The aim is to make distributed VoIP gateways more scalable and programmable than their monolithic cousins and ultimately to ease the introduction of new services.

Cisco VoIP Hardware and Software

Up to this point, we has been focused on the underlying technologies and concepts that are integral to VoIP. We will now turn our attention to Cisco-specific information. Cisco offers a variety of hardware and software solutions for implementing VoIP. Its routers and switches can be adapted to support voice communications, usually with the addition of voice modules and software in many cases.

Voice Modules and Cards

Routers and switches use voice modules to transform and transport voice traffic across the IP network. They use Voice Interface Cards (VICs) to provide connectivity to telephone equipment. Voice Network Modules (VNMs) and VICs are configured using Cisco IOS VoIP commands. Digital signal processors are used in various Cisco voice-enabled routers in order to convert analog voice signals to digital for transmission across an IP network and to convert back to analog once the packet has arrived at the destination router. DSPs can be found as modules inserted onto the motherboard, as on the 1700 series routers, or as slots built onto a VNM that is placed in the router.

Voice Network Modules

VNMs convert analog voice into a digital form for transmission over the IP network. At least one VNM is needed to enable the router to handle voice traffic. VNMs come in several different models for the 2600/3600 series routers. Figure 1 shows several models of VNMs available for the 26XX and 36XX routers.
Figure 1: Voice Network Modules
Only VICs are supported in the carriers with a V in the name. The NM-1V is a one-slot VNM. You can install one VIC in the NM-1V to gain up to two voice ports. The NM-1V/2V does not support WAN interface cards (WICs). The NM-2V is a two-slot version of the VNM. You can install up to two VICs in the NM-2V, providing up to four voice ports. The NM-HDV high-density VNM. This network module consists of five slots, one for the voice WIC (VWIC) and four for the packet voice DSP modules (PVDM). You can install one VWIC in the NM-HDV, providing up to two voice ports. The VNMs are the housings for the actual voice interface cards that provide the necessary functionality and connectivity to achieve voice communications.

Voice Interface Cards

Voice Interface Cards (VICs) are inserted in the VNM to provide the necessary interface and support for the desired type of voice configuration (FXS, FXO, or E&M). Figure 2 shows several VICs to give you an idea of what is available; this is not an exhaustive list, as Cisco continues to expand in this area.
Figure 2: Voice Interface Cards
One thing we would caution you about is that physically and outwardly, there is no difference between the FXS and FXO connectors; it can be easy to plug a telephone into what you think is an FXS port, but is actually an FXO port. Ensure that you are using the proper port type by checking the color and labels before attempting to connect.

  • VIC-2E/M The two-port E&M module VIC-2E/M connects an IP network directly to a PBX system. It can be configured for special settings associated with tie-line ports on most PBXs. E&M ports are color-coded brown.

  • VIC-2FXS The two-port FXS module VIC-2FXS connects to endpoint equipment such as a telephone, keypad, or fax. These ports provide ringing voltage, dial tone, and other endpoint specific functionality. FXS ports are color-coded gray.

  • VIC-2FXO The two-port FXO module VIC-2FXO connects to a PBX or PSTN. FXO ports are color-coded pink. Other types of FXO cards for use outside North America are capable of providing switching and signaling techniques used in other geographic regions such as VIC-2FXO-EU for use in Europe.

  • VWIC-2MFT-T-1 The two-port VWIC multiflex trunk interface card is a two-port card that can be used for voice, data, and integrated voice/data applications. The multiflex VWIC can support data-only applications as a WAN interface on the Cisco 1700, 2600, or 3600. It can also integrate voice and data with the Drop and Insert multiplexer functionality and/or configured to support packetized voice (VoIP) when in the digital T-1/E-1 network module.

  • Two-Port ISDN BRI Card Two two-port ISDN BRI VICs are available for the Cisco 1700, 2600, and Cisco 3600 series routers. These cards are available as ISDN BRI S/T or NT interfaces for terminating to an ISDN network.

  • Four-Port Analog DID/FXS VICs Two direct inward dial interface cards are available. One card is a two-port RJ-11 that supports DID only. These cards are used for providing DID service to extensions on a PBX so that users may transparently dial directly to extensions.

Introduction to IP Telephony | Cisco VOIP


IP telephony describes products and solutions to transport voice traffic over IP. You can use IP to create a converged network to transport voice, video, and data communications. There are numerous benefits to this type of infrastructure, including simplified administration, cost savings on telecommunications fees, and unified messaging services.

Voice traffic and data traffic require two completely different solutions. Data traffic is relatively resilient and tolerant of slow WAN links, lost packets, and unsequenced packets. Voice traffic, on the other hand, is not. Voice requires packets to be received in the same order in which they were sent; if a packet is lost, it should remain lost, as retransmitting the packet would only confuse the person on the receiving end of the call.

There are several components that must be added to your infrastructure. These components include, but are not limited to, specialized router interfaces, specialized LAN switch modules and interfaces, IP telephone handsets, Cisco CallManager servers, and Cisco Unity Mail, as well as other unified messaging solutions.

Conferencing and Transcoding, and Other Services

Conferencing allows multiple participants to communicate in a single call. Cisco technologies support two types of conferencing: ad-hoc and meet-me. In ad-hoc conferencing, the originating caller controls the conference, and determines who will be on the call. The participants may even continue the call after the originating caller hangs up.

A meet-me conference allows participants to participate in a conference by calling an assigned number out of a pool of numbers. More participants can continue to join the conference call until the maximum number allowed is reached. DSP resources support both types of conferencing, and the Cisco CallManager uses DSP resources to provide conferencing services, as shown in Figure 1.

Figure 1: Conferencing

In this scenario, an IP phone caller joins another IP phone and an outside or PSTN initiated caller in a three-way conference call. This is an example of an ad-hoc conference. The Catalyst DSP resources are one way a Cisco CallManager is able to provide a conference bridge. A four-way G.711 conference call would utilize four DSP resources, one for each participant to stream into a single call.

Software conferencing is based on G.711, whereas hardware-based solutions support G.711, G.729a, and G.723. The newer Cisco IP phones 7900 Series supports G.711 and G.729a, but the older style supports G.711 and G.723.

Transcoding is the process of converting IP packets of voice streams between a low bit-rate (LBR) CODEC to and from a G.711 CODEC. An LBR is a CODEC such as G.729a or G.723. An example of a need for transcoding is when a user across the IP WAN wants to access a voice mail system which only supports G.711 and CallManager is configured to initiate remote IP calls using a G.729a CODEC, as shown in Figure 9.18. In this scenario, transcoding must be performed to convert the G.729a voice stream to G.711 in order to communicate with the voice mail system.

Figure 2: Transcoding

Figure 2 serves to illustrate that there are several components necessary to make your voice network a dream come true. Being familiar with these components is one of your first steps to achieving your voice goals. There are also several common telephone functions that any system should be able to provide, regardless of whether they are traditional PSTN or VoIP.

Call Transfer

Cisco IP phones support call transfer. By signaling back to the Call Manager (CM), a call can be transferred to the final destination.

Call Forward

Cisco IP telephony supports three types of call forwarding:

  • Call Forward All Forwards all calls.

  • Call Forward Busy Forwards calls only when the line is in use.

  • Call Forward No Answer Forwards calls when the phone is not answered within a certain configurable number of seconds.

Call Park and Call Pickup

The Call Park feature allows a person to receive a call at another telephone for privacy. A Park soft key allows the receiver to place the caller on hold and dial a designated extension number. At another phone, the extension number can be dialed to pick up the call.

The Call Pickup feature is used to answer an incoming call that is ringing at an unattended telephone. Buttons or soft keys may be configured to activate this function.

Music on Hold

Music on Hold plays music when a caller is on hold, and the music stream may be a .WAV file or a fixed external device controlled by the CM.

Interactive Voice Response

IVRs are useful for routing calls to the appropriate person or department and are less expensive than having an individual do it. In most typical situations, there is an IVR on any public incoming line. Support on Cisco products for IVR is achieved with Tool Command Language (TCL) scripts and voice files, which are referenced in the configuration. When a call comes into the router and matches a set of criteria, the script is queried. The script runs and, depending on the digits it captures, plays an audio file. This audio file is stored in the router's flash and loaded into memory. The audio files use the standard .AU format. The scripts also have the capability to reroute calls.

PBX Terminology | Cisco Voice Over IP

The following is a list of terms that you should be comfortable using when working with PBXs.

  • T-1 24 voice channels (DS-0s), with total bandwidth of 1.544 Mbps.

  • ISDN PRI – T-1 Uses T-1 framing, but uses one DS-0 for upper layer signaling (23 voice channels).

  • E-1 European standard. 2.048 Mbps (32 voice channels).

  • ISDN PRI – E-1 Uses two channels for signaling and framing, (30 voice channels).

  • E&M Analog signaling method. Used for trunk or tie lines between switches (network-to-network), and for connections to voice mail or legacy PBX systems.

  • Foreign Exchange Station Link between the switch and an extension. Sometimes used to describe a connection that services an analog device attached to the PBX.

  • Foreign Exchange Office Link between the PBX and the central office. It is a analog DS-0 tariffed at a flat-rate.

  • Loop start Removing the receiver from the hook closes a circuit and creates a loop, allowing connections.

  • Ground start Earth ground is needed to complete the loop and allow connectivity.

  • Central office Local telephone company termination point for all numbers in a given area, and commonly connects to PBXs via T-1s.

  • Coordinated Dial Plans (CDP) Defines numbers on your network and how callers will reach numbers outside your dial plan (for example, a coordinated dial plan may require a nine to be dialed to reach an external number).

  • Call routing Physical act of routing a call through the network, and processing the call. This is static in PBX systems.

  • Tip-and-Ring In single pair copper connections, identifies which end supplies the voltage on the wire.

  • Direct Inward Dial (DID) Establishes a relationship between the extension and a public number. Assigns a block of numbers to a trunk line from the telephone provider to the PBX, and the PBX administrator can route those numbers to related extensions. Figure 1 illustrates the logical mapping of number 415-555-1706 to extension 51706. Please note that it is quite common to create five-digit extensions in North America that relate to the assigned DID numbers.

Figure 1: Direct Inward Dialing Illustrated

Our discussion so far has focused on traditional means of providing voice telephone service. The information provided thus far will help you to transition to accomplishing the same tasks using IP networks and techniques.

Telecom Made Simple

Related Posts with Thumbnails