|
|
VoIP for the Cisco AS5300 has two primary applications:
Figure 1 and Figure 2 illustrate these applications.


Before configuring VoIP on your Cisco AS5300, it helps to understand what happens at an application level when you place a call using VoIP. The general flow of a two-party voice call using VoIP is as follows:
1. The user picks up the handset; this signals an off-hook condition to the signalling application part of VoIP in the Cisco AS5300.
2. The session application part of VoIP issues a dial tone and waits for the user to dial a telephone number.
3. The user dials the telephone number; those numbers are accumulated and stored by the session application.
4. After enough digits are accumulated to match a configured destination pattern, the telephone number is mapped to an IP host via the dial plan mapper. The IP host has a direct connection to either the destination telephone number or a PBX that is responsible for completing the call to the configured destination pattern.
5. The session application then runs the H.323 session protocol to establish a transmission and a reception channel for each direction over the IP network. If the call is being handled by a PBX, the PBX forwards the call to the destination telephone. If RSVP has been configured, the RSVP reservations are put into effect to achieve the desired quality of service (QoS) over the IP network.
6. The CODECs are enabled for both ends of the connection and the conversation proceeds using RTP/UDP/IP as the protocol stack.
7. Any call-progress indications (or other signals that can be carried in-band) are cut through the voice path as soon as an end-to-end audio channel is established. Signalling that can be detected by the voice ports (for example, in-band DTMF digits after the call setup is complete) is also trapped by the session application at either end of the connection and carried over the IP network encapsulated in RTCP using the RTCP APP extension mechanism.
8. When either end of the call hangs up, the RSVP reservations are torn down (if RSVP is used) and the session ends. Each end becomes idle, waiting for the next off-hook condition to trigger another call setup.
Data link connection identifier (DLCI)---Frame Relay virtual circuit number corresponding to a particular destination. The DLCI is part of the Frame Relay header and is usually 10 bits long.
DS0---A 64-kbps channel on an E1 or T1 WAN interface.
DSP---Digital Signal Processor.
DTMF---Dual tone multifrequency. Use of two simultaneous voice-band tones for dial (such as touch tone).
Multilink PPP---Multilink Point-to-Point Protocol. This protocol is a method of splitting, recombining, and sequencing datagrams across multiple logical data links.
PBX---Private Branch Exchange. Privately owned central switching office.
POTS dial peer---Dial peer connected via a traditional telephony network. POTS peers point to a particular voice port on a voice network device.
PSTN---Public Switched Telephone Network. PSTN refers to the local telephone company.
PVC---Permanent virtual circuit.
QoS---Quality of service, which refers to the measure of service quality provided to the user.
RSVP---Resource Reservation Protocol. This protocol supports the reservation of resources across an IP network.
VoIP dial peer---Dial peer connected via a packet network; in the case of Voice over IP, this is an IP network. VoIP peers point to specific VoIP devices.
The Voice over IP feature is supported on the following Cisco device platforms:
The configuration procedure described in this document pertains to the Cisco AS5300. For information on how to configure Voice over IP on Cisco 3600 series routers, refer to the Cisco IOS Release 12.0 Voice, Video, and Home Applications Configuration Guide.
Before you can configure your Cisco AS5300 to use Voice over IP, you must first do the following:
This feature supports the following MIBs:
For descriptions of supported MIBs and how to use MIBs, see Cisco's MIB Web site on CCO at http://www.cisco.com/public/sw-center/netmgmt/cmtk/mibs.shtml.
This feature supports the following RFCs:
Depending on the topology of your network or the resources used in your network, you might need to perform the following additional tasks:
Voice over IP for the Cisco AS5300 also offers VFC management features that enable you to easily upgrade and manage the system software stored in VFC Flash memory. You might need to perform the following tasks to manage VCWare or DSPWare:
All of these tasks are described in the following sections.
It is important to remember that QoS must be configured throughout your network---not just on the AS5300 devices running VoIP---to improve voice network performance. Not all QoS techniques are appropriate for all network routers. Edge routers and backbone routers in your network do not necessarily perform the same operations; the QoS tasks they perform might differ as well. To configure your IP network for real-time voice traffic, you need to consider the functions of both edge and backbone routers in your network, then select the appropriate QoS tool or tools.
In general, edge routers perform the following QoS functions:
In general, backbone routers perform the following QoS functions:
Scalable QoS solutions require cooperative edge and backbone functions.
Although they are not mandatory, some QoS tools have been identified as being valuable in fine-tuning your network to support real-time voice traffic. To configure your IP network for QoS using these tools, perform one or more of the following tasks:
Each of these components is discussed in the following sections.
In general, Multilink PPP with interleaving is used in conjunction with weighted fair queueing and RSVP or IP Precedence to ensure voice packet delivery. Use Multilink PPP with interleaving and weighted fair queueing to define how data will be managed; use RSVP or IP Precedence to give priority to voice packets.
You should configure Multilink PPP if the following conditions exist in your network:
Multilink PPP support for interleaving can be configured on virtual templates, dialer interfaces, and ISDN BRI or PRI interfaces. To configure interleaving, you need to perform the following tasks:
To configure Multilink PPP and interleaving on a configured and operational interface or virtual interface template, use the following commands in interface configuration mode:
| Step | Command | Purpose | ||
|---|---|---|---|---|
| ppp multilink | Enables Multilink PPP. | ||
| ppp multilink interleave | Enables real-time packet interleaving. | ||
| ppp multilink fragment-delay milliseconds | Optionally, configures a maximum fragment delay. | ||
| ip rtp reserve lowest-UDP-port range-of-ports [maximum-bandwidth] | Reserves a special queue for real-time packet flows to specified destination User Datagram Protocol (UDP) ports, allowing real-time traffic to have higher priority than other flows. This command applies only if you have not configured RSVP. |
For more information about Multilink PPP, refer to the the Cisco IOS Release 12.0 Dial Solutions Configuration Guide.
The following example defines a virtual interface template that enables Multilink PPP with interleaving and a maximum real-time traffic delay of 20 milliseconds, and then applies that virtual template to the Multilink PPP bundle:
interface virtual-template 1 ppp multilink encapsulated ppp ppp multilink interleave ppp multilink fragment-delay 20 ip rtp reserve 16384 100 64 multilink virtual-template 1
Real-Time Transport Protocol (RTP) is used for carrying packetized audio traffic over an IP network. RTP header compression compresses the IP/UDP/RTP header in an RTP data packet from 40 bytes to approximately 2 to 4 bytes (most of the time), as shown in Figure 3.
This compression feature is beneficial if you are running Voice over IP over slow links. Enabling compression on both ends of a low-bandwidth serial link can greatly reduce the network overhead if there is substantial RTP traffic on that slow link.
Typically, an RTP packet has a payload of approximately 20 to 160 bytes for audio applications that use compressed payloads. RTP header compression is especially beneficial when the RTP payload size is small (for example, compressed audio payloads of 20 to 50 bytes).

You should configure RTP header compression if the following conditions exist in your network:
To use RTP header compression, you need to enable compression on both ends of a serial connection. To enable RTP header compression, use the following command in interface configuration mode:
| Command | Purpose |
|---|---|
ip rtp header-compression [passive] | Enables RTP header compression. |
If you include the passive keyword, the software compresses outgoing RTP packets only if incoming RTP packets on the same interface are compressed. If you use the command without the passive keyword, the software compresses all RTP traffic.
By default, the software supports a total of 16 RTP header compression connections on an interface. To specify a different number of RTP header compression connections, use the following command in interface configuration mode:
| Command | Purpose |
|---|---|
Specifies the total number of RTP header compression connections supported on an interface. |
The following example enables RTP header compression for a serial interface:
interface 0:23 ip rtp header-compression encapsulation ppp ip rtp compression-connections 25
For more information about RTP header compression, see the Cisco IOS Release 12.0 Network Protocols Configuration Guide, Part 1.
16384 = 4(number of voice ports in the AS5300)
Custom queueing and other methods for identifying high priority streams should be configured for these port ranges. For more information about custom queueing, refer to the the Cisco IOS Release 12.0 Quality of Service Solutions Configuration Guide.
In general, weighted fair queueing is used in conjunction with Multilink PPP with interleaving and RSVP or IP Precedence to ensure that voice packet delivery. Use weighted fair queueing with Multilink PPP to define how data will be managed; use RSVP or IP Precedence to give priority to voice packets. For more information about weighted fair queueing, refer to the Cisco IOS Release 12.0 Quality of Service Solutions Configuration Guide.
For Frame Relay links with slow output rates (less than or equal to 64 kbps), where data and voice are being transmitted over the same PVC, Cisco recommends the following solutions:
interface Serial0/0 ip mtu 300 no ip address encapsulation frame-relay no ip route-cache no ip mroute-cache fair-queue 64 256 1000 frame-relay ip rtp header-compression interface Serial0/0.1 point-to-point ip mtu 300 ip address 40.0.0.7 255.0.0.0 ip rsvp bandwidth 48 48 no ip route-cache no ip mroute-cache bandwidth 64 traffic-shape rate 32000 4000 4000 frame-relay interface-dlci 16 frame-relay ip rtp header-compression
In this configuration example, the main interface has been configured as follows:
The subinterface has been configured as follows:
For more information about Frame Relay, refer to the Cisco IOS Release 12.0 Wide-Area Networking Configuration Guide.
When an interface on the Cisco AS5300 is carrying voice data, it is referred to as a voice port. Voice over IP on the Cisco AS5300 is supported over three different interface types in this release:
With ISDN PRI, signalling in Voice over IP for the AS5300 is handled by ISDN PRI group configuration. After ISDN PRI has been configured for both B and D channels for both ISDN PRI lines, you need to issue the isdn incoming-voice command on the serial interface (acting as the D channel) to ensure a dial tone.
Under most circumstances, the default voice-port command values are adequate to configure voice ports to transport voice data over your existing IP network. Because of the inherent complexities involved with PBX networks, you might need specific voice-port values configured, depending on the specifications of the devices in your telephony network. For more information regarding specific voice-port configuration commands, refer to the "Command Reference" section of this document.
To configure a voice port, use the following commands beginning in global configuration mode:
| Step | Command | Purpose | ||
|---|---|---|---|---|
| isdn switch-type switch-type | Defines the telephone company's switch type. | ||
| controller T1 0 | Enables the T1 0 controller and enters controller configuration mode. | ||
| framing esf | Defines the framing characteristics. | ||
| clock source line primary | Configures one T1 line to serve as the primary clock source. | ||
| linecode value | Sets the line code type to match that of your telephone company service provider. | ||
| pri-group timeslots range | Configures ISDN PRI. | ||
| controller T1 1 | Enables the T1 1 controller and enters controller configuration mode. | ||
| framing esf | Defines the framing characteristics. | ||
| linecode value | Sets the line code type to match that of your telephone company service provider. | ||
| pri-group timeslots range | Configures ISDN PRI. | ||
| interface Serial0:23 | Configures the IDSN D channel for the first ISDN PRI line. (The serial interface is the D channel.) | ||
| ip address ip-address | Specifies an IP address for the interface. | ||
| isdn incoming-voice {voice | modem} | Enables incoming ISDN voice calls. | ||
| interface Serial1:23 | Configures the IDSN D channel for the second ISDN PRI line. | ||
| ip address ip-address | Specifies an IP address for the interface. | ||
| isdn incoming-voice {voice | modem} | Enables incoming ISDN voice calls. |
You can check the validity of your voice port configuration by performing the following tasks:
The Voice over IP VNM for the Cisco AS5300 supports E1 R2 signalling as well as ISDN PRI. R2 signalling is an international signalling standard that is common to channelized E1 networks. However, there is no single signalling standard for R2. The ITU-T Q.400-Q.490 recommendation defines R2, but a number of countries and geographic regions implement R2 in entirely different ways. Cisco Systems addresses this lack of standards by supporting many localized implementations of R2 signalling in its Cisco IOS software.
Cisco Systems' E1 R2 signalling default is ITU, which supports the technology used in the following countries: Denmark, Finland, Germany, Russia (ITU variant), Hong Kong (ITU variant), and South Africa (ITU variant). The expression "ITU variant" means there are multiple R2 signalling types in the specified country, but Cisco supports the ITU variant.
Of the local variants listed above, the following local variants have been verified:
R2 signalling is channelized E1 signalling used in Europe, Asia, and South America. It is equivalent to channelized T1 signalling in North America. There are two types of R2 signalling: line signalling and interregister signalling. R2 line signalling includes R2 digital, R2 analog, and R2 pulse. R2 interregister signalling includes R2 compelled, R2 noncompelled, and R2 semicompelled. These signalling types are configured using the cas-group command.
Many countries and regions have their own E1 R2 variant specifications, which supplement the ITU-T Q.400-Q.490 recommendation for R2 signalling. Unique E1 R2 signalling parameters for specific countries and regions are set by entering the cas-custom channel command followed by the country name command.
Cisco's implementation of R2 signalling has dialed number identification service (DNIS) support turned on by default. If you enable the automatic number identification (ani) option, the collection of DNIS information is still performed. Specifying the ani option does not disable DNIS collection. DNIS is the number being called. ANI is the caller's number. For example, if you are configuring router A to call router B, then the DNIS number is assigned to router B; the ANI number is assigned to router A. ANI is similar to Caller ID.
To configure E1 R2 signalling, use the following commands beginning in global configuration mode:
| Step | Command | Purpose | ||
|---|---|---|---|---|
| controller e1 number | Specifies the E1 controller that you want to configure with R2 signalling. | ||
| cas-group channel timeslots range type {r2-analog | r2-digital | r2-pulse} [dtmf | r2-compelled [ani] | r2-non-compelled [ani] | r2-semi-compelled [ani]] | Configures R2 channel-associated signalling on the E1 controller. For a complete description of the available R2 options, refer to the cas-group (controller e1) command in the Cisco IOS Release 12.0 Dial Solutions Command Reference. | ||
| cas-custom channel | Enters cas-custom mode. In this mode, you can localize E1 R2 signalling parameters, such as specific R2 country settings for Hong Kong. For the customization to take effect, the channel number used in the cas-custom command must match the channel number specified by the cas-group command. | ||
| country name use-defaults | Specifies the local country, region, or corporation specification to use with R2 signalling. Replace the name variable with one of the supported country names. Cisco strongly recommends that you include the use-defaults option, which engages the default settings for a specific country. The default setting for all countries is ITU. See the cas-custom command in the Cisco IOS Release 12.0 Dial Solutions Command Reference for the list of supported regions, countries, or corporation specifications. | ||
|
| (Optional) Further customizes the R2 signalling parameters. Some switch types require you to fine tune your R2 settings. Do not tamper with these commands unless you fully understand your switch's requirements. For nearly all network scenarios, the country name use-defaults command fully configures your country's local settings. You should not need to perform Step 5. See the cas-custom command in the Cisco IOS Release 12.0 Dial Solutions Command Reference for more information about each signalling command. | ||
| exit | Exits interface configuration mode. | ||
| voice-port controller-number:channel-number | Enters voice-port configuration mode for the specified voice port. | ||
| cptone country-code | Defines the country-specific PCM encoding and tones. The PCM encoding type must match the country code defined by the cas-custom command. | ||
| exit | Exits voice-port configuration mode. | ||
| exit | Exits global configuration mode. |
As mentioned in the previous configuration steps, the E1 R2 signalling type (whether ITU, ITU variant, or local variant as defined by the cas-custom command) needs to match the appropriate PCM encoding type as defined by the cptone command. For countries for which a cptone value has not yet been defined, you can try the following:
For more information about configuring R2 signalling, refer to the Cisco IOS Release 12.0 Dial Solutions Configuration Guide.
To verify the E1 R2 signalling configuration:
5300#show controller e1 0E1 0 is up.Applique type is Channelized E1 - balancedNo alarms detected.Version info of Slot 0: HW: 2, Firmware: 4, PLD Rev: 2Manufacture Cookie is not programmed.Framing is CRC4, Line Code is HDB3, Clock Source is Line Primary.Data in current interval (785 seconds elapsed):0 Line Code Violations, 0 Path Code Violations0 Slip Secs, 0 Fr Loss Secs, 0 Line Err Secs, 0 Degraded Mins0 Errored Secs, 0 Bursty Err Secs, 0 Severely Err Secs, 0 Unavail SecsTotal Data (last 13 15 minute intervals):0 Line Code Violations, 0 Path Code Violations,0 Slip Secs, 12 Fr Loss Secs, 0 Line Err Secs, 0 Degraded Mins,0 Errored Secs, 0 Bursty Err Secs, 0 Severely Err Secs, 12 Unavail Secs
as5300#debug serial interface
Serial network interface debugging is on
as5300#show controller e1 0
E1 0 is up.
Applique type is Channelized E1 - balanced
No alarms detected.
Version info of Slot 0: HW:2, Firmware:4, PLD Rev:0
Manufacture Cookie Info:
EEPROM Type 0x0001, EEPROM Version 0x01, Board ID 0x43,
Board Hardware Version 1.0, Item Number 73-2218-4,
Board Revision A0, Serial Number 07805788,
PLD/ISP Version 0.0, Manufacture Date 19-Feb-1998.
Framing is NO-CRC4, Line Code is HDB3, Clock Source is Line Primary.
Data in current interval (135 seconds elapsed):
0 Line Code Violations, 0 Path Code Violations
0 Slip Secs, 0 Fr Loss Secs, 0 Line Err Secs, 0 Degraded Mins
0 Errored Secs, 0 Bursty Err Secs, 0 Severely Err Secs, 0 Unavail
Secs
Robbed bit signals state:
timeslots rxA rxB rxC rxD txA txB txC txD
1 0 0 0 1 0 1 0 1
2 0 0 0 1 0 1 0 1
3 0 0 0 1 0 1 0 1
4 1 0 0 1 1 0 0 1
5 1 0 0 1 1 0 0 1
6 0 0 0 1 0 1 0 1
7 1 0 0 1 1 0 0 1
8 1 0 0 1 1 0 0 1
9 1 0 0 1 1 0 0 1
10 1 0 0 1 1 0 0 1
11 0 0 0 1 0 1 0 1
12 0 0 0 0 0 0 0 0
13 1 0 0 1 1 0 0 1
14 1 0 0 1 1 0 0 1
15 1 0 0 1 1 0 0 1
17 0 0 0 1 0 1 0 1
18 1 0 0 1 1 0 0 1
19 1 0 0 1 1 0 0 1
20 0 0 0 1 0 1 0 1
21 1 0 0 1 1 0 0 1
22 1 0 0 1 1 0 0 1
23 1 0 0 1 1 0 0 1
24 0 0 0 1 0 1 0 1
25 0 0 0 1 0 1 0 1
26 0 0 0 1 0 1 0 1
27 0 0 0 1 0 1 0 1
28 0 0 0 0 0 0 0 0
29 0 1 1 0 0 1 0 1
30 0 1 0 1 0 0 0 1
31 0 0 0 0 1 0 0 0
If the connection does not come up, check for the following:
If you see errors on the line or the line is going up and down, check for the following:
CAS is the transmission of signalling information within the voice channel. Various types of CAS signalling are available in the T1 world. The most common forms of CAS signalling are loop-start, ground-start, and E&M. The main disadvantage of CAS signalling is its use of user bandwidth to perform signalling functions. CAS signalling is often referred to as robbed-bit signalling because user bandwidth is being "robbed" by the network for other purposes. In addition to receiving and placing calls, CAS signalling processes the receipt of DNIS and ANI information, which is used to support authentication and other functions.
T1 CAS capabilities have been implemented on the Cisco AS5300 VFC to enhance and integrate T1 CAS capabilities on common central office (CO) and PBX configurations for voice calls. The service provider application for T1 CAS includes connectivity to the public network using T1 CAS from the Cisco AS5300 to the end office switch. In this configuration, the Cisco AS5300 captures the dialed-number or called-party number information and passes it along to the upper level applications for interactive voice response (IVR) script selection, modem pooling, and other applications. Service providers also require access to calling party number, ANI, for user identification, for billing account number, and in the future, for more complicated call routing.
Service providers who implement VoIP include traditional voice carriers, new voice and data carriers, and existing Internet service providers. Some of these service providers might use subscriber side lines for their VoIP connectivity to the PSTN; others might use tandem-type service provider connections.
Voice over IP for the AS5300 supports the following T1 CAS signalling systems:
Internet service providers can provide switched 56-kbps access to their customers using the Cisco AS5300. The subset of T1 CAS (robbed bit) supported features are as follows:
To configure T1 CAS for Voice over IP on the Cisco AS5300, use the following commands beginning in privileged EXEC mode:
| Step | Command | Purpose | ||
|---|---|---|---|---|
| configure terminal | Enters global configuration mode. | ||
| controller t1 number
| Enters controller configuration mode to configure your controller port. The controller ports are labeled 0 through 3 on the Quad T1/PRI and E1/PRI cards. | ||
| framing {sf | esf} | Enters the framing type designated by your telephone company. | ||
| clock source line primary | Configures the primary PRI clock source. Configure other lines as secondary or internal clock sources. Note that only one PRI can be clock source primary and one PRI can be clock source secondary. | ||
| linecode {ami | b8zs | hdb3} | Enters the line code type designated by your telephone company. | ||
| cas-group channel timeslots range type signal | Configures all channels for E&M, FXS, and SAS analog signalling. Enter 1-24 for T1. If E1, type 1-31. Signalling types include e&m-fgb, e&m-fgd, e&m-immediate-start, fxs-ground-start, fxs-loop-start, sas-ground-start, and sas-loop-start. You must use the same type of signalling that your central office uses. For E1 using the Anadigicom converter, use cas e&m-fgb signalling. | ||
| controller t1 number
| Enters controller configuration mode to configure the second controller port (There are a total of four controller ports). The controller ports are labeled 0 through 3 on the Quad T1/PRI and E1/PRI cards. | ||
| framing {sf | esf} | Enters the framing type designated by your telephone company. | ||
| clock source line secondary | Configures the secondary PRI clock source. Note that only one PRI can be clock source primary and one PRI can be clock source secondary. | ||
| linecode {ami | b8zs | hdb3} | Enters the line code type designated by your telephone company. | ||
| cas-group channel timeslots range type signal | Configures all channels for E&M, FXS, and SAS analog signalling. Enter 1-24 for T1. If E1, enter 1-31. Signalling types include e&m-fgb, e&m-fgd, e&m-immediate-start, fxs-ground-start, fxs-loop-start, sas-ground-start, and sas-loop-start. You must use the same type of signalling that your central office uses. For E1 using the Anadigicom converter, use cas e&m-fgb signalling. | ||
| controller t1 number
| Enters controller configuration mode to configure the third controller port (there are a total of four controller ports). The controller ports are labeled 0 through 3 on the Quad T1/PRI and E1/PRI cards. | ||
| framing {sf | esf} | Enters the framing type designated by your telephone company. | ||
| clock source line internal | Configures the internal PRI clock source. Note that only one PRI can be clock source primary and one PRI can be clock source secondary. All other controller ports use an internal PRI clock source. | ||
| linecode {ami | b8zs | hdb3} | Enters the line code type designated by your telephone company. | ||
| cas-group channel timeslots range type signal | Configures all channels for E&M, FXS, and SAS analog signalling. Type 1-24 for T1. If E1, type 1-31. Signalling types include e&m-fgb, e&m-fgd, e&m-immediate-start, fxs-ground-start, fxs-loop-start, sas-ground-start, and sas-loop-start. You must use the same type of signalling that your central office uses. For E1 using the Anadigicom converter, use cas e&m-fgb signalling. Repeat steps 12 through 16 to configure the last controller. |
To verify your controller is up and running and no alarms have been reported, perform the following task:
5300# show controller t1 2
T1 2 is up.
No alarms detected.
Version info of slot 0: HW: 2, Firmware: 16, PLD Rev: 0
Manufacture Cookie Info:
EEPROM Type 0x0001, EEPROM Version 0x01, Board ID 0x42,
Board Hardware Version 1.0, Item Number 73-2217-4,
Board Revision A0, Serial Number 06467665,
PLD/ISP Version 0.0, Manufacture Date 14-Nov-1997.
Framing is ESF, Line Code is B8ZS, Clock Source is Internal.
Data in current interval (269 seconds elapsed):
0 Line Code Violations, 0 Path Code Violations
0 Slip Secs, 0 Fr Loss Secs, 0 Line Err Secs, 0 Degraded Mins
0 Errored Secs, 0 Bursty Err Secs, 0 Severely Err Secs, 0 Unavail Secs
Make sure the show controller t1 output is not reporting alarms or violations.
In Figure 4, a small company wants to use Voice over IP to integrate its telephony network with its existing IP network. The destination pattern (or expanded telephone number) associated with Access Server 1 (located to the left of the IP cloud) is (408) 555-xxxx, where xxxx identifies the individual dial peers by extension. The destination pattern (or expanded telephone number) associated with Access Server 2 (located to the right of the IP cloud) is (729) 411-xxxx.

Table 1 shows the number expansion table for this scenario.
| Extension | Destination Pattern | Num-Exp Command Entry |
|---|---|---|
1... | 408555.... | num-exp 1... 408555.... |
2... | 408555.... | num-exp 2... 408555.... |
3... | 408555.... | num-exp 3... 408555.... |
4... | 7294115... | num-exp 4.... 7294115... |
The information included in this example needs to be configured on both Router 1 and Router 2.
To define how to expand an extension number into a particular destination pattern, use the following command in global configuration mode:
| Command | Purpose |
|---|---|
num-exp extension-number extension-string | Configures number expansion. |
You can verify the number expansion information by using the show num-exp command to display the telephone number mapping.
After you have configured dial peers and assigned destination patterns to them, you can verify number expansion information by using the show dialplan number command to learn how a telephone number maps to a dial peer.
The key point to understanding how Voice over IP functions is to understand dial peers. Each dial peer defines the characteristics associated with a call leg, as shown in Figure 5 and Figure 6. Dial peers are used to apply attributes to call legs and to identify call origin and destination. Attributes applied to a call leg include QoS, CODEC, VAD, and fax rate. A call leg is a discrete segment of a call connection that lies between two points in the connection. All of the call legs for a particular connection have the same connection ID.
An end-to-end call is comprised of four call legs, two from the perspective of the source router or access server as shown in Figure 5, and two from the perspective of the destination router or access server as shown in Figure 6. A dial peer is associated with each one of these call legs.


There are two different kinds of dial peers as shown in both Figure 5 and Figure 6:
POTS---POTS dial peers describe the line characteristics usually associated with a traditional telephony network; in VoIP for the Cisco AS5300, they describe the the specific line characteristics between the telephony device and the Cisco AS5300. POTS dial peers point to a particular voice port on a network device---in the case of VoIP for the Cisco AS5300, they point to a specific voice port on the Cisco AS5300 through which voice traffic will travel to the rest of the voice network.
VoIP---VoIP dial peers describe the line characteristics usually associated with a packet network connection (in the case of VoIP, this is an IP network). VoIP peers define the line characteristics between VoIP devices---the routers and access servers carrying voice traffic in this voice network.
For inbound call legs, a dial peer might be associated to the calling number or the port designation. Outbound call legs always have a dial peer associated with them. The destination pattern is used to identify the outbound dial peer. The call is associated with the outbound dial peer at setup time.
POTS peers associate a telephone number with a particular voice port so that incoming calls for that telephone number can be received and outgoing calls can be placed. VoIP peers point to specific devices (by associating destination telephone numbers with a specific IP address) so that incoming calls can be received and outgoing calls can be placed. Both POTS and VoIP peers are needed to establish Voice over IP connections.
Establishing communication using Voice over IP is similar to configuring an IP static route: you are establishing a specific voice connection between two defined endpoints. As shown in Figure 7, for outgoing calls (from the perspective of the POTS dial peer 1), the POTS dial peer establishes the source (via the originating telephone number or voice port) of the call. The VoIP dial peer establishes the destination by associating the destination phone number with a specific IP address.

To configure call connectivity between the source and destination as illustrated in Figure 7, enter the following commands on router 10.1.2.2:
dial-peer voice 1 pots destination-pattern 1408526.... port 0:D dial-peer voice 2 voip destination-pattern 1310520.... session target ipv4:10.1.1.2
In the previous configuration example, the last four digits in the VoIP dial peer's destination pattern were replaced with wildcards, which means that from router 10.1.2.2, calling any number string that begins with the digits "1310520" plus four digits will result in a connection to router 10.1.1.2. By implication, configuring the destination pattern this way means that router 10.1.1.2 services all numbers beginning with those digits. From router 10.1.1.2, calling any number string that begins with the digits "1408526" will result in a connection to router 10.1.2.2. By implication, configuring the destination pattern this way means that router 10.1.2.2 services all numbers beginning with those digits. For more information about stripping and adding digits, see the "Outbound Dialing on POTS Peers" section in this document.
Figure 8 shows how to complete the end-to-end call between dial peer 1 and dial peer 4.

To complete the end-to-end call between dial peer 1 and dial peer 4 as illustrated in Figure 8, enter the following commands on router 10.1.1.2:
dial-peer voice 4 pots destination-pattern 1310520.... port 0:D dial-peer voice 3 voip destination-pattern 1408526.... session target ipv4:10.1.2.2
Using the example in Figure 4, Router 1, with an IP address of 10.1.1.1, connects a small sales branch office to the main office through Router 2. Three telephones in the sales branch office need to be connected to Router 1 via the sales office's PBX. Router 2, with an IP address of 10.1.1.2, is the primary gateway to the main office; as such, it needs to be connected to the company's PBX. Four basic telephone sets need to be connected to Router 2 via the main office's PBX. Figure 4 shows a diagram of this small voice network.

Table 2 shows the peer configuration table for the example illustrated in Figure 4.
| Commands | ||||||
|---|---|---|---|---|---|---|
| Dial Peer Tag | Ext | Dest-Pattern | Type | Session-Target | CODEC | QoS |
Server 1 |
|
|
|
|
|
|
1 | 1... | +1408555.... | POTS |
|
|
|
2 | 2... | +1408555.... | POTS |
|
|
|
3 | 3... | +1408555.... | POTS |
|
|
|
10 |
| +17294115... | VoIP | IPV4 10.1.1.2 | G.729 | Best Effort |
Server 2 |
|
|
|
|
|
|
11 |
| +1408555.... | VoIP | IPV4 10.1.1.1 | G.729 | Best Effort |
4 | 4... | +17294115... | POTS |
|
|
|
POTS peers enable incoming calls to be received by a particular telephony device by defining the call leg characteristics between the telephony device and the Cisco AS5300. To configure a POTS peer, you need to uniquely identify the peer (by assigning it a unique tag number), associate the peer with a voice port through which calls will be established, and define the destination telephone number(s). Under most circumstances, the default values for the remaining dial peer configuration commands will be sufficient to establish connections.
To enter the dial peer configuration mode (and select POTS as the method of voice-related encapsulation), use the following commands in the global configuration mode:
| Command | Purpose |
|---|---|
dial-peer voice number pots | Enters the dial peer configuration mode to configure a POTS peer. |
The number value of the dial-peer voice pots command is a tag that uniquely identifies the dial peer. (This number has local significance only.)
To configure the identified POTS peer, use the following commands in the dial peer configuration mode:
| Step | Command | Purpose | ||
|---|---|---|---|---|
| destination-pattern string | Defines the telephone number associated with this POTS dial peer. | ||
| port controller number:D | Associates this POTS dial peer with a specific logical dial interface. |
For example, suppose there is a voice call whose E.164 called number is 1(310) 555-2222. If you configure a destination pattern of "1310555" and a prefix of "9," the router will strip out "1310555" from the E.164 telephone number, leaving the extension number of "2222." It will then prepend the prefix "9" to the front of the remaining numbers, so that the actual numbers dialed is "9, 2222." The comma in this example means that the router will pause for one second between dialing the "9" and the "2" to allow for a secondary dial tone.
For additional POTS dial-peer configuration options, refer to the "Command Reference" section in this document.
Direct inward dial (DID) is used to determine how the called number is treated for incoming POTS call legs. As shown in Figure 10, incoming means from the perspective of the router. In this case, it is the call leg coming into the access server to be forwarded through to the appropriate destination pattern.

Unless otherwise configured, when a call arrives on the access server, the server presents a dial tone to the caller and collects digits until it can identify the destination dial peer. After the dial peer has been identified, the call is forwarded through the next call leg to the destination.
There are cases where it might be necessary for the server to use the called number (DNIS) to find a dial peer for the outgoing call leg---for example, if the switch connecting the call to the server has already collected the digits. DID enables the server to match the called number with a dial peer and then directly place the outbound call. With DID, the server does not present a dial tone to the caller and does not collect digits; it forwards the call directly to the configured destination.
To use DID and incoming called-number, a dial peer must be associated with the incoming call leg. Before associating the dial peer with the incoming call leg, it helps if you understand the logic behind the algorithm used to associate the incoming call leg with the dial peer. The algorithm used to associate incoming call legs with dial peers uses three inputs (which are derived from signalling and interface information associated with the call) and four defined dial peer elements. The three signalling inputs are as follows:
The four defined dial peer elements are as follows:
Using the elements, the algorithm is as follows:
For all peers where call type (VoIP versus POTS) match dial peer type: if the type is matched, associate the called number with the incoming called-number else if the type is matched, associate calling-number with answer-address else if the type is matched, associate calling-number with destination-pattern else if the type is matched, associate voice port to port
This algorithm shows that if a value is not configured for answer-address, the origin address is used because, in most cases, the origin address and answer-address are the same.
To configure DID for a particular POTS dial peer, use the following commands beginning in global configuration mode:
| Step | Command | Purpose | ||
|---|---|---|---|---|
| dial-peer voice number pots | Enters the dial peer configuration mode to configure a POTS peer. | ||
| direct-inward-dial | Specifies direct inward dial for this POTS peer. |
For additional POTS dial peer configuration options, refer to the "Command Reference" section of this document.
VoIP peers enable outgoing calls to be made from a particular telephony device by defining the line characteristics between the transmitting and receiving Cisco AS5300s. To configure a VoIP peer, you need to uniquely identify the peer (by assigning it a unique tag number), define its destination telephone number and destination IP address. As with POTS peers, under most circumstances, the default values for the remaining dial peer configuration commands will be adequate to establish connections.
To enter the dial-peer configuration mode (and select VoIP as the method of voice-related encapsulation), use the following command beginning in global configuration mode:
| Command | Purpose |
|---|---|
dial-peer voice number voip | Enters the dial peer configuration mode to configure a VoIP peer. |
The number value of the dial-peer voice voip command is a tag that uniquely identifies the dial peer.
To configure the identified VoIP peer, use the following commands in the dial-peer configuration mode:
| Step | Command | Purpose | ||
|---|---|---|---|---|
| destination-pattern string | Defines the destination telephone number associated with this VoIP dial peer. | ||
| session-target {ipv4:destination-address | dns:host-name} | Specifies a destination IP address for this dial peer. |
For additional VoIP dial peer configuration options, refer to the "Commands" section of this document. For examples of how to configure dial peers, refer to the "Configuration Examples" section of this document.
You can check the validity of your dial peer configuration by performing the following tasks:
When the Cisco AS5300 is handling both modem and voice calls, it needs to be able to identify the service type of the call---that is, whether the incoming call to the server is a modem or a voice call. In a mixed environment, where the server receives both modem and voice calls, you need to identify the service type of the call. You can identify the service type of the call in one of two ways:
It helps to understand the logic behind the algorithm the system uses to distinguish voice and modem calls. The algorithm is as follows:
If the called-number matches a number from the modem pool,
handle the call as a modem call If the called-number matches a configured dial peer incoming called number,
handle the call as a voice call Else handle the call as a modem call by default modem pool
If there is no called number information provided within the call setup, call classification is handled as follows:
If there is a modem available in the system-default modem pool
handle the call by a modem from this pool. Else handle the call as a voice call (either ise the voice dial peer assigned to the interface over which the call has arrived or use the default dial peer 0).
To identify the service type of a call to be voice, use the following commands beginning in global configuration mode:
| Step | Command | Purpose | ||
|---|---|---|---|---|
| dial-peer voice number pots | Enters the dial peer configuration mode to configure a POTS peer. | ||
| incoming called-number number | Specifies direct inward dial for this POTS peer. |
To give real-time voice traffic precedence over other IP network traffic, use the following commands beginning in global configuration mode:
| Step | Command | Purpose | ||
|---|---|---|---|---|
| dial-peer voice number voip | Enter the dial peer configuration mode to configure a VoIP peer. | ||
| ip precedence number | Select a precedence level for the voice traffic associated with that dial peer. |
In IP Precedence, the numbers 1 through 5 identify classes for IP flows; the numbers 6 and 7 are used for network and backbone routing and updates.
For example, to ensure that voice traffic associated with VoIP dial peer 103 is given a higher priority than other IP network traffic, enter the following:
dial-peer voice 103 voip ip precedence 5
In this example, when an IP call leg is associated with VoIP dial peer 103, all packets transmitted to the IP network via this dial peer will have their precedence bits set to 5. If the networks receiving these packets have been configured to recognize precedence bits, the packets will be given priority over packets with a lower configured precedence value.
If you have configured your WAN or LAN interfaces for RSVP, you must configure the QoS for any associated VoIP peers. To configure QoS for a selected VoIP peer, use the following commands beginning in global configuration mode:
| Step | Command | Purpose | ||
|---|---|---|---|---|
| dial-peer voice number voip | Enters the dial peer configuration mode to configure a VoIP peer. | ||
| req-qos [best-effort | controlled-load | guaranteed-delay] | Specifies the desired quality of service to be used. |
For example, to specify guaranteed delay QoS for VoIP dial peer 108, enter the following:
Dial-peer voice 108 voip destination-pattern +1408528 req-qos controlled-load session target ipv4:10.0.0.8
In this example, every time a connection is made through VoIP dial peer 108, an RSVP reservation request is made between the local router, all intermediate routers in the path, and the final destination router.
| Step | Command | Purpose | ||
|---|---|---|---|---|
| dial-peer voice number voip | Enters the dial peer configuration mode to configure a VoIP peer. | ||
| acc-qos [best-effort | controlled-load | guaranteed-delay] | Specifies the QoS value below which an SNMP trap will be generated. |
| Step | Command | Purpose | ||
|---|---|---|---|---|
| dial-peer voice number voip | Enters the dial peer configuration mode to configure a VoIP peer. | ||
| codec [g711alaw | g711ulaw | g729r8] | Specifies the desired voice coder rate of speech. |
The default for the codec command is g729r8; normally the default configuration for this command is the most desirable. If, however, you are operating on a high bandwidth network and voice quality is of the highest importance, you should configure the codec command for G711 A Law or G711 U Law. Using either of these values will result in better voice quality, but it will also require higher bandwidth requirements for voice.
For example, to specify a CODEC rate of G.711A Law for VoIP dial peer 108, enter the following:
dial-peer voice 108 voip destination-pattern +1408528 codec g711alaw session target ipv4:10.0.0.8
| Step | Command | Purpose | ||
|---|---|---|---|---|
| dial-peer voice number voip | Enters the dial peer configuration mode to configure a VoIP peer. | ||
| vad | Disables the transmission of silence packets (enabling VAD). |
The default for the vad command is enabled; normally the default configuration for this command is the most desirable. If you are operating on a high bandwidth network and voice quality is of the highest importance, you should disable vad. Disabling VAD will result in better voice quality, but it will also require higher bandwidth requirements for voice.
For example, to enable VAD for VoIP dial peer 108, enter the following:
dial-peer voice 108 voip destination-pattern +1408528 vad session target ipv4:10.0.0.8
To configure Voice over IP to support NetMeeting, create a VoIP peer that contains the following information:
To configure NetMeeting to work with Voice over IP, perform the following steps in the order given:
1. From the Tools menu in the NetMeeting application, select Options. NetMeeting will display the Options dialog box.
2. Click the Audio tab.
3. Click the Calling a telephone using NetMeeting check box.
4. Enter the IP address of the Cisco AS5300 in the IP address field.
5. Under General, click Advanced.
6. Click the Manually configured compression settings check box.
7. Select the CODEC value CCITT ulaw 8000Hz.
8. Click the Up button until this CODEC value is at the top of the list.
9. Click OK to exit.
To initiate a call using Microsoft NetMeeting, perform the following steps in the order given:
1. Click the Call icon from the NetMeeting application. Microsoft NetMeeting will open the call dialog box.
2. From the Call dialog box, select call using H.323 gateway.
3. Enter the telephone number in the Address field.
4. Click Call to initiate a call to the Cisco AS5300 from Microsoft NetMeeting.
VFCs come with a single bundled image of VCWare stored in VFC Flash memory. Table 3 shows the extension types defined for these embedded firmware files.
| Firmware | Filenames | Description |
|---|---|---|
VCWare | vcw-vfc-* | Latest version of VCWare stores in Flash memory, including:
|
DSPWare | btl-vfc-* | DSP bootloader |
| cor-vfc-* | Core operating system and initialization |
| bas-vfc-* | Base voice |
| cdc-*-* | Voice CODEC files |
| fax-vfc-* | Fax relay files |
DSPWare is stored as a compressed file within VCWare; you must unbundle VCWare to install DSPWare into Flash memory. During the unbundling process, two default lists (the default file list and the capability list) are automatically created, populated with default files from that version of VCWare, and stored in VFC Flash memory. The default file list contains the filenames indicating which files are initially loaded into DSP upon bootup. The capability list defines the set of CODECs that can be negotiated for a voice call.
VFC management enables you to add versions of VCWare to Flash memory (download and unbundle files), erase files contained in Flash memory, add files to the default file list and capability list, and delete files from the default file lists and capability lists.
This section describes the following topics:
To download software to your VFC, you need to do the following:
To determine the number of installed VFCs and their location, use the following commands in privileged EXEC mode:
| Command | Purpose |
|---|---|
show vfc slot directory | Determines the number of installed VFCs and their location. |
For each VFC identified and located, perform the tasks described described in the following sections to upgrade system software on that VFC.
To identify the mode (whether VCWare or ROM Monitor), use the following commands in privileged EXEC mode:
| Command | Purpose |
|---|---|
show vfc slot board | Determines whether you VFC is operating in VCWare mode or ROM Monitor mode. |
If the mode is VCWARE, the VFC status will be "VCWARE running." If the mode is ROM Monitor, the VFC status will be "ROMMON."
To download VFC software to the VFC while the VFC is in VCWare mode, use the following commands beginning in privileged EXEC mode:
| Step | Command | Purpose | ||
|---|---|---|---|---|
| erase vfc slot | Erases the Flash memory. | ||
| show vfc slot directory | Verifies that the VFC Flash memory is indeed empty. | ||
| copy tftp vfc | Downloads the VCWare from a TFTPBoot server into VFC Flash memory | ||
| clear vfc slot | Reboots the VFC. | ||
| show vfc slot board | Checks to see if the VFC is back up in VCWare mode. | ||
| show vfc slot directory | Verifies that VCWare is in the VFC Flash. | ||
| unbundle vfc slot | Unbundles the DSPWare from the VCWare and configures the default file list and the capability list. | ||
| show vfc slot directory | Verifies that the DSPWare has been unbundled. | ||
| show vfc slot default-list | Verifies that the default file list has been populated. | ||
| show vfc slot cap-list | Verifies that the capability list has been populated. |
After you have completed the preceding tasks, reboot the Cisco AS5300 for these changes to take effect.
To download VFC software to the VFC while the VFC is in ROM Monitor mode, perform the following tasks, beginning in privileged EXEC mode:
| Step | Command | Purpose | ||
|---|---|---|---|---|
| clear vfc slot purge | Erase the VFC Flash memory. | ||
| copy tftp vfc | Download the VCWare from a TFTP server into VFC Flash memory | ||
| clear vfc slot | Reboot the VFC. | ||
| show vfc slot board | Check to see if the VFC is back up in VCWare mode. | ||
| show vfc slot directory | Verify that VCWare is in the VFC Flash. | ||
| unbundle vfc slot | Unbundle the DSPWare from the VCWare and configure the default file list and the capability list. | ||
| show vfc slot directory | Verify that the DSPWare has been unbundled. | ||
| show vfc slot default-list | Verify that the default file list has been populated. | ||
| show vfc slot cap-list | Verify that the capability list has been populated. |
After you have completed the preceding tasks, reboot the Cisco AS5300 for these changes to take effect.
As mentioned, each VFC comes with a single bundled image of VCWare stored in Flash memory. Voice over IP for the AS5300 offers two different ways to copy new versions of VCWare to the VFC Flash memory: either by downloading the image from the AS5300 motherboard or by downloading the VCWare from a TFTP server.
To download the VCWare file from the AS5300 motherboard to VFC Flash memory, use the following command in privileged EXEC mode:
| Command | Purpose |
|---|---|
copy flash vfc | Downloads (copies) the Flash file from the AS5300 motherboard to the Flash memory on the VFC. |
To download the latest version of VCWare from a TFTP server, make sure that the file is stored on the TFTP server. If you have a copy of the current version of VCWare on disk, you must store that image on a TFTP server before you can download the file to VFC memory.
To copy the Flash file from a TFTP server, use the following command in privileged EXEC mode:
| Command | Purpose |
|---|---|
copy tftp vfc | Downloads (copies) the Flash file from a TFTP server to the Flash memory on the VFC. |
VCWare needs to be unbundled for DSPWare to be loaded in Flash memory and the two necessary default lists (default file list and capability list) created and populated with the appropriate default files for that version of DSPWare. Table 4 shows the files associated with each firmware file.
| Firmware | Filenames |
|---|---|
VCWare | vcw-vfc-mz.0.15.bin |
DSPWare Initialization and Static Files | btl-vfc-1.0.14.0.bin |
DSPWare Overlay Files | bas-vfc-1.0.14.0.bin |
To unbundle the current running image of VCWare, use the following command in privileged EXEC mode:
| Command | Purpose |
|---|---|
unbundle vfc slot | Unbundles the current image of VCWare. |
When you unbundle VCWare, the default file list is automatically created and populated with the default files for that version of VCWare. The default file list indicates which files are initially loaded into DSP upon bootup. The following example shows you the output from the show vfc def command, which displays the contents of the default file list:
router#show vfc 1 def Default List for VFC in slot 1: 1. btl-vfc-1.0.13.0.bin 2. cor-vfc-1.0.1.bin 3. bas-vfc-1.0.1.bin 4. cdc-g729-1.0.1.bin 5. fax-vfc-1.0.1.bin 6. jbc-vfc-1.0.13.0.bin
Under most circumstances, these default files should be sufficient. If you need to, you can add an additional file (from those stored in VFC Flash memory) to the default file list or replace an existing file from the default file list. When you add a specific file to the default file list, it replaces the existing default for that extension type.
To select a file to be added to the default file list, use the following command in global configuration mode:
| Command | Purpose |
|---|---|
default-file vfc | Selects a file stored in the Flash memory to be added to the default file list. |
The capability list defines the set of CODECs that can be negotiated for a voice call. Like the default file list, the capability list is created and populated when VCWare is unbundled and DSPWare added to VFC Flash memory. The following example shows you the output from the show vfc cap command, which displays the contents of the capability list:
router#show vfc 1 cap Capability List for VFC in slot 1: 1. fax-vfc-1.0.1.bin 2. bas-vfc-1.0.1.bin 3. cdc-g729-1.0.1.bin 4. cdc-g711-1.0.1.bin 5. cdc-g726-1.0.1.bin 6. cdc-g728-1.0.1.bin 7. cdc-gsmfr-1.0.1.bin
VFC management lets you add additional CODEC files to the capability list to meet the needs of your specific telephony network.
To add a CODEC overlay file to the capability list, use the following command in global configuration mode:
| Command | Purpose |
|---|---|
cap-list file-name vfc slot-number | Selects a codec overlay file to be added to the capability list. |
In some instances, you might need to delete a file from the default file list or the capability list or you might need to revert to a previous version of VCWare stored in Flash memory. To delete a file, you must identify and delete the file from VFC Flash memory. Deleting a file from Flash memory removes the file from the default file list and capability list (if the deleted file is included on those lists).
To delete a file from VFC Flash memory, use the following command in privileged EXEC mode:
| Command | Purpose |
|---|---|
delete file-name vfc slot | Deletes a specific file from the Flash memory on the VFC. |
When you upgrade to a later version of VCWare, the new files are stored in VFC Flash, along with those already stored in VFC Flash memory---the new files do not overwrite existing files. Consequently, you will eventually need to erase the contents of VFC Flash memory to free VFC Flash memory space. Erasing VFC Flash memory removes the entire contents stored in Flash memory, including the default file list and the capability list.
To erase the Flash memory of a specific VFC, use the following command in privileged EXEC mode:
| Command | Purpose |
|---|---|
erase vfc slot | Erases the Flash memory on the VFC. |
For more information about VFC management commands, refer to the "Command Reference" section of this document.
This section provides sample configurations for the following scenarios:
These configuration examples should give you a starting point in your configuration process. The actual Voice over IP configuration procedure you complete depends on the topology of your voice network. These configuration examples need to be customized to reflect your network topology.
This example describes how to configure Voice over IP to link PBX users with T1 channels configured for ISDN PRI signalling. In this example, the company has already established a working IP connection between its two remote offices, one in San Jose, California and the other in Research Triangle Park (RTP), North Carolina. Figure 11 illustrates the topology of this example.

Each office has an internal telephone network using PBX, connected to the voice network by T1 interfaces. The San Jose office, located to the left of the IP cloud, has two T1 connections; the RTP office, located to the right of the IP cloud, has only one. Both offices are using PRI signalling for the T1 connections.
To reach a destination in RTP, users in San Jose pick up the handset, hear a primary dial tone, then dial 9, 411, and the destination extension number. To reach a destination in San Jose, users in RTP pick up the handset, hear a primary dial tone, then dial 4. After dialing 4, users hear a secondary dial tone. The users then dial 555, and the extension number.
The first part of this configuration example defines dial-in access, including configuring the T1 lines and the ISDN D-channel parameters. For more information about configuring ISDN PRI, refer to the "Configuring Channelized E1 and Channelized T1" chapter in the Cisco IOS Release 12.0 Dial Solutions Configuration Guide.
hostname sanjose ! ! Define the telephone company's switch type isdn switch-type primary-5ess ! ! Configure T1 PRI for line 1 controller T1 0 framing esf clock source line primary linecode b8zs pri-group timeslots 1-24 ! ! Configure T1 PRI for line 2 controller T1 1 framing esf clock source line secondary linecode b8zs pri-group timeslots 1-24 ! ! Configure the ISDN D channel for each ISDN PRI line ! Serial interface 0:23 is the D channel for controller T1 0 ! interface Serial0:23 isdn incoming-voice modem ! ! Serial interface 1:23 is the D channel for controller T1 1 interface Serial1:23 isdn incoming-voice modem
The next part of this example configures number expansion:
! Configure number expansion. num-exp 555.... 1408555.... num-exp 4115... 17294115...
The next part of this example configures the POTS and VoIP dial peers:
! Configure POTS dial peer 1 using the first T1 dial-peer voice 1 pots prefix 6 dest-pat 1408555.... port 0:D ! ! Configure POTS dial-peer 2 using the first T1 dial-peer voice 2 pots prefix 7 dest-pat 1408555.... port 0:D ! ! Configure POTS dial-peer 3 using the second T1 dial-peer voice 3 pots prefix 5 dest-pat 1408555.... port 1:D ! ! Configure VoIP dial-peer 4 dial-peer voice 4 voip dest-pat 17294115... session-target ipv4:10.1.1.2
The first part of this configuration example defines dial-in access, including configuring the T1 line and the ISDN D-channel parameters. For more information about configuring ISDN PRI, refer to the "Configuring Channelized E1 and Channelized T1" chapter in the Cisco IOS Release 12.0 Dial Solutions Configuration Guide.
hostname rtp ! Define the telephone company's switch type isdn switch-type primary-5ess ! Configure T1 PRI for line 1 controller T1 0 framing esf clock source line primary linecode b8zs pri-group timeslots 1-24 ! ! Configure the ISDN D channel for ISDN PRI line 1 ! Serial interface 0:23 is the D channel for controller T1 0 interface Serial0:23 ip address 7.1.1.10 255.255.255.0 encapsulation ppp isdn incoming-voice modem dialer-group 1 ppp authentication chap
The next part of this example configures number expansion:
! Configure number expansion. num-exp 555.... 1408555.... num-exp 4115... 17294115...
The next part of this configuration example defines the POTS and VoIP peers:
! Configure POTS dial-peer 1 dial-peer voice 1 pots dest-pat 17294115... port 0:D ! ! Configure VoIP dial-peer 5 dial-peer voice 4 voip dest-pat 1408555.... session-target ipv4:10.1.1.1
The following example configures R2 signalling and customizes R2 parameters on controller E1 2 of a Cisco AS5300. In most cases, the same R2 signalling type is configured on each E1 controller.
! Specify the E1 controller that you want to configure with R2 signalling. A controller ! informs the access server how to distribute or provision individual timeslots for a ! connected channelized E1 line. You must configure one E1 controller for each E1 line. ! Configure channel associated signalling. The signalling type forwarded by the ! connecting telco switch must match the signalling configured on the CiscoAS5300. !The country code is ITU by default. ! controller E1 0 framing NO-CRC4 cas-group 0 timeslots 1-15,17-31 type r2-digital r2-compelled ani cas-custom 0 ! controller E1 1 framing NO-CRC4 clock source line primary cas-group 0 timeslots 1-15,17-31 type r2-digital r2-compelled ! ! Customize some of the E1 R2 signalling parameters with the cas-custom channel ! controller configuration command. This example specifies the default R2 settings for ! Brazil. ! cas-custom 0 country brazil use-defaults metering category 2 answer-signal group-b 1 ! controller E1 2 ! controller E1 3 ! ! Configure voice port parameters. Be sure that the cptone command value is compatable ! with the country code defined by the cas-custom command. In this example, because ! ITU has no specific cptone value defined and uses aLaw E1 R2 signalling, the GB ! cptone command value is used. ! voice-port 0:0 cptone GB ! voice-port 1:0 cptone BR description Brasil Tone ! ! Define the parameters associated with the VoIP dial peer. ! dial-peer voice 101 voip destination-pattern +500.. session target ipv4:172.14.25.1 ! ! Define the parameters associated POTS dial peer. ! dial-peer voice 8221 pots destination-pattern 011822... direct-inward-dial port 0:0 ! ! Configure LAN interfaces. ! interface Ethernet0 ip address 172.13.103.33 255.255.0.0 no ip directed-broadcast no ip mroute-cache load-interval 30 no cdp enable ! interface FastEthernet0 ip address 173.14.25.100 255.255.0.0 no ip directed-broadcast bandwidth 1000000 load-interval 30 duplex full hold-queue 75 in ! no ip classless ip route 223.255.254.253 255.255.255.255 Ethernet0 ! ! line con 0 exec-timeout 0 0 logging synchronous level all transport input none escape-character BREAK line aux 0 rotary 1 transport preferred none transport input all flowcontrol hardware line vty 0 4 exec-timeout 60 0 password lab login ! end
The following example configures T1 CAS parameters on a Cisco AS5300:
! Enter global configuration mode. config terminal ! Enter controller configuration mode to configure your controller port. The controller ports are labeled 0 through 3 on the Quad T1/PRI and E1/PRI cards. controller t1 0 ! Enter your telco's framing type. framing esf ! Enter the clock source for the line. Configure other lines as clock source secondary ! or internal. Note that only one PRI can be clock source primary and one PRI can be ! clock source secondary clock source line primary ! Enter your telco's line code type. linecode b8zs ! Configure all channels for E&M, FXS, and SAS analog signalling. Enter 1-24 for T1. ! If E1, enter 1-31. ! Signalling types include e&m-fgb, e&m-fgd, e&m-immediate-start, fxs-ground-start, ! fxs-loop-start, sas-ground-start, and sas-loop-start. ! You must use the same type of signalling that your central office uses. ! For E1 using the Anadigicom converter, use cas e&m-fgb signalling. cas-group 1 timeslots 1-24 type e&m-fgb dtmf dnis ! Configure each additional controller (there are four). In this example, the ! controller number is 1, instead of 0. The clock source is secondary, instead of ! primary. The cas-group is 2, instead of 1 controller t1 1 framing esf linecode b8Zs clock source line secondary cas-group 2 timeslots 1-24 type e&m-fgb ! Configure each additional controller. controller T1 2 clock source internal cas-group 0 timeslots 1-24 type e&m-fgd mf ani-dnis controller T1 3 clock source internal ! Enter the dial peer configuration mode to configure a POTS peer. ! Specify destination pattern for this POTS peer. dial-peer voice 3070 pots destination-pattern +30... port 0:1 prefix 30 ! Specify destination pattern, and direct inward dial for each POTS peer. dial-peer voice 4080 pots destination-pattern +40... direct-inward-dial port 1:2 prefix 40 ! Specify the destination pattern and the direct inward dial for the dial peer. dial-peer voice 1050 pots destination-pattern +10... direct-inward-dial prefix 50 ! Specify the destination pattern and the direct inward dial for the dial peer. dial-peer voice 2060 pots destination-pattern +20... direct-inward-dial prefix 60 dial-peer voice 5050 voip answer-address 10... destination-pattern +50... end end
![]()
![]()
![]()
![]()
![]()
![]()
![]()
Posted: Thu Jul 29 18:21:33 PDT 1999
Copyright 1989-1999©Cisco Systems Inc.